From the HackerLinks archive

bun-sqlgen

A Bun SQL codegen tool that keeps raw SQL and adds types.

At a glance:
First seen:2026-06-23
Last seen:2026-06-23
Times seen:1
Website:github.com

The short version

A Bun SQL codegen tool that keeps raw SQL and adds types.

Why it caught our attention

Commenters liked the raw-SQL-plus-types approach as a pragmatic alternative to ORMs.

Where it surfaced on Hacker News

2026-06-23

Editorial paraphrase

The thread compared it favorably with sqlc, Kysely, and pgtyped while focusing on nullability and generated typings.

Original thread

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