An open API service indexing awesome lists of open source software.

https://github.com/valian-ca/zod-firebase-admin

firebase-admin zod
https://github.com/valian-ca/zod-firebase-admin

firebase firebase-admin zod

Last synced: 7 months ago
JSON representation

firebase-admin zod

Awesome Lists containing this project

README

          

# zod firestore schema monorepo

Type-safe Firestore collections and documents powered by [Zod](https://zod.dev/).

This monorepo contains two npm packages:

- `zod-firebase-admin` — for server-side apps using the [Firebase Admin SDK](https://github.com/firebase/firebase-admin-node)
- `zod-firebase` — for client-side apps using the [Firebase Web SDK](https://github.com/firebase/firebase-js-sdk)

Both packages provide the same ergonomic developer experience: define your data once with Zod, get strongly-typed reads/writes, sub-collections, and collection-group queries.

## Packages

- `packages/zod-firebase-admin` — Admin SDK (Node.js). Supports transactions, batch writes, preconditions, and admin metadata fields
- `packages/zod-firebase` — Web SDK (browser/node). Supports aggregate queries via `aggregateFromServer`

See each package README for installation, usage, and API reference.

## Development

Requirements: Node.js 22+, pnpm.

Common scripts (run at the repo root):

```bash
pnpm i
pnpm -r build
pnpm -r test
pnpm -r type-check
```

## License

MIT