firebase / firebase/firebase-admin-node
[FR] Modular Import Support for Firebase Admin SDK
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 419
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 16
Description
**Is your feature request related to a problem? Please describe.**
The current Firebase Admin JS SDK does not support modular imports similar to the frontend Firebase SDK. For example, in the frontend SDK, I can use modular imports like:
`import { doc, getDoc } from "firebase/firestore";`
**Describe the solution you'd like**
I would like the Firebase Admin SDK to support modular imports similar to the frontend SDK. For example:
`import { doc, getDoc } from "firebase-admin/firestore";`
This would align the Admin SDK with the frontend SDK’s modular API and provide a more consistent developer experience.
**Describe alternatives you've considered**
Creating a custom wrapper around the Admin SDK to mimic modular imports. However, this adds unnecessary complexity and maintenance overhead.
**Additional context**
We'd like to share code between server and frontend.
Contributor guide
Research direction
Start by reviewing the existing firebase-admin/firestore entry point and comparing it with the frontend Firebase modular API described in the issue. The work is done when the Admin SDK supports the requested modular imports and server and frontend code can be shared as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100