Back to The Grid
PROJECT #053Completed

Bun API Template

Opinionated starter template for building APIs with Bun and Hono. Includes Bun's native SQL driver for Postgres, automatic schema migrations on startup, structured error handling, and JWT auth middleware. Used as the foundation for multiple 102 Projects backends.

Shipped: TBD
BunTypeScriptHonoPostgreSQLBiome

Retrospective

The Good

Bun's native SQL driver is measurably faster than pg. Hono's API is clean and the middleware system makes sense. Auto-migrations on startup save so much time in early development.

The Bad

Bun's ecosystem is still catching up. Some npm packages don't work, and when they break, the error messages point nowhere useful. Had to vendor a few fixes.

The Ugly

It grew organically from real projects, so some patterns are opinionated to the point of being weird. The auth middleware assumes a specific JWT structure that not everyone uses.

Screenshots