The Principal Dev – Masterclass for Tech Leads

The Principal Dev – Masterclass for Tech Leads28-29 May

Join

HyperExpress: High Performance Node.js Webserver

Powered by uWebSockets.js

NPM version NPM downloads GitHub issues GitHub stars GitHub license

Motivation

HyperExpress aims to be a simple yet performant HTTP & Websocket Server. Combined with the power of uWebsockets.js, a Node.js binding of uSockets written in C++, HyperExpress allows developers to unlock higher throughput for their web applications with their existing hardware. This can allow many web applications to become much more performant on optimized data serving endpoints without having to scale hardware.

Some of the prominent highlights are:

See > [Benchmarks] for performance metrics against other webservers in real world deployments.

Documentation

HyperExpress v7 supports the active even-numbered Node.js release lines 22, 24, and 26 and can be installed using Node Package Manager (npm). HyperExpress remains CommonJS-only and preserves its existing snake_case API.

npm i hyper-express

HyperExpress uses the native uWebSockets.js addon. Its prebuilt binaries support Tier 1 macOS and Windows platforms, and glibc-based Tier 1 Linux distributions. Alpine Linux uses musl instead of glibc; plain Alpine and Alpine with gcompat are not supported because the native addon can terminate with SIGSEGV. Use a Debian or Ubuntu based Node.js image for reliable container deployments.

Encountering Problems?

Testing Changes

To run HyperExpress functionality tests locally on your machine, you must follow the steps below.

  1. Clone the HyperExpress repository to your machine.
  2. Run npm ci in the root directory. Test-only dependencies are installed from the root lockfile.
  3. Run npm test for runtime tests.
  4. Run npm run test:types for positive and negative TypeScript fixtures.
  5. Run npm run test:load for the heavier HTTP, multipart, abort, WebSocket, and memory stress gate.

License

MIT

Join libs.tech

...and unlock some superpowers

GitHub

We won't share your data with anyone else.