Firestore DB ORM is a lightweight, TypeScript-first ORM for Google Firestore (Firebase). It provides a promise-based API for CRUD operations, flexible querying, and automatic ID generation. The current stable version is 1.5.3, with weekly releases. Key differentiators include TypeScript type safety, automatic UUID generation, and a simple API for common Firestore interactions, targeting Node.js 20+. It does not support advanced Firestore features like transactions or batch writes.
npm install firestore-db-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes Firebase Admin, instantiates FirestoreORM for a 'users' collection, and demonstrates add, get, update, findOne, and delete operations.
Ensure your data model does not include an `id` property, or use a different field name for your identifier.
Upgrade Node.js to version 20 or later.
None currently; refer to future changelogs.
For advanced use cases, use the Firestore Admin SDK directly.
Run `npm install firestore-db-orm`
Use `import { FirestoreORM } from 'firestore-db-orm'` in an ESM context.Ensure your service account has appropriate Firestore roles (e.g., 'datastore.user') and that security rules allow operations.