Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM

Bun-sqlgen is a code generation tool that enables type-safe SQL queries without requiring an ORM, automatically validating queries against your database schema at build time to catch errors before production. This approach reduces runtime errors, eliminates hand-written type definitions, and maintains full native Bun performance while improving developer productivity through compile-time type checking. For IT organizations, this represents a lightweight alternative to traditional ORMs that balances developer experience with runtime efficiency and reduced dependency footprint.

Hacker News3 min read
Read full article
Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM
Bun-sqlgen is a code generation tool that enables type-safe SQL queries without requiring an ORM, automatically validating queries against your database schema at build time to catch errors before production. This approach reduces runtime errors, eliminates hand-written type definitions, and maintains full native Bun performance while improving developer productivity through compile-time type checking. For IT organizations, this represents a lightweight alternative to traditional ORMs that balances developer experience with runtime efficiency and reduced dependency footprint.