firebase-admin
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
@fastify/busboy | 1.2.1 | 17.16 kB | MIT | prod | |
@firebase/database-compat | 0.3.4 | 444.61 kB | Apache-2.0 | prod | |
@firebase/database-types | 0.10.4 | 4.16 kB | Apache-2.0 | prod | |
@google-cloud/firestore | 6.8.0 | 554.47 kB | Apache-2.0 | prod optional | 2 |
@google-cloud/storage | 6.12.0 | 170.87 kB | Apache-2.0 | prod optional | |
@types/node | 20.11.19 | 3.81 MB | MIT | prod optional | |
jsonwebtoken | 9.0.2 | 11.94 kB | MIT | prod | |
jwks-rsa | 3.1.0 | 8.47 kB | MIT | prod | |
node-forge | 1.3.1 | 427.61 kB | (BSD-3-Clause OR GPL-2.0) | prod optional | |
uuid | 9.0.1 | 22.94 kB | MIT | prod optional |
Firebase Admin is a Server SDK designed to enable developers with server access to interact with Firebase services. With the Firebase Admin Node.js SDK, developers get the tools and infrastructure they need to develop their applications, grow their user base, and earn money. This SDK specifically facilitates access to Firebase services from privileged environments (like servers or cloud) in Node.js, improving functionality and overall app performance.
In order to use Firebase Admin, you first need to install it into your Node.js application using npm (Node.js package manager) with the following command:
$ npm install --save firebase-admin
Once installed, you can require it from any JavaScript file in your application using:
const { initializeApp } = require("firebase-admin/app");
initializeApp();
For ES2015, you can alternatively import the module:
import { initializeApp } from "firebase-admin/app";
initializeApp();
This initiates the Firebase admin app, allowing you to unlock various Firebase tools and services.
The Firebase Admin SDK documentation, which contains a setup guide and detailed guides on the database, authentication, cloud messaging, and an API reference, can be found at several places.
Here are a few:
These resources serve as a comprehensive guide to getting the most out of the Firebase Admin Node.js SDK.