Generate Typebox schemas and TypeScript types from MySQL table definitions. Version 2.0.2 is stable, with an npm-based CLI tool. It maps MySQL column types to Typebox schema primitives, supports enums, nullables, and configurable naming conventions. Outputs TypeScript files with both schema objects and Static type exports, ready to use with @sinclair/typebox. Differentiators: automatic generation from live database schema, zero-config defaults, and optional camelCase and nullish transformations.
npm install mysql-typeboxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, config, CLI command, and sample output for generating Typebox schemas from MySQL database.
Run 'npm install @sinclair/typebox' as a regular dependency.
Create mysql-typebox.json with required fields: host, port, user, password, database.
Manually update the generated Unsafe schema if the database enum values change.
Update your project to use '@sinclair/typebox' and reinstall dependencies.
Start MySQL service or update mysql-typebox.json with correct connection details.
Run 'npm install @sinclair/typebox' in your project.
Create mysql-typebox.json in the project root with database credentials.