Nicheloom

Market intelligence for builders — see what's gaining traction before it's crowded.

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.

Other launches for this product

Same idea, different domain

Nobody's really built a dev tools tool for Sales yet.