firebase
Installation
SKILL.md
Firebase (Firestore & Realtime Database)
Firebase provides two NoSQL databases:
- Cloud Firestore: The newer, recommended scalable database.
- Realtime Database: The original low-latency JSON tree sync.
When to Use
- Real-Time Client Synchronization: Pushing document and collection updates instantly to mobile and web clients via Firestore snapshot listeners.
- Rapid Prototyping & MVPs: Building complete web and mobile apps with drop-in Auth, Firestore, Cloud Functions, and Hosting.
- Offline-First Mobile Apps: Native offline caching and latency compensation out of the box in mobile and web SDKs.
- Client-Direct Database Access: Allowing client applications to query databases directly while enforcing access via declarative Security Rules.
Quick Start
import { getFirestore, collection, addDoc } from "firebase/firestore";