bun-sqlgen
github.com · Package · Active
Type generator for raw SQL queries in Bun
- Developer tools
- Package
- TypeScript
- Day-7 check
- Day-30 check
- bun
- typescript
- sql
- codegen
- javascript
- postgresql
- sqlite
- bun sql types
- typed sql
- sql codegen
- Stars
- 114
- Forks
- 2
- Open issues
- 0
- Last commit
- Releases
- 14
- Found
- 5 months ago
GitHub figures as of . They are context, not a ranking.
bun-sqlgen generates TypeScript types for raw SQL queries written with Bun's built-in SQL client, so developers can write SQL without an ORM. It is a TypeScript project. It suits developers using Bun who want typed queries.
Repository description on GitHub: “Types generator for your Bun.sql queries”
What it does
- Validates raw SQL queries against migrations without a running database
- Generates TypeScript result types for each tagged query
- Runs migrations in an in-memory Wasm Postgres through PGlite
- Wraps a Bun.sql client with withTypes
Good for
- Generate typed results for raw SQL queries in a Bun app
- Check queries against migration files during codegen
Suits: Bun developers who want type safe SQL without an ORM.
Worth knowing: Works only with queries written through Bun's built-in SQL client.
What you can try
Read the README on GitHub and install from source.
Install
bun add @ilbertt/bun-sqlgenTaken from the project’s README. Read the project’s own instructions before running anything.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw bun-sqlgen on , when ilbert posted it to Show HN. The oldest published release on GitHub is v0.1.1, dated . Its first tagged release landed the same day it was found. 14 releases have been published in total; the latest is v0.7.0 ().
Day-7 and day-30 updates
Day 7 4 releases shipped
- 4 releases in the first 7 days: v0.2.0 (24 Jun 2026), v0.2.1 (25 Jun 2026), v0.3.0 (26 Jun 2026), v0.3.1 (28 Jun 2026)
- Show HN discussion at check time: 55 points, 42 comments. API record
Checked , later than day 7 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: ilbertt/bun-sqlgen
- Release v0.1.1
- Found: ilbert posted it to Show HN. Show HN
- Release v0.5.1
- Release v0.6.0
- Release v0.6.1
- Release v0.6.2
- Release v0.6.3
- Release v0.7.0
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Showing the first and the 6 latest of 14 releases. All releases on GitHub
Quick answers
- When was bun-sqlgen released?
- Its first tagged release on GitHub is dated 23 Jun 2026. Kip found it on Show HN on 23 Jun 2026.
- Is bun-sqlgen open source?
- Its source is public on GitHub at ilbertt/bun-sqlgen under the Unlicense licence.
- What does bun-sqlgen run on?
- Command line, Library.
- Is bun-sqlgen free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is bun-sqlgen still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | ilbertt/bun-sqlgen REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-48645390. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.