Dev Tools · 2h ago
Bun-sqlgen brings type-safe raw SQL to Bun runtime
Bun-sqlgen is a new library that generates TypeScript types from raw SQL queries, ensuring type safety without an ORM. It supports Bun's built-in SQLite driver and PostgreSQL via postgres.js. The tool parses SQL at build time to infer parameter and result types.
Meridian48 take
Useful for developers who want ORM-like safety without the overhead, but adoption depends on Bun's ecosystem maturity.
buntype-safety