Skip to content

Roadmap

OneBun is actively developed. This page outlines what is already shipped, what is coming next, and our longer-term vision.

Current Status (v0.4.x)

OneBun is at v0.4.x — a pre-1.0 release focused on API stabilization and production readiness. The core framework, DI system, and all listed packages are functional and tested. Most features needed for production HTTP services are already implemented.


Already Implemented

All features below are shipped, tested, and documented. If something looks missing, check the linked docs first.

Core Framework

FeaturePackageDocs
Module system (@Module, @Global)@onebun/coreCore
Controllers & routing (@Get, @Post, etc.)@onebun/coreControllers
Services & DI via Effect.Context + Layer@onebun/coreServices
Middleware (@UseMiddleware, @Middleware)@onebun/coreSecurity
Lifecycle hooks (OnModuleInit, OnApplicationDestroy, etc.)@onebun/coreCore
Graceful shutdown (SIGTERM/SIGINT handling)@onebun/coreCore
Static file serving with SPA fallback@onebun/coreCore
Multi-service applications (unified entry point)@onebun/coreCore, Multi-Service example
Optional leading slash in route decorators@onebun/coreControllers, Decorators

HTTP Guards & Authentication

FeaturePackageDocs
CanActivate interface for HTTP@onebun/coreGuards
@UseGuards() decorator for controllers/routes@onebun/coreGuards
Built-in AuthGuard (Bearer header presence check)@onebun/coreGuards
Built-in RolesGuard (RBAC)@onebun/coreGuards
createHttpGuard(fn) factory@onebun/coreGuards

Exception Filters

FeaturePackageDocs
ExceptionFilter interface@onebun/coreException Filters
@UseFilters() decorator@onebun/coreException Filters
Global exception filter via ApplicationOptions.filters@onebun/coreException Filters
HttpException with proper status codes@onebun/coreException Filters

Validation

FeaturePackageDocs
ArkType validation (single-source-of-truth for types, runtime validation, OpenAPI schema)@onebun/coreValidation

Security Middleware

FeaturePackageDocs
CORS middleware@onebun/coreSecurity
Rate limiting (in-memory + Redis)@onebun/coreSecurity
Security headers (helmet-like)@onebun/coreSecurity

WebSocket & Queues

FeaturePackageDocs
WebSocket gateway (@WebSocketGateway, @OnMessage)@onebun/coreWebSocket
WebSocket guards (6 built-in)@onebun/coreWebSocket
Queue system (@Subscribe, @Cron, @Interval, @Timeout)@onebun/coreQueue
Queue guards (4 built-in)@onebun/coreQueue
Server-Sent Events (SSE)@onebun/coreControllers
NATS + JetStream@onebun/natsQueue

Testing Utilities

FeaturePackageDocs
TestingModule.create() with mock providers@onebun/coreTesting
.overrideProvider().useValue() / .useClass()@onebun/coreTesting
HTTP integration testing@onebun/coreTesting
Mock logger, config@onebun/coreTesting
Fake timers@onebun/coreTesting

Ecosystem Packages

FeaturePackageDocs
Swagger UI + OpenAPI 3.1 generation@onebun/docsAPI Docs
Structured logging via Effect.ts@onebun/loggerLogger
Typed environment variables with validation@onebun/envsEnvs
Redis / in-memory caching@onebun/cacheCache
Prometheus metrics + system metrics@onebun/metricsMetrics
OpenTelemetry tracing@onebun/traceTracing
Typed HTTP client with auth schemes@onebun/requestsHTTP Client
Drizzle ORM integration@onebun/drizzleDrizzle

Phase 1: Next Up

High-impact features that round out the request pipeline and developer experience.

HTTP Interceptors

Transform requests/responses in the pipeline (logging, mapping, caching).

FeatureStatus
Interceptor interfaceDone
@UseInterceptors() decoratorDone
Built-in: Logging, Cache, Timeout interceptorsDone

Health Checks

Kubernetes-ready health endpoints.

FeatureStatus
HealthModule with /health and /readyPlanned
Database, Redis, NATS indicatorsPlanned
Status aggregation, liveness/readiness probesPlanned

CLI & Scaffolding

FeatureStatus
bun create @onebun my-appDone
bunx onebun generate module/controller/servicePlanned

Documentation

DocumentStatus
Migration guide (NestJS to OneBun)Done — Migration from NestJS
Deployment guide (Docker, k8s, CI/CD)Planned
Testing guidePlanned
Expanded Troubleshooting / FAQPlanned

Phase 2: Ecosystem

Post-1.0 features for broader adoption.

FeatureStatus
GraphQL integrationPlanned
Plugin systemPlanned
Performance benchmarks pageDone — Benchmarks
Build-time config validationPlanned

Released under the MPL-2.0 License.