Introduction
What is REstJS and why it exists.
What is REstJS?
REstJS is a complete JavaScript backend ecosystem — not another framework.
It provides every layer a production backend needs in a single coherent platform:
- HTTP server with trie-based routing
- ORM with PostgreSQL, MySQL, SQLite
- JWT authentication with RBAC
- Schema-based request validation
- WebSocket server with rooms
- Message queue with retry and backoff
- AI platform with RAG, agents, and MCP
- Memory leak detection and auto-cleanup
- Docker and Kubernetes deployment generation
Note
REstJS requires Node.js 18 or higher and TypeScript 5.0 or higher.
Why REstJS?
Every JavaScript backend project starts the same way — choosing between dozens of packages from different teams with different conventions.
REstJS eliminates that entirely. One install gives you everything.
npx @restjs/cli create my-app
cd my-app
rest runYour server is running with auth, validation, security headers, rate limiting, and memory monitoring — all active by default.
The name
R → Runtime
E → Enterprise
st → REST architecture
JS → JavaScriptHidden inside the name is the word rest — the promise that you can finally stop assembling and start building.
What is included
| Package | Purpose |
|---|---|
@restjs/core | HTTP server, router, middleware |
@restjs/security | Helmet, rate limiting, CSRF |
@restjs/orm | Database ORM with migrations |
@restjs/auth | JWT, password hashing, RBAC |
@restjs/validation | Schema-based request validation |
@restjs/testing | Test runner and HTTP client |
@restjs/events | In-process event bus |
@restjs/websocket | WebSocket server with rooms |
@restjs/queue | Message queue and scheduler |
@restjs/circuit | Circuit breaker and retry |
@restjs/observability | Logging, metrics, tracing |
@restjs/ai | LLM providers, RAG, agents |
@restjs/cloud | Multi-tenancy, audit, deploy |
@restjs/memory | Leak detection, optimization |
Tip
Start with the Quick Start to have a running server in under 2 minutes.