v4.0.1· Node.js 22+, Bun, Deno, Edge

NextRush

Explicit architecture. Zero hidden behavior.

NextRush is the backend framework for developers who want to reason about every request, not guess what a framework did for them. Start with a small functional core; add segment-trie routing, middleware, and the class runtime only when your application needs them. Benchmarks publish the methodology so you can reproduce results on your own hardware.

Node.jsBunDenoEdgeTypeScript
Zero runtime depsMIT licensed
src/index.ts
import { createApp, createRouter, listen } from 'nextrush';

const app = createApp();
const router = createRouter();
const PORT = Number(process.env.PORT) || 8080;

router.get('/', (ctx) => {
 ctx.json({ message: 'Hello NextRush!' });
});

await listen(app, PORT);
GET /200 OK{ "message": "Hello NextRush!" }

An explicit stack, not a magic box

Keep the request path understandable and add capabilities only where they solve a real application need.

Request
Router
Middleware
Context
Response

Segment-trie routing

Route matching scales with URL segments rather than route count, while keeping application code explicit.

Typed request flow

Context, routes, middleware, and errors share TypeScript contracts without loosening to `any`.

Small core, optional modules

Start with the functional core, then add middleware, streaming, or class-based composition when needed.

Web-standard adapters

Write against Request, Response, streams, and AbortSignal; adapters carry runtime-specific details.

Class runtime when it helps

Controllers, modules, request scopes, guards, and lifecycle hooks remain an opt-in path.

Security as composition

Add CORS, headers, CSRF protection, rate limits, and validation as intentional middleware choices.


Install your first app

Choose a package manager, install the core, then follow the introduction.

$ pnpm add nextrush