drizzle-zod-codegen
JSON →CLI and programmatic tool to generate static Zod schema files from Drizzle ORM table definitions. Current version 0.2.0, actively maintained with weekly releases. Differs from runtime drizzle-zod adapters by emitting inspectable, version-controllable .zod.ts files that can be tree-shaken. Supports PostgreSQL, MySQL, SQLite, SingleStore, and expands Zod constructs (discriminated unions, intersections, pipelines, readonly, symbol, NaN, catch). Handles SelectSchema, InsertSchema, UpdateSchema variants. Requires Node >=18, peer dependencies drizzle-orm >=0.36.0 and zod ^3.25.0 || ^4.0.0.
Resources
packagedrizzle-zod-codegen ↗
API endpoints
full doc /v1/registry/drizzle-zod-codegen