Bun-sqlgen
Type-safe raw SQL for Bun, no ORM
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
HN · launched Jun 23, 2026 · 55 upvotes (top 14%) · 0 views
Niche: data and schema validation tools · 56 launches, 2 in the last 7 days ▼ -78% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 56 launches in data and schema validation tools →
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 : 678 launches clear the similarity bar, closest 8 shown.
Attention rank: #89 of 679 (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.64
- Lingo · github · 2026-11-03 · 15 upvotes · similarity 0.61
- jevql · github · 2026-09-18 · 11 upvotes · similarity 0.61
- RooQL · hn · 2026-10-13 · 6 upvotes · similarity 0.61
- Stratum · hn · 2026-03-12 · 12 upvotes · similarity 0.59
- Xsql · hn · 2025-12-19 · 5 upvotes · similarity 0.58
- JevSDSQL · github · 2026-09-23 · 23 upvotes · similarity 0.58
- Sqlsure · hn · 2026-07-11 · 43 upvotes · similarity 0.57
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.