https://github.com/valian-ca/zod-firebase-schema
firebase-admin zod
https://github.com/valian-ca/zod-firebase-schema
firebase firebase-admin zod
Last synced: 7 months ago
JSON representation
firebase-admin zod
- Host: GitHub
- URL: https://github.com/valian-ca/zod-firebase-schema
- Owner: valian-ca
- License: mit
- Created: 2023-06-03T14:52:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-08-16T20:36:19.000Z (7 months ago)
- Last Synced: 2025-08-16T22:08:37.679Z (7 months ago)
- Topics: firebase, firebase-admin, zod
- Language: TypeScript
- Size: 2.22 MB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
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](packages/zod-firebase-admin/README.md) — for server-side apps using the [Firebase Admin SDK](https://github.com/firebase/firebase-admin-node)
- [zod-firebase](packages/zod-firebase/README.md) — 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](packages/zod-firebase-admin/README.md) — Admin SDK (Node.js). Supports transactions, batch writes, preconditions, and admin metadata fields
- [packages/zod-firebase](packages/zod-firebase/README.md) — 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