A Zod alternative with runtime schema introspection
Typed error selectors fix Zod's magic string pain point with actual compile-time checks.

Find-replace z. to s. migrates existing Zod schemas to database-backed types.
TypeScript developers, backend engineers
Drizzle ORM · Prisma · Zod
I'd say the strongest points of the project is that it's a SUPERSET of the popular validation library Zod (https://zod.dev), which I'd say shines in representing typescript's type system in code. Schemic wraps it with database-specific flavour (opt-in, for precision) so you can do `s.string()` (zod drop-in, will work with any driver you choose) or `s.varchar()` (flavour added by the postgres driver).
I would like you to check it out and to the SurrealDB project (https://surrealdb.com/), right now that's the most complete driver, I'm working on getting the Postgres driver ready as well so more people can try it out.
Adoption is simple: `bunx @schemic/cli pull` will introspect your database and generate all schema files for you.
Extra bit: the resulting structure after a pull is concise enough that helps any AI agent understand the database easily. They are already good in both Typescript and Zod.
Typed error selectors fix Zod's magic string pain point with actual compile-time checks.
Type-safe JSON migrations inspired by database patterns—clean API but crowded space.
Auto-generates typed MCP tools from OpenAPI or DB schemas without custom code.
Zero-dependency Zod streaming parser when zod-stream requires ecosystem buy-in.
PostgreSQL schemas + search_path trick gives each Git branch its own database schema.
Semantic field inference auto-detects emails and UUIDs for Zod schemas better than quicktype.