uptrace/bun
SQL-first Golang ORM observed · 2026-08-28
Health v2 · maintenance only
89/100
- Activity 98
- Release rhythm 72
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 23
- age_days: 1948
- days_rel: 186
- days_push: 12
- n_releases_24m: 14
Adoption not part of the score
4941 stars · 296 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Bun is a lightweight, SQL-first ORM for Go built on database/sql, supporting PostgreSQL, MySQL/MariaDB, MSSQL, SQLite, and Oracle. It provides type-safe query building, flexible result scanning, migrations, fixtures, soft deletes, and OpenTelemetry tracing while keeping SQL front and center.
Use cases
- build type-safe SQL queries in Go without hiding the SQL
- manage database schema migrations for a Go application
- query results into structs, maps, scalars, or slices
- write one codebase that works across PostgreSQL, MySQL, MSSQL, SQLite, and Oracle
- add query tracing with OpenTelemetry to database calls
- implement soft deletes and table relationships with struct tags
When to choose
- you want ORM convenience but full control over generated SQL
- you need multi-database support from a single Go codebase
- you prefer compile-time type safety over string-based query building
- you want a lightweight layer over database/sql with minimal overhead
When to avoid
- you want a fully abstracted ORM that hides SQL entirely
- your project uses a non-SQL database
- you need an ORM outside the Go ecosystem
Facets
library · maturity stable
orm database database-driver databases backend web-development developer-tools go windows cross-platform sql-first query-builder migrations postgresql mysql sqlite mssql oracle opentelemetry linux macos
2 sources
- readme: https://github.com/uptrace/bun · fetched 2026-08-28 · 2b5204e2fdab
- homepage: https://bun.uptrace.dev · fetched 2026-08-29 · e9f1430455e9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| uptrace/bun | main | 89 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem