The Firebase Admin Node.js SDK lets backend Node code access Firebase and related Google Cloud services with elevated privileges from servers or cloud runtimes.
Overview
Firebase Admin Node.js SDK is the Node.js edition of Firebase’s admin libraries for privileged environments such as application servers, Cloud Functions, and other backend platforms. It is published on npm as firebase-admin and imported or required from server-side JavaScript.
From the documented feature set, administrators can read and write Realtime Database data, manage Firebase Authentication users and tokens, send Firebase Cloud Messaging messages, access Cloud Storage and Firestore resources tied to a project, deploy or manage security rules in supported flows, and perform other project-level operations described in Firebase’s admin guides.
Google’s documentation positions the Admin SDK for server-side and back-end use only, not for client-facing desktop or mobile apps where the client JavaScript SDK is appropriate. Supported Node.js versions are those currently maintained by the project’s compatibility statement.
Setup requires a Firebase project and a service account credentials file. Usage is governed by Firebase terms of service alongside the SDK’s open-source license.
Key features
- Realtime Database admin read/write
- Auth token minting and verification
- Firebase Cloud Messaging sends
- Cloud Firestore document access
- Cloud Storage bucket access
- User management APIs
- npm firebase-admin package
Use cases
- Backend user administration
- Server-pushed mobile notifications
- Trusted data migrations
- Custom admin consoles