HeadlinesBriefing favicon HeadlinesBriefing.com

HTTP/3 QUIC Client/Server APIs for Node.js via Rust/quiche

Hacker News •
×

A developer created @currentspace/http3, a native Node.js package enabling HTTP/3 and raw QUIC connections without custom builds or reverse proxies. Built on Rust/quiche, it provides both client and server APIs for handling QUIC streams, datagrams, and custom ALPN negotiations. The package runs on Node.js 24+ with prebuilt binaries for Linux and macOS.

The library supports HTTP/3 over QUIC/UDP with automatic HTTP/2 fallback over TLS/TCP. It features platform-native I/O using kqueue on macOS and io_uring on Linux, plus Express compatibility through @currentspace/http3/express. Developers can select runtime modes (fast, portable, auto) with configurable fallback policies for deployment flexibility.

Version 0.6.0 added mTLS support for raw QUIC clients and servers, plus explicit client certificate validation using Node's X509Certificate API. The package handles session resumption, bidirectional streams, and datagram frames while maintaining safety through Rust's memory guarantees. Real-world usage includes hosting multiple sites as HTTP/3 endpoints.

This eliminates the complexity of proxying or compiling Node.js for modern web protocols, delivering QUIC directly to JavaScript applications.