
▲ 9 r/bun
OneBun: NestJS-style application framework, Bun-native, with built-in observability
Hey r/bun. Author here. I've been building a full application framework on Bun and wanted to share it with the people who'll actually know what I'm talking about.
OneBun is what I wished existed when I moved from NestJS/Node to Bun: DI container, module system, decorators — the architecture patterns that make large codebases manageable — but native on Bun, not ported from Node.
Highlights:
- Full DI with constructor injection, module system, guards, exception filters
- ArkType validation → runtime checks + auto-generated OpenAPI 3.1 (no DTO classes needed)
- Prometheus metrics (
@Timed,@Counted) + OpenTelemetry tracing (@Span) built in - Drizzle ORM, Redis cache, NATS queues — first-party packages
- Zero build step, runs TS directly
- Uses native Bun APIs: WebSocket, SQLite, Redis, router, file I/O — no Node.js compatibility shims
- ~2x faster than NestJS+Fastify on Node in CI benchmarks
- 2500+ tests, ~90% coverage, full suite in ~14s
It's opinionated by design — one ORM, one queue, one validation library. Less choice, more integration.
v0.3.x, pre-1.0, just me building it. Looking for early adopters.
Specifically curious what r/bun thinks about:
- Which native Bun APIs would you want deeper integration with? (I already use Bun.serve, WebSocket, SQLite, Redis, file I/O — what's missing?)
- Thoughts on the Effect.ts trade-off — I use it internally for DI/resource management but keep it out of user-facing API. Good call or should it be exposed?
u/Top-Kitchen-6635 — 5 days ago