mysql-to-zod

JSON →
library 2.3.1 ·javascript
verified Jun 5, 2026

Converts MySQL table schemas directly into Zod validation schemas (TypeScript). Version 2.3.1. Connects to a MySQL database, reads CREATE TABLE statements using node-sql-parser, and generates .ts files with Zod object schemas and inferred types. Differentiators: zero-config CLI usage via npx, config file support, handles MySQL-specific types and defaults. Release cadence: irregular, minor updates.