Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM
Category: library
Tags: type-safety, sql, code-generation
Score: 6.3/10 (Innovation: 7, Technical: 7, Documentation: 6, Utility: 5)
Bun-sqlgen provides type-safe raw SQL queries for Bun by generating TypeScript types from SQL migrations, eliminating the need for an ORM or manual type definitions. Its live build-time checking against a real database is an innovative combination of code generation and schema validation that catches errors early. While niche to Bun users, it offers a pragmatic middle ground between raw SQL and ORMs.
Target audience: backend devs
Repository: https://github.com/ilbertt/bun-sqlgen · TypeScript · Unlicense
View on Hacker News