Ecosystem decisions

Choose Bun backend, full-stack, database, and engineering tools by portability, maturity, and production constraints

Last updated on

Status verified: 2026-08-02. Ecosystem versions and stability change quickly. Recheck official documentation, releases, issues, and licenses before a decision.

Backend service boundaries

OptionAdvantagePrefer whenMain risk
Bun.serveNo framework; native Request/ResponseWebhooks, small APIs, embedded CLI servicesYou organize auth, validation, and OpenAPI
HonoWeb Standards and multiple runtimesBun, Node, or Workers may host the same API/MCP boundaryPortable code is limited to the shared runtime subset
ElysiaBun-first and end-to-end type ecosystemThe service will remain Bun-onlyMajor framework and plugin compatibility need separate tests
H3 / NitroDeployment layer and presetsNuxt, SSR, or Nitro-based outputsTest each preset against the target platform

Before choosing, answer whether the service needs OpenAPI, a typed client, auth middleware, cross-runtime deployment, and whether the team can own framework upgrade regressions. A small service does not need a framework merely to complete a fashionable stack.

React, Vue, and full-stack frameworks

OptionCurrent boundaryGuidance
Next.js + BunBun can install dependencies and run Next development and production commandsKeep Next's build commands; regress SSR, ISR, and native packages on upgrades
TanStack StartStill RC; Bun-specific deployment requires React 19Reasonable to evaluate for new products with pinned versions and SSR/streaming/server-function tests
TanStack Router + HonoExplicit frontend/backend boundary and portable runtime APIsA lower-risk path for sensitive systems
Nuxt / NitroNitro provides a Bun presetFollow Nitro's documented deployment shape
Vite SPABun can run Vite directlySimple static frontend with a separately deployed API
AstroStatic builds work directly with BunUse official Astro adapters for SSR instead of inventing an output server

“It starts” validates only a happy path. Production acceptance also covers hydration, streaming, cache headers, static assets, server functions, security boundaries, and rollback.

Data and authentication

OptionGood fitVerify first
Bun.SQL directlySimple queries and a SQL-capable teamMigration tooling, missing protocol features, pool budget
Drizzle + Bun.SQLSchemas, migrations, and typed queriesCurrent integration versions, Drizzle Kit, target database
PrismaExisting Prisma schemas and team knowledgeDynamic CLI subcommands still require npm; client generator and adapter
Better Auth minimalDrizzle, Prisma, or another database adapterNo direct database connection or built-in migrations

ORM types are not runtime database validation. Unique constraints, transaction isolation, migration locks, and index behavior remain database responsibilities.

Code quality and monorepos

ContextStarting point
New ordinary applicationBiome, or the team's already-stable ESLint setup
Large JavaScript monorepoOxlint plus one formatter; avoid duplicating most ESLint rules
Medium web monorepoBun Workspaces + Turborepo
Generators and enterprise project boundariesEvaluate Nx
Polyglot monorepoEvaluate moon or the existing organization build platform

Tool count is not a quality metric. Give each rule one primary executor and freeze the same command in CI.

Engineering repositories worth studying

For every repository, inspect recent commits, releases, issues, CI, license, lockfile format, and current Bun version. Learn the architecture; do not copy unexplained configuration.

Agent decision output

Decision: <selected option>
Runtime boundary: <Bun-only or portable Web APIs>
Why: <requirements matched>
Rejected: <alternatives and concrete reasons>
Version evidence: <official page or release checked today>
Required tests: <integration, deployment, rollback>

Recommendations are dated judgments

Do not turn this matrix into a permanent framework ranking. Project constraints, primary sources, and repeatable tests take priority over community attention.

Official references: Bun ecosystem guides, Hono, Elysia best practices, TanStack Start, Nitro Bun, and Better Auth.