Twitter/X

uWestJS v2.0 is a NestJS platform adapter that integrates uWebSockets (a…

Brief

uWestJS v2.0 is a NestJS platform adapter that integrates uWebSockets (a high‑performance HTTP/WS implementation) into NestJS; after about four weeks of work the author (post dated 2026‑05‑03) says the adapter preserves NestJS patterns while offering the benchmarks' claimed 3–4× speed improvement over Express and even attracted a PR from @mvanhorn. The release already implements a hybrid streaming body parser (three modes, automatic switching), streaming compression (gzip/brotli/deflate), RFC‑compliant CORS, static file serving with ETag/range/conditional GET, streaming multipart uploads, and a full middleware pipeline. On the WebSocket side it adds room broadcasting, per‑message deflate, backpressure handling with message queues, NestJS decorator support, lifecycle hooks, and WS exception filters. The author emphasizes low‑level memory and streaming optimizations (stack‑allocated ArrayBuffers, header/body/cookie caching, zero‑copy streaming, backpressure propagation), cites deep dives into relevant RFCs and upstream implementations, and plans an npm/GitHub launch (github.com/FOSSFORGE/uWestJS).

Reader · no content

No body text on file.

Open the original to read the full piece.