uWestJS v2.0.1 is a high-performance platform adapter for NestJS powered by uWebSockets.js, providing HTTP and WebSocket capabilities with up to 4-5x faster performance than Express and 2-2.5x faster than Fastify. It maintains full compatibility with NestJS decorators and patterns, supports native backpressure handling, built-in compression, and streaming. Notable for its low memory footprint and ability to handle thousands of concurrent connections. Built specifically for Node.js >=24, it ships with full TypeScript types and supports NestJS v9-11. Its key differentiator is bringing uWebSockets.js performance to NestJS without requiring code changes.
npm install uwestjsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup of a NestJS application using the uWestJS adapter (UwsAdapter) to replace Express/Fastify. Requires @nestjs/platform-uws package.
Upgrade Node.js to version 24 or higher (maximum 25). Check engines field in package.json.
Replace all imports from 'uwestjs' with '@nestjs/platform-uws' and subpath imports (e.g., '/http', '/websocket')
Change `import UwsAdapter from 'uwestjs'` to `import { UwsAdapter } from '@nestjs/platform-uws'`Configure body parser options with `UwsAdapter({ bodyParser: { limit: '1mb' } })`Implement message splitting or use streaming for large payloads; monitor with uws memory limits
Run `npm install @nestjs/platform-uws` and ensure import paths are correct (not 'uwestjs')
Change import to `import { UwsAdapter } from '@nestjs/platform-uws'`Run `npm install reflect-metadata` and import it first in main.ts: `import 'reflect-metadata'`
Add `"type": "module"` to package.json or rename files to .mjs