{"id":50877461,"url":"https://github.com/mertushka/webrtc-node","last_synced_at":"2026-06-15T11:03:54.531Z","repository":{"id":361037601,"uuid":"1252640842","full_name":"mertushka/webrtc-node","owner":"mertushka","description":"WebRTC data channels for Node.js, backed by libdatachannel and validated with 620 selected Web Platform Tests subtests","archived":false,"fork":false,"pushed_at":"2026-06-14T00:52:42.000Z","size":390,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-14T02:23:16.374Z","etag":null,"topics":["libdatachannel","node-api","nodejs","rtcdatachannel","rtcpeerconnection","webrtc","wpt"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mertushka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-28T18:15:03.000Z","updated_at":"2026-06-14T00:52:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mertushka/webrtc-node","commit_stats":null,"previous_names":["mertushka/webrtc-node"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/mertushka/webrtc-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mertushka%2Fwebrtc-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mertushka%2Fwebrtc-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mertushka%2Fwebrtc-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mertushka%2Fwebrtc-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mertushka","download_url":"https://codeload.github.com/mertushka/webrtc-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mertushka%2Fwebrtc-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34357285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["libdatachannel","node-api","nodejs","rtcdatachannel","rtcpeerconnection","webrtc","wpt"],"created_at":"2026-06-15T11:03:53.848Z","updated_at":"2026-06-15T11:03:54.522Z","avatar_url":"https://github.com/mertushka.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ewebrtc-node\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/mertushka/webrtc-node/actions/workflows/ci.yml\"\u003e\u003cimg alt=\"CI\" src=\"https://github.com/mertushka/webrtc-node/actions/workflows/ci.yml/badge.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@mertushka/webrtc-node\"\u003e\u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/@mertushka/webrtc-node\"\u003e\u003c/a\u003e\n  \u003cimg alt=\"Node.js\" src=\"https://img.shields.io/badge/node-%3E%3D20-339933\"\u003e\n  \u003cimg alt=\"API\" src=\"https://img.shields.io/badge/API-W3C--style-0a7\"\u003e\n  \u003cimg alt=\"Data Channels\" src=\"https://img.shields.io/badge/scope-data%20channels-4c1\"\u003e\n  \u003cimg alt=\"TypeScript\" src=\"https://img.shields.io/badge/types-TypeScript-3178c6\"\u003e\n  \u003cimg alt=\"WPT\" src=\"https://img.shields.io/badge/WPT-620%20selected%20subtests-4c1\"\u003e\n  \u003cimg alt=\"Native API\" src=\"https://img.shields.io/badge/native-Node--API-blue\"\u003e\n  \u003cimg alt=\"License\" src=\"https://img.shields.io/badge/license-MPL--2.0-orange\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  WebRTC data channels for Node.js, backed by\n  \u003ca href=\"https://github.com/paullouisageneau/libdatachannel\"\u003elibdatachannel\u003c/a\u003e\n  and validated with 620 selected Web Platform Tests subtests.\n\u003c/p\u003e\n\n```sh\nnpm install @mertushka/webrtc-node\n```\n\n## Usage\n\n```js\nconst { RTCPeerConnection } = require(\"@mertushka/webrtc-node\");\n\nconst pc = new RTCPeerConnection({ iceServers: [] });\nconst channel = pc.createDataChannel(\"events\");\n\nchannel.addEventListener(\"open\", () =\u003e {\n  channel.send(\"hello from Node\");\n});\n\nchannel.addEventListener(\"message\", (event) =\u003e {\n  console.log(event.data);\n});\n```\n\nSee [examples/datachannel.js](examples/datachannel.js) for a complete local\noffer/answer exchange.\n\n## Supported Platforms\n\nNode.js 20 or newer is required. The npm package downloads a matching Node-API\nprebuild when available, verifies its SHA-256 digest and target, then falls back\nto a `cmake-js` source build.\n\n| OS | Prebuild targets | Node 20 | Node 22 | Node 24 |\n| --- | --- | --- | --- | --- |\n| Linux | x64 glibc, x64 musl | ✅ | ✅ | ✅ |\n| macOS | x64, arm64 | ✅ | ✅ | ✅ |\n| Windows | x64, arm64 | ✅ | ✅ | ✅ |\n\nSource builds require CMake, a C++17 compiler, and OpenSSL development\nlibraries.\n\n## Performance Snapshot\n\nLocal benchmark snapshots show this package ahead on binary throughput and\nobject operation rates. Benchmarks are environment-sensitive; treat them as\ndirectional rather than a substitute for testing your workload.\n\n| Metric | `webrtc-node` | `node-datachannel` | `@roamhq/wrtc` |\n| --- | ---: | ---: | ---: |\n| Linux binary 8 KiB x1000 | 39.9 MB/s | 30.4 MB/s | 27.4 MB/s |\n| Linux construct+close PC | 53k ops/s | 3.2k ops/s | 200 ops/s |\n| Linux negotiated DC create+close | 2.2k ops/s | 974 ops/s | 173 ops/s |\n\n## Contributing\n\nRead [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request. Public\nAPI changes should update runtime code, TypeScript declarations, tests, and WPT\ndocumentation together.\n\n## License\n\nMozilla Public License 2.0. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmertushka%2Fwebrtc-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmertushka%2Fwebrtc-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmertushka%2Fwebrtc-node/lists"}