Skip to content

Roadmap

OneBun is actively developed. This page outlines our priorities and planned features.

Current Status

OneBun is at v0.2.x — a pre-1.0 release focused on API stabilization and filling production gaps. The core framework, DI system, and all listed packages are functional and tested.

Phase 1: Production-Ready

Critical features required for production deployments.

HTTP Guards & Authentication

Guards already exist for WebSocket and Queue, but HTTP — the primary transport — lacks them.

FeatureStatus
CanActivate interface for HTTPPlanned
@UseGuards() decorator for controllers/routesPlanned
Built-in AuthGuard (token verification)Planned
Built-in RolesGuard (RBAC)Planned
createGuard(fn) factoryPlanned

Exception Filters

Customizable error handling without modifying framework internals.

FeatureStatus
ExceptionFilter interfacePlanned
@UseFilters() decoratorPlanned
Global exception filter via ApplicationOptionsPlanned
Default filter (current OneBunBaseError handling)Planned

Testing Utilities

First-class testing support for DI-based applications.

FeatureStatus
TestingModule.create() with mock providersPlanned
.overrideProvider().useValue() / .useClass()Planned
HTTP testing without starting a serverPlanned
Mock logger, config (existing)Done
Fake timers (existing)Done

Security Middleware

Built-in security primitives.

FeatureStatus
CORS middlewarePlanned
Rate limiting (in-memory + Redis)Planned
Security headers (helmet-like)Planned

Phase 2: Developer Experience

Features that significantly improve adoption and day-to-day development.

HTTP Interceptors

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

FeatureStatus
Interceptor interfacePlanned
@UseInterceptors() decoratorPlanned
Built-in: Logging, Cache, Timeout interceptorsPlanned

Health Checks

Kubernetes-ready health endpoints.

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

CLI & Scaffolding

Project and component generation.

FeatureStatus
bunx create-onebun my-appPlanned
bunx onebun generate module/controller/servicePlanned

Documentation

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

Phase 3: Ecosystem

Post-1.0 features for broader adoption.

FeatureStatus
Performance benchmarksPlanned
GraphQL + Drizzle integrationPlanned
Plugin systemPlanned
Build-time config validationPlanned

Already Implemented

These features are fully functional but may not be immediately obvious. Check the linked documentation for details.

FeaturePackageDocs
Graceful shutdown@onebun/coreCore
Swagger UI + OpenAPI 3.1@onebun/docsAPI Docs
WebSocket guards (6 built-in)@onebun/coreWebSocket
Queue/message guards (4 built-in)@onebun/coreQueue
ArkType validation (replaces pipes)@onebun/coreValidation
Server-Sent Events (SSE)@onebun/coreControllers
Static file serving with SPA fallback@onebun/coreCore
Multi-service applications@onebun/coreMulti-Service example
Prometheus metrics + system metrics@onebun/metricsMetrics
OpenTelemetry tracing@onebun/traceTracing
Typed HTTP client with auth schemes@onebun/requestsHTTP Client
NATS + JetStream@onebun/natsQueue

Released under the LGPL-3.0 License.