-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Tanzim Hossain edited this page Aug 6, 2026
·
6 revisions
NextRush is a TypeScript web framework built to eliminate accidental complexity from backend development. Applications get a small, explicit core, a runtime-independent execution model, and a class-based layer on top for teams that prefer declarative APIs — with no framework lock-in in either direction.
v4 is current — ESM-only, Node ≥ 22, TypeScript 5.x. See Getting Started to start a server in under a minute.
import { createApp, listen } from 'nextrush';
const app = createApp();
app.get('/hello/:name', (ctx) => {
ctx.body = { message: `Hello, ${ctx.params.name}!` };
});
await listen(app, 8080);Handlers write through the Context — no returned Response objects, no hidden global state.
- One obvious golden path — copy-paste-runnable, working out of the box.
- Runtime independent — the same app runs on Node, Bun, Deno, and edge runtimes via adapters; core speaks only Web-standard primitives.
- Small core, two layers — a functional core (routes, middleware, context) and an optional class runtime (controllers, DI, modules) that is a registrar on top of the core, not a rewrite.
- Zero-dependency core — the framework owns complexity; applications stay lean and fast. See Performance for the benchmark scoreboard.
- Excellent DX — strict types, actionable errors, autocomplete-friendly APIs, testing built around real objects, not mocks.
- Getting Started — install, scaffold, first server
- Core Concepts — application, context, handlers, middleware
- Routing — the segment-trie router, params, mounting
- Middleware — composition and ordering
- Error Handling — error hierarchy and handlers
- Controllers & Decorators — the class-based layer
- Dependency Injection — the container and scopes
- Modules — grouping a feature behind one declaration
- Extensions — long-lived app-scoped services
- Streaming — text, SSE, and NDJSON responses
- Request Lifecycle — how a request flows through the pipeline
- Adapters — runtime abstraction and parity
- Testing — unit, integration, and E2E patterns
- Performance — benchmarks and tuning
- Packages — package index and exports
- Architecture — monorepo design and invariants
- Contributing — development setup and conventions
- Changelog — release history and upgrade notes
- Documentation site — full API reference, guides, and tutorials
- Repository
- npm
NextRush · MIT License · Docs · Issues