Packages
Every published NextRush package — core, class runtime, middleware, extensions, adapters, and tooling. Install only what you need.
35 of 35 packages
nextrush
Core
Meta package that re-exports the core framework and the class runtime subpath.
pnpm add nextrush@nextrush/core
Core
Application, Context, and middleware composition — the framework entry point.
pnpm add @nextrush/core@nextrush/router
Core
Segment trie router with O(k) lookup regardless of route count.
pnpm add @nextrush/router@nextrush/types
Core
Shared TypeScript types used across every NextRush package.
pnpm add @nextrush/types@nextrush/errors
Core
Standardized HTTP error class hierarchy for the whole framework.
pnpm add @nextrush/errors@nextrush/runtime
Core
Runtime detection and cross-runtime abstractions used by adapters.
pnpm add @nextrush/runtime@nextrush/stream
Core
Runtime-agnostic response streaming (text, SSE, NDJSON) for AI/agentic apps.
pnpm add @nextrush/stream@nextrush/class
Class Runtime
Consolidated class runtime — decorators, DI re-export, controllers, modules, guards, interceptors, filters, and lifecycle hooks.
pnpm add @nextrush/class@nextrush/di
Class Runtime
Lightweight dependency injection container wrapping tsyringe.
pnpm add @nextrush/di@nextrush/testing
Class Runtime
Test harness with DI isolation for class-based controllers and services.
pnpm add @nextrush/testing@nextrush/helmet
Security
Security headers middleware (CSP, HSTS, X-Content-Type-Options, and more).
pnpm add @nextrush/helmet@nextrush/cors
Security
CORS header middleware with configurable origin, method, and header allow-lists.
pnpm add @nextrush/cors@nextrush/csrf
Security
CSRF protection via the signed double-submit cookie pattern with HMAC-SHA256.
pnpm add @nextrush/csrf@nextrush/rate-limit
Security
Rate limiting middleware with token-bucket and sliding-window algorithms.
pnpm add @nextrush/rate-limit@nextrush/body-parser
Request Data
JSON, form, and text request body parsing middleware.
pnpm add @nextrush/body-parser@nextrush/form-data
Request Data
Streaming multipart/form-data parser and file upload middleware.
pnpm add @nextrush/form-data@nextrush/cookies
Request Data
Cookie parsing and serialization middleware.
pnpm add @nextrush/cookies@nextrush/validation
Request Data
Standard Schema request validation middleware — works with Zod, Valibot, and ArkType.
pnpm add @nextrush/validation@nextrush/compression
Responses
Response compression middleware with Gzip, Brotli, and Deflate support.
pnpm add @nextrush/compression@nextrush/static
Responses
Static file serving middleware.
pnpm add @nextrush/static@nextrush/template
Responses
Template rendering engine with helpers, partials, layouts, and streaming.
pnpm add @nextrush/template@nextrush/openapi
Responses
Zero-config OpenAPI 3.1 generation from route validation metadata.
pnpm add @nextrush/openapi@nextrush/logger
Observability
Structured request logging middleware.
pnpm add @nextrush/logger@nextrush/request-id
Observability
Request ID generation middleware for distributed tracing and correlation.
pnpm add @nextrush/request-id@nextrush/timer
Observability
Response time tracking middleware.
pnpm add @nextrush/timer@nextrush/health
Observability
Liveness/readiness health check endpoints for orchestrator probes (Kubernetes, PM2, systemd).
pnpm add @nextrush/health@nextrush/events
Real-time & Events
Type-safe, async-ready event emitter registered as a long-lived app extension.
pnpm add @nextrush/events@nextrush/websocket
Real-time & Events
WebSocket support with rooms, broadcasting, and a factory + middleware API.
pnpm add @nextrush/websocket@nextrush/adapter-node
Adapters
Node.js HTTP adapter — the default runtime target.
pnpm add @nextrush/adapter-node@nextrush/adapter-deno
Adapters
Deno HTTP adapter.
pnpm add @nextrush/adapter-deno@nextrush/adapter-edge
Adapters
Edge runtime adapter for Cloudflare Workers, Vercel Edge, and similar platforms.
pnpm add @nextrush/adapter-edge@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@nextrush/dev
Tooling
Hot reload dev server, production builds, and code generators — multi-runtime.
pnpm add @nextrush/devcreate-nextrush
Tooling
Interactive project scaffolder for new NextRush applications.
pnpm add create-nextrush