node-webrtc is a Node.js Native Addon that provides bindings to WebRTC M98. This project is aiming for spec-compliance and will eventually be tested using the W3C's web-platform-tests project. A number of nonstandard APIs for testing are also included.
npm install @roamhq/wrtc
Installing from NPM downloads a prebuilt binary for your operating system × architecture, based on optional dependency filters.
To install a debug build or cross-compile, you should build from source.
The following platforms are confirmed to work with node-webrtc and have prebuilt binaries available. Since node-webrtc targets N-API version 3, there may be additional platforms supported that are not listed here. If your platform is not supported, you may still be able to build from source.
Linux | macOS | Windows | ||||
---|---|---|---|---|---|---|
x64 | arm64 | x64 | arm64 | x64 | ||
Node | 18 | ✓ | ? | ✓ | ✓ | ✓ |
20 | ✓ | ? | ✓ | ? | ✓ |