NextRush

NextRush Documentation

Minimal, modular, type-safe Node.js backend framework — docs home.

NextRush is a minimal, modular, type-safe HTTP framework for Node.js and other runtimes. The core stays under 3,000 lines with no runtime dependencies; you add @nextrush/* packages when you need them. Everything is written for TypeScript strict mode.

Current Version

NextRush v3 is in active development. APIs are stabilizing — suitable for early adopters. Requires Node.js 22+.

Why NextRush?

Most backend frameworks force a trade-off:

  1. Minimalist but limiting — Great for prototypes, frustrating at scale.
  2. Feature-rich but opaque — Lots of features, but behavior is hidden from you.

NextRush takes a different approach: small core, modular packages, explicit behavior. You install what you need and see what happens at every layer.

Lean routing

Segment trie routing with O(d) lookup.

🎯

Type Safe

Full TypeScript strict mode. Zero `any`.

📦

Modular

30 packages in the monorepo. Install what you need.

🌐

Multi-Runtime

Node.js, Bun, Deno, and Edge adapters.

🔌

Extensible

Plugin system for controllers, WebSocket, and more.

🛡️

Security Middleware

Helmet, CORS, rate limiting available as packages.

Quick Start

$ pnpm add nextrush
src/index.ts
import { createApp, createRouter, listen } from 'nextrush';

const app = createApp();

const users = createRouter();
users.get('/', (ctx) => ctx.json([{ id: 1, name: 'Alice' }]));
users.get('/:id', (ctx) => ctx.json({ id: ctx.params.id }));

app.route('/users', users);

await listen(app, 3000);
Terminal
npx tsx src/index.ts
# → 🚀 NextRush listening on http://localhost:3000

Choose your path

Design Philosophy

NextRush is built on these principles:

PrincipleWhat It Means
Minimal CoreCore is under 3,000 lines of code.
Explicit Over ImplicitNo hidden behavior. You see what happens.
Composition Over InheritanceBuild with functions and middleware, not deep class hierarchies.
Type Safety FirstTypeScript strict mode from the ground up. Zero any allowed.
Zero Runtime DependenciesNo external runtime deps in core. reflect-metadata is auto-imported for DI.

Dual Paradigm

NextRush supports both functional and class-based programming styles. Start with functions for simplicity, add decorators and DI when your project grows. Both styles work together — no forced migration.

Learn more about programming styles →

What's Next?

Start with the Getting Started guide to install NextRush and create your first API.

Questions? Use GitHub Discussions or open an issue. For AI-assisted workflows, see the Skills directory.

On this page