Back to browse
GitHub Repository

Types generator for your Bun.sql queries

1 starsTypeScript

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

by ilbert·Jun 23, 2026·22 points·10 comments

AI Analysis

●●SolidBig BrainShip It

ORM-free type safety from tagged templates validated against live Postgres or SQLite schemas.

Strengths
  • Tagged template literals generate types at call sites without ORM abstraction overhead
  • Codegen validates against real database schema without requiring Docker containers
  • Wrong columns and bad SQL fail at build time instead of production runtime
Weaknesses
  • Only 18 commits and 1 star indicates very early stage with unproven stability
  • Bun-specific limits audience to a runtime still gaining mainstream adoption
Target Audience

Bun developers using raw SQL

Similar To

kysely · drizzle-orm · slonik

Similar Projects

Developer Tools●●●Banger

Valk Guard– Catches dangerous SQL hidden inside your ORM,no DB required

Lints ORM chains for dangerous SQL without a DB connection, outperforming SQLFluff on ORMs.

Solve My ProblemBig BrainShip It
valkdb
301mo ago