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

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Puter.js - The Backend for AI-Generated Apps
One-shot full-stack apps with your existing AI coding tool. Puter.js gives you Auth, Storage, DB, AI & more, with up to 90% fewer AI tokens than other backend platforms.
developer.puter.com
featured
AppSignal - Monitoring that respects your time & budget
APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product.
www.appsignal.com
featured
  1. bun-sqlgen

    Types generator for your Bun.sql queries

    The cli config supports specifying the PGLite extensions (the codegen uses PGLite as an in-memory light postgres), see this example: https://github.com/ilbertt/bun-sqlgen/tree/main/examples/wit....

    You'll still probably have to manually override some column types using PG comments like: https://github.com/ilbertt/bun-sqlgen/blob/dee757ebc9c38aec7...

    PGLite extensions: https://pglite.dev/extensions/#postgis

  2. Puter.js

    Puter.js - The Backend for AI-Generated Apps. One-shot full-stack apps with your existing AI coding tool. Puter.js gives you Auth, Storage, DB, AI & more, with up to 90% fewer AI tokens than other backend platforms.

    Puter.js logo
  3. sqlc

    Generate type-safe code from SQL

  4. sqlfu

    We built something quite similar - a full SQL framework with migrations, schema diffing, type-generation (this is the similar part I think), and named queries along with observability and more: https://sqlfu.dev

    It also ships adapters for pretty much all platforms, for sqlite at least: bun, node, libsql, better-sqlite3, expo-sqlite, sqlite-wasm, etc. etc.

    github: https://github.com/iterate/sqlfu

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • CLI to manage your SQL database schemas and migrations

    7 projects | news.ycombinator.com | 1 Nov 2025
  • SQLx – The Rust SQL Toolkit

    16 projects | news.ycombinator.com | 25 Jul 2025
  • Generate an OpenAPI From Your Database

    4 projects | dev.to | 27 Dec 2024
  • Show HN: Outerbase Studio – Open-Source Database GUI

    19 projects | news.ycombinator.com | 4 Dec 2024
  • Sqlc: Compile SQL to type-safe code

    15 projects | news.ycombinator.com | 8 Sep 2024

Did you know that TypeScript is
the 2nd most popular programming language
based on number of references?