Zog is a tiny Zod-first persistence layer for MongoDB.
This repository is a pnpm workspace containing the publishable Zog library and a Fumadocs-powered documentation site.
packages/core: shared runtime-safe constants and helpers.packages/server: Node/server helpers.packages/trpc: placeholder API contract package.packages/zog: publishable@mp-lb/zoglibrary package.apps/docs: Fumadocs MDX documentation website.
pnpm install
pnpm test
pnpm typecheck
pnpm build
zap up- Quick start covers the basic model and repository flow.
- Schema evolution covers legacy collection names, key renames, and custom normalization.
- Indexes covers declaring, diffing, and syncing MongoDB indexes.
- References covers modeling fields that contain another model's primary key.