firebase_admin
0.5.0+1, released 4 days ago by appsup.be
Pure Dart Firebase admin SDK for authentication and Realtime Database.
What it does
Provides server‑side access to Firebase Auth and Realtime Database using service‑account or default credentials. It supports generating sign‑in links, managing users, and performing database operations without native code.
AI-written summary of version 0.5.0+1, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building a Dart backend that needs Firebase admin features
- Running server‑side scripts that manage users or data
- Deploying to platforms without native Firebase SDKs
Skip it when
- Client‑side mobile or web apps
- Projects that require Cloud Storage or Firestore admin APIs
Strengths
- Pure Dart implementation, no native dependencies
- Supports service‑account and default credentials
- Handles auth and Realtime Database admin tasks
Weaknesses
- Limited to Auth and Realtime Database only
- No support for Cloud Storage, Firestore, or other Firebase services
- Requires manual credential setup
Setup
- Kind
- Pure Dart
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 17
Place service‑account JSON in project or set GOOGLE_APPLICATION_CREDENTIALS env variable. No build_runner needed.
import 'package:firebase_admin/firebase_admin.dart';
void main() async {
var app = FirebaseAdmin.instance.initializeApp(AppOptions(
credential: ServiceAccountCredential('service-account.json'),
));
var link = await app.auth().generateSignInWithEmailLink('jane@doe.com',
ActionCodeSettings(url: 'https://example.com'));
print(link);
}Alternatives
Packages that do the same job and could replace firebase_admin.
- firebase_core_web
Web implementation of firebase_core for Flutter apps.
83Compare - firebase_storage_web
Web implementation of Firebase Storage for Flutter.
77Compare - firebase_analytics_web
Web implementation of Firebase Analytics for Flutter apps.
77Compare - firebase_admin_sdk
Firebase Admin SDK implementation for Dart server environments
84Compare
Works with
Packages commonly used together with firebase_admin: ones it builds on, ones built on it, and its own family.
- cryptofirebase_admin depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- clockfirebase_admin depends on itA fakeable wrapper for dart:core clock APIs.
- googleapisfirebase_admin depends on itAuto-generated client libraries for accessing Google APIs.
- crypto_keysfirebase_admin depends on itLibrary for signing, verifying, encrypting and decrypting using pointycastle.
- dotenvfirebase_admin depends on itLoad environment variables at runtime from a .env file.
- josefirebase_admin depends on itJavascript Object Signing and Encryption library supporting JWE, JWS, JWK and JWT.
- x509firebase_admin depends on itDart library for parsing and working with X.509 certificates.
- googleapis_betafirebase_admin depends on itAuto-generated client libraries for accessing Google APIs.