Skip to content

@reggieofarrell/firestore-orm

Type-safe Firestore for the Firebase Admin SDK. Repositories, Zod validation, lifecycle hooks, and a fluent query builder — built for Node.js backends.
  • Type-safe repositories — one consistent API per collection, inferred from your Zod schemas.
  • Validation on writes — schemas run before Firestore sees the payload; sentinels stay atomic.
  • Lifecycle hooksbefore* / after* hooks around create, update, and delete.
  • Fluent queries — filters, pagination, aggregations, streaming, and real-time listeners.
  • Admin SDK native — Express, NestJS, Cloud Functions, or any Node.js server.
  1. Getting Started — install peers, define a schema, create and query documents.
  2. Documentation overview — full guide index by topic.
  3. Core Concepts — repository pattern, converters, and delete semantics.
  4. API Reference — every FirestoreRepository / FirestoreQueryBuilder signature.