Kysely Codegen
JSON →Kysely Codegen is a utility that generates TypeScript type definitions, specifically the `DB` interface, directly from your database schema for use with the Kysely type-safe SQL query builder. The current stable version is 0.20.0, with frequent minor releases introducing new features, bug fixes, and expanding dialect support. It offers broad compatibility across various SQL databases including PostgreSQL, MySQL, SQLite, MSSQL, and LibSQL. Key differentiators include its declarative configuration options, custom type mapping, the ability to process introspected metadata before code generation via `postprocess()`, and the newly introduced `defineConfig()` for type-safe configuration, ensuring developers have up-to-date and accurate type information without manual schema synchronization. It is primarily used as a CLI tool during development workflows.
Traffic · last 30 days ↓67% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇪🇸 Spain · 🇩🇪 Germany