Build a real-time chat server that holds tens of thousands of simultaneous WebSocket connections on modest hardware.
Create a live data feed backend that pushes price updates or sensor readings to many clients at once.
Run a multiplayer game server that needs to handle high message throughput with minimal CPU overhead.
Installation points to a specific GitHub tag via npm, not the public registry, full API documentation is in separate linked docs rather than the README.
uWebSockets.js is a web server library for Node.js back-ends built on about 10,000 lines of C++. It connects to Node.js as a native add-on, meaning it runs at C++ speed while still being usable from JavaScript or TypeScript code. The README describes it as one of the fastest standards-compliant web servers available, citing benchmark results that show it significantly outperforming Socket.IO and Fastify on the same hardware. It is also listed as a core component of the Bun JavaScript runtime. The library handles HTTP and WebSocket connections. Its design emphasis is on raw throughput and low resource usage, which makes it relevant for applications that need to hold large numbers of simultaneous connections, such as real-time messaging, live data feeds, or multiplayer game servers. The README references a blog post demonstrating 100,000 secure WebSocket connections running on a Raspberry Pi 4, used to illustrate how efficient the library is at the low end of hardware. Installation is done through the npm client but not through the public npm registry. The install command points directly at the GitHub repository with a specific version tag. Documentation and examples are linked from the README, the README itself is sparse and does not walk through full setup steps or API details inline. Licensing is described as having two tiers. Some source files carry an Apache License 2.0 notice, which is a permissive open-source license. The rest of the intellectual property is listed as all rights reserved. The README advises reading the license terms carefully before modifying or forking the code.
← unetworking on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.