Using the complete web protocol in a N-API env.
We have stitched and bound many existing Rust libraries using N-API to enable developers to use robust web protocols.
- Cross-Runtime. Due to the compatibility of N-API with mainstream JS runtime (Node.js, Bun, and Deno), it is fully available at runtime.
- Easy-to-Use. Quickly create web protocol services through a simple API.
- High-Performance. Rust + Tokio ensures maximum efficiency in utilizing performance.
| Protocols | Libraries | API Design References |
|---|---|---|
| HTTP/1、HTTP/2 | hyper | node:http |
| HTTP/3 | h3 | node:http |
| WebSocket | hyper-tungstenite | npm:ws |
| WebTransport | wtransport | npm:@fails-components/webtransport |
- Implement Client.
- Support WebRTC.