Bun-sqlgen
Type-safe raw SQL for Bun, no ORM
Details
- External ID
- 48645390
- Source
- HN
- Company
- —
- Product
- Bun-sqlgen
- Website domain
- github.com
- Launched
- June 23, 2026
- Cohort
- —
- Upvotes
- 55
- Upvotes percentile
- 0.8586065573770492
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Enrichment
- Theme
- database infrastructure and developer tools
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Commercial product
- Normalized one-liner
- type-safe sql query builder for bun
- Manually corrected
- False
Could you build this?
Partial Writing a CLI or basic code generator is approachable, but building a robust SQL parser and type inference engine that extracts strict TypeScript types from raw SQL schemas and queries requires deep compiler expertise.
What it would actually take: A production version requires a TypeScript/Bun CLI leveraging an AST-based SQL parser (like pg-query or tree-sitter-sql) integrated with database metadata introspection. The hard part is accurate SQL type checking, handling complex joins, subqueries, and dialect-specific operators to emit sound TypeScript types. It requires specialized knowledge in compiler frontends, AST traversal, and database dialect specifics.
Discussion
20 comments analyzed.
Competitors mentioned: sqlc - SQL code generator for Postgres and Go, Kysely - TypeScript query builder, sqlfu - SQL framework with migrations and type-generation, SQLDelight - Kotlin SQL type-safe API, LINQ - Microsoft's language-integrated query
Concerns raised: README/documentation quality initially insufficient, sqlc has maintainer burnout, slow bug fixes and PR merging, Limited database support outside Postgres (ClickHouse, SQLite), Why limited to Bun only, not generalized to Node.js, Template syntax doesn't work well with Postgres porsagers
Feature requests: Generalize to Node.js beyond Bun, Better SQLite support, Support for template syntax in Postgres, SQL as first-class language citizen instead of DSL
Competitors
Other products that read as similar to this one — 301 launches clear the similarity bar, closest 8 shown.
Attention rank: #39 of 302 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 235 days after the earliest competitor.
- VaultSQL · hn · 2026-06-06 · 8 upvotes · similarity 0.63
- jevql · github · 2026-09-18 · 11 upvotes · similarity 0.59
- Stratum · hn · 2026-03-12 · 12 upvotes · similarity 0.57
- Xsql · hn · 2025-12-19 · 5 upvotes · similarity 0.56
- JevSDSQL · github · 2026-09-23 · 23 upvotes · similarity 0.56
- Sqlsure · hn · 2026-07-11 · 43 upvotes · similarity 0.55
- Diesel-guard · hn · 2025-12-08 · 18 upvotes · similarity 0.54
- lead · github · 2026-09-17 · 144 upvotes · similarity 0.54
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.