Overview
This page is a living plan. It exists so you can see where MiiaJS is going before you adopt it - and so contributors can pick up something that matches their interest. Items move forward when there is a real reason to do them: an example app needs them, a user reports a gap, or production usage exposes a missing primitive. Nothing on the list is a promise of a date.
The repo is pre-1.0; the public API is allowed to evolve. After the first stable release this page will split into "shipped" and "planned" with semver-respecting deprecation cycles for breaking work.
Principles that don't move
These are not roadmap items - they are constraints every roadmap item is checked against.
- Web Standards first. No
Express.Request, no proprietaryReply. Anything new must compose withRequest/Response/Headers/URLand run on Bun, Deno, and Node. - Decorators for declarations, middleware for control flow. Koa-style middleware replaces interceptors, pipes, and filters. New features should not introduce a fourth lifecycle layer just because NestJS has one.
- Lightweight before clever. Each package earns its keep. If a feature is one screen of glue code on top of
@miiajs/core, it stays in the host app or in an example - not a new package. - One DI container per app, module boundaries on top. A module sees what its imports export, checked at startup; nothing is global unless marked
global: true. A separate injector per module arrives only when there is a concrete user request that one container cannot solve. - Runtime defects: work around only when it pays. A defect of Bun, Deno, Node.js or uWebSockets.js is worked around in the framework only when it would otherwise crash the process, leak memory or hang, or when the workaround is cheap - a few lines, nothing on the hot path. The rest is documented where it bites and reported upstream. Defects of our own adapters are fixed.
- Real demand over theoretical completeness. A pattern lands when the second user asks for it, not the first time it sounds nice in a design doc.
Status legend
Each package and roadmap item in the tables below carries a maturity label. The docs sidebar and page headers flag only experimental packages.
| Status | Meaning | How it advances |
|---|---|---|
experimental | API may break, no proof of correctness. Low or no tests, untested failure modes. Use in side projects, expect churn. | Real-app validation surfaces edge cases, tests cover them, API stops moving. |
beta | API mostly stable, well-tested internally, but the package has not faced real production load yet. Pre-1.0 default for any package shipped. | Production deployment, no P0/P1 issues for 60 days, semver freeze. |
stable | API frozen with semver guarantees, production-tested at scale, community-validated. Post-1.0 only. No package can be stable while the project itself is on 0.x. | Project ships 1.0; package keeps a clean track record across at least one minor cycle. |
planned | On the roadmap. No code yet (or scaffolding only). | Design discussion lands; implementation begins; status moves to experimental on first publish. |
idea | Direction we like; needs more demand or design before it becomes planned. | A second independent user asks for it, or a design doc resolves the open questions. |
Where the project is today
Current package state:
| Package | Status | Note |
|---|---|---|
@miiajs/core | beta | Foundation. DI with typed tokens and module boundaries, decorators, router, middleware, exceptions. |
@miiajs/node-server | beta | Optimized Node.js HTTP adapter. |
@miiajs/uws-server | beta | uWebSockets.js adapter, parallel optimization to node-server. |
@miiajs/swagger | beta | OpenAPI 3.1 + Swagger UI. |
@miiajs/messaging | beta | Decorator-driven event bus, retry, DLQ, idempotency, named buses. |
@miiajs/config | beta | Zod-validated env via ConfigService + ConfigModule.configure. |
@miiajs/testing | beta | TestApp integration-test harness: override providers, send requests in-process. The framework's own suites run on it. |
@miiajs/rate-limit | beta | Fixed-window rate limiting. Guard + decorators (@BodyLimit-style precedence), perimeter middleware, pluggable stores. |
@miiajs/multipart | beta | Streaming multipart/form-data: backpressured part iterator, buffered ctx.form() validated through the route's body schema. Differential tests diff it against the runtime's own parser across the corpus's chunk-boundary cut points. |
@miiajs/papr | beta | MongoDB via Papr. |
@miiajs/mongoose | beta | MongoDB via Mongoose. |
@miiajs/drizzle | beta | Drizzle ORM (PG/MySQL/SQLite). |
@miiajs/auth | beta | AuthProvider interface, AuthGuard factory, token extractors. Small surface; critical paths covered. |
@miiajs/jwt | beta | JWT sign/verify (jose wrapper). Core logic tested upstream in jose. |
@miiajs/serve-static | beta | Static file serving. Full HTTP semantics (Range, conditional GET, HEAD, dotfile guard, SPA fallback). |
@miiajs/cli | beta | miia new / bun create miia, miia add with add-ons for auth, Swagger, CORS, static files, rate limiting, Biome and databases, miia g, dev/build/start. Generated projects are installed, type-checked, tested and started on Bun, Node.js and Deno by an end-to-end run before each release. |
create-miia | beta | bun create miia / npm create miia - runs miia new from @miiajs/cli. |
@miiajs/messaging-redis | experimental | Redis Streams transport + idempotency store. Retry lives in the consumer group's PEL, so crash recovery is the same code path as a backoff retry and the suite covers it directly. Untested at production load. |
Roadmap horizons
The list is split by realistic timeframes, not strict commitments. Items can move up if real demand surfaces; items can move down if a use case goes cold.
- Short term (0-3 months) - hardening: validate
experimentalpackages on real apps, rate-limit stores (Redis, Upstash), server-sent events. - Mid term (3-9 months) - production essentials: WebSocket, OpenTelemetry, cache abstraction.
- Long term (9-12+ months) - ecosystem: NATS transport, GraphQL, request-reply, type-safe RPC client.
Road to 1.0
1.0 is gated by facts on the ground, not a date. Concrete criteria:
- At least 3 independent production users. Pre-1.0 friends-of-friends do not count - need teams that can answer "what broke" with telemetry, not opinions.
- All
betapackages have zero open P0/P1 API issues for 60 consecutive days. Bug fixes are fine; design churn is not. - Semver deprecation policy documented and exercised at least once. A breaking change shipped through a deprecation cycle, removal in the next major.
- Benchmarks frozen. Stable numbers vs Hono/Elysia in the
miiajs/benchmarksrepo, regression CI gate in place. - API freeze period. Minimum two months in
1.0.0-rc.xbefore final. - Examples coverage. At least one example app per shipped package. As of 0.6, every package is covered by an example -
examples/full-appexercises core/config/auth/jwt/rate-limit/multipart/drizzle/swagger/serve-static,examples/messaging-appcovers messaging + messaging-redis, the dedicated DB examples cover papr/mongoose, andexamples/uws-appcovers the uWS adapter. Coverage for new packages must land alongside the package itself.
Anything not on this list is nice-to-have, not gating.
How items get prioritized
Roughly in this order, top wins:
- Validate
experimentalpackages on real apps.@miiajs/messaging-redisneeds a real-adoption shakedown before it earnsbeta. Internal tests are not enough. - Production essentials missing from existing packages. SSE, distributed rate-limit stores. These unblock real apps for real deployments. Multipart came off this list in 0.6.
- High-impact abstractions. WebSocket, OpenTelemetry, cache - each enables a class of apps but doesn't depend on niche infrastructure.
- New transports / integrations. NATS, GraphQL, RPC client. Niche-r, but each opens a deployment lane.
- Polish. DX improvements, better error messages, examples coverage. Continuous, not project-managed.
How to influence the roadmap
- Open an issue describing the problem (not the solution). Real workloads beat hypothetical ones.
- Bring a use case from production. "I'd use this if it had X" is the strongest signal.
- Submit a PR. Pre-1.0 is the cheapest time to land breaking design improvements.
The roadmap will be revised when meaningful items ship or new ones emerge - probably every couple of months.