Skip to content
mp-lbPublic

About

Lightweight runtime safety layer for MongoDB and Zod

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Zog

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.

Projects

  • packages/core: shared runtime-safe constants and helpers.
  • packages/server: Node/server helpers.
  • packages/trpc: placeholder API contract package.
  • packages/zog: publishable @mp-lb/zog library package.
  • apps/docs: Fumadocs MDX documentation website.

Commands

pnpm install
pnpm test
pnpm typecheck
pnpm build
zap up

Docs

  • 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.

About

Lightweight runtime safety layer for MongoDB and Zod

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages