Overview
Official MiiaJS packages for auth, databases, API docs, server adapters, and CLI.
MiiaJS is modular - install only what you need.
Server adapters
| Package | Description |
|---|---|
@miiajs/node-server | Node.js HTTP server adapter |
@miiajs/uws-server | uWebSockets.js HTTP server adapter |
Bun and Deno are supported out of the box - no adapter needed.
Static files
| Package | Description |
|---|---|
@miiajs/serve-static | Static file serving with Range, ETag, charset, SPA fallback |
Auth
| Package | Description |
|---|---|
@miiajs/auth | Auth primitives - AuthProvider, AuthGuard, token extractors |
@miiajs/jwt | Injectable JWT sign/verify service (jose wrapper) |
Database
| Package | Description |
|---|---|
@miiajs/drizzle | Drizzle ORM integration (PostgreSQL, MySQL, SQLite) |
@miiajs/mongoose | MongoDB integration via Mongoose with injectable models |
@miiajs/papr | MongoDB integration via Papr |
Messaging
| Package | Description |
|---|---|
@miiajs/messaging | Decorator-driven event bus with retry, DLQ, pluggable transports |
@miiajs/messaging-redis | Redis Streams transport for @miiajs/messaging |
API Documentation
| Package | Description |
|---|---|
@miiajs/swagger | OpenAPI 3.1 spec generation and Swagger UI |
Tooling
| Package | Description |
|---|---|
@miiajs/cli | CLI for dev, build, start, check, and project scaffolding |