firebase_admin_sdk
0.5.6, released 2 months ago by firebase.google.com
Firebase Admin SDK implementation for Dart server environments
What it does
Enables Dart servers and privileged environments to access Firebase services including Firestore, Cloud Storage, Auth, and Cloud Messaging. It provides authentication and database access using service accounts or application default credentials.
AI-written summary of version 0.5.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a backend server or cloud function in Dart that needs to interact with Firebase
- You need administrative access to Firebase Authentication, Firestore, or Cloud Storage from a server
Skip it when
- You are building a client-side Flutter application (use official client packages instead)
- You require Realtime Database support, which is not currently supported by this package
Strengths
- Allows full Dart stack development including server-side Firebase integration
- Supports multiple authentication methods including service accounts and Workload Identity Federation
Weaknesses
- Some Firebase services like Realtime Database and Data Connect are not supported
- Requires server-side setup and secure management of service account credentials
Setup
- Kind
- FFI (native library)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 15
Requires a Firebase project, downloading a service account JSON file or configuring environment variables like GOOGLE_APPLICATION_CREDENTIALS.
import 'package:firebase_admin_sdk/firebase_admin_sdk.dart';
final app = FirebaseApp.initializeApp();
final defaultAuth = app.auth();
final defaultFirestore = app.firestore();Alternatives
Packages that do the same job and could replace firebase_admin_sdk.
- cloud_firestore_web
The web implementation of cloud_firestore.
82Compare - firedart
Dart-native client for Firebase Auth and Firestore without native SDKs.
50Compare - cloud_functions
Flutter plugin for using the Cloud Functions for Firebase API.
96Compare - cloud_firestore
Flutter plugin for Cloud Firestore noSQL database with live synchronization.
98Compare
Works with
Packages commonly used together with firebase_admin_sdk: ones it builds on, ones built on it, and its own family.
- ffifirebase_admin_sdk depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- intlfirebase_admin_sdk depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- http_parserfirebase_admin_sdk depends on itA platform-independent package for parsing and serializing HTTP formats.
- pointycastlefirebase_admin_sdk depends on itA Dart library providing a wide range of cryptographic algorithms and primitives.
- asn1libfirebase_admin_sdk depends on itEncodes and decodes ASN.1 objects using BER byte encoding in Dart.
- googleapis_authfirebase_admin_sdk depends on itObtain Access credentials and authenticated HTTP clients for Google APIs using OAuth 2.0.
- dart_jsonwebtokenfirebase_admin_sdk depends on itA Dart library for creating, signing, decoding and verifying JSON Web Tokens (JWT).
- google_cloudfirebase_admin_sdk depends on itUtilities for running Dart code correctly on the Google Cloud Platform.