35 packages

Packages

Every published NextRush package — core, class runtime, middleware, extensions, adapters, and tooling. Install only what you need.

35 of 35 packages

CoreStable

nextrush

Core

Meta package that re-exports the core framework and the class runtime subpath.

$pnpm add nextrush
CoreStable

@nextrush/core

Core

Application, Context, and middleware composition — the framework entry point.

$pnpm add @nextrush/core
CoreStable

@nextrush/router

Core

Segment trie router with O(k) lookup regardless of route count.

$pnpm add @nextrush/router
CoreStable

@nextrush/types

Core

Shared TypeScript types used across every NextRush package.

$pnpm add @nextrush/types
CoreStable

@nextrush/errors

Core

Standardized HTTP error class hierarchy for the whole framework.

$pnpm add @nextrush/errors
CoreStable

@nextrush/runtime

Core

Runtime detection and cross-runtime abstractions used by adapters.

$pnpm add @nextrush/runtime
CoreStable

@nextrush/stream

Core

Runtime-agnostic response streaming (text, SSE, NDJSON) for AI/agentic apps.

$pnpm add @nextrush/stream
CoreStable

@nextrush/class

Class Runtime

Consolidated class runtime — decorators, DI re-export, controllers, modules, guards, interceptors, filters, and lifecycle hooks.

$pnpm add @nextrush/class
CoreStable

@nextrush/di

Class Runtime

Lightweight dependency injection container wrapping tsyringe.

$pnpm add @nextrush/di
ToolStable

@nextrush/testing

Class Runtime

Test harness with DI isolation for class-based controllers and services.

$pnpm add @nextrush/testing
MiddlewareStable

@nextrush/helmet

Security

Security headers middleware (CSP, HSTS, X-Content-Type-Options, and more).

$pnpm add @nextrush/helmet
MiddlewareStable

@nextrush/cors

Security

CORS header middleware with configurable origin, method, and header allow-lists.

$pnpm add @nextrush/cors
MiddlewareStable

@nextrush/csrf

Security

CSRF protection via the signed double-submit cookie pattern with HMAC-SHA256.

$pnpm add @nextrush/csrf
MiddlewareStable

@nextrush/rate-limit

Security

Rate limiting middleware with token-bucket and sliding-window algorithms.

$pnpm add @nextrush/rate-limit
MiddlewareStable

@nextrush/body-parser

Request Data

JSON, form, and text request body parsing middleware.

$pnpm add @nextrush/body-parser
MiddlewareStable

@nextrush/form-data

Request Data

Streaming multipart/form-data parser and file upload middleware.

$pnpm add @nextrush/form-data
MiddlewareStable

@nextrush/cookies

Request Data

Cookie parsing and serialization middleware.

$pnpm add @nextrush/cookies
MiddlewareStable

@nextrush/validation

Request Data

Standard Schema request validation middleware — works with Zod, Valibot, and ArkType.

$pnpm add @nextrush/validation
MiddlewareStable

@nextrush/compression

Responses

Response compression middleware with Gzip, Brotli, and Deflate support.

$pnpm add @nextrush/compression
MiddlewareStable

@nextrush/static

Responses

Static file serving middleware.

$pnpm add @nextrush/static
MiddlewareStable

@nextrush/template

Responses

Template rendering engine with helpers, partials, layouts, and streaming.

$pnpm add @nextrush/template
MiddlewareStable

@nextrush/openapi

Responses

Zero-config OpenAPI 3.1 generation from route validation metadata.

$pnpm add @nextrush/openapi
MiddlewareStable

@nextrush/logger

Observability

Structured request logging middleware.

$pnpm add @nextrush/logger
MiddlewareStable

@nextrush/request-id

Observability

Request ID generation middleware for distributed tracing and correlation.

$pnpm add @nextrush/request-id
MiddlewareStable

@nextrush/timer

Observability

Response time tracking middleware.

$pnpm add @nextrush/timer
MiddlewareStable

@nextrush/health

Observability

Liveness/readiness health check endpoints for orchestrator probes (Kubernetes, PM2, systemd).

$pnpm add @nextrush/health
ExtensionStable

@nextrush/events

Real-time & Events

Type-safe, async-ready event emitter registered as a long-lived app extension.

$pnpm add @nextrush/events
ExtensionStable

@nextrush/websocket

Real-time & Events

WebSocket support with rooms, broadcasting, and a factory + middleware API.

$pnpm add @nextrush/websocket
AdapterStable

@nextrush/adapter-node

Adapters

Node.js HTTP adapter — the default runtime target.

$pnpm add @nextrush/adapter-node
AdapterStable

@nextrush/adapter-bun

Adapters

Bun HTTP adapter.

$pnpm add @nextrush/adapter-bun
AdapterStable

@nextrush/adapter-deno

Adapters

Deno HTTP adapter.

$pnpm add @nextrush/adapter-deno
AdapterStable

@nextrush/adapter-edge

Adapters

Edge runtime adapter for Cloudflare Workers, Vercel Edge, and similar platforms.

$pnpm add @nextrush/adapter-edge
AdapterStable

@nextrush/adapter-serverless

Adapters

Serverless adapter for AWS Lambda, API Gateway, GCF, and Azure via a generic event-mapper registry.

$pnpm add @nextrush/adapter-serverless
ToolStable

@nextrush/dev

Tooling

Hot reload dev server, production builds, and code generators — multi-runtime.

$pnpm add @nextrush/dev
ToolStable

create-nextrush

Tooling

Interactive project scaffolder for new NextRush applications.

$pnpm add create-nextrush