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
- Host: GitHub
- URL: https://github.com/valian-ca/zod-firebase-admin
- Owner: valian-ca
- License: mit
- Created: 2023-06-03T14:52:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T13:19:58.000Z (over 1 year ago)
- Last Synced: 2024-10-29T16:02:29.411Z (over 1 year ago)
- Topics: firebase, firebase-admin, zod
- Language: TypeScript
- Size: 1.69 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.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` — 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