node-webrtc is a Node.js native addon that exposes WebRTC APIs from a pinned upstream release. Prebuilt npm binaries target common Linux, macOS, and Windows installs.
Overview
node-webrtc wraps WebRTC functionality for use inside Node.js applications. It aims to align with web platform standards and eventually validate behavior against the W3C web-platform-tests suite. Additional nonstandard APIs are included to support testing scenarios.
Installation from npm downloads a prebuilt binary matched to the host operating system and CPU architecture through optional dependency filters. Teams that need debug builds or cross-compilation can build from source instead.
Prebuilt binaries are available for Linux, macOS, and Windows on x64 and arm64, tested with recent Node LTS releases. Because the package targets N-API version 3, other combinations may work even when not listed.
Example projects live in a separate examples repository. Related options include node-datachannel and werift if this package does not fit a given deployment.
Key features
- WebRTC bindings for Node.js
- N-API based native addon
- Prebuilt npm binaries
- Spec-compliance orientation
- Extra APIs for testing
- Source build option
Use cases
- WebRTC in Node.js servers
- Peer connection prototyping
- Realtime media in backend services
- Automated WebRTC testing