Introduction

What is REstJS and why it exists.

2 min readEdit this page

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 run

Your 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 → JavaScript

Hidden inside the name is the word rest — the promise that you can finally stop assembling and start building.

What is included

PackagePurpose
@restjs/coreHTTP server, router, middleware
@restjs/securityHelmet, rate limiting, CSRF
@restjs/ormDatabase ORM with migrations
@restjs/authJWT, password hashing, RBAC
@restjs/validationSchema-based request validation
@restjs/testingTest runner and HTTP client
@restjs/eventsIn-process event bus
@restjs/websocketWebSocket server with rooms
@restjs/queueMessage queue and scheduler
@restjs/circuitCircuit breaker and retry
@restjs/observabilityLogging, metrics, tracing
@restjs/aiLLM providers, RAG, agents
@restjs/cloudMulti-tenancy, audit, deploy
@restjs/memoryLeak detection, optimization

Tip

Start with the Quick Start to have a running server in under 2 minutes.