{"id":19177882,"url":"https://github.com/eyevinn/node-webrtc","last_synced_at":"2025-08-12T22:37:04.622Z","repository":{"id":79237588,"uuid":"278580098","full_name":"Eyevinn/node-webrtc","owner":"Eyevinn","description":"WebRTC util modules for NodeJS","archived":false,"fork":false,"pushed_at":"2020-07-10T08:45:59.000Z","size":23,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-08T16:29:56.197Z","etag":null,"topics":["library"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Eyevinn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-10T08:25:45.000Z","updated_at":"2023-05-03T00:40:09.000Z","dependencies_parsed_at":"2023-06-06T23:30:42.582Z","dependency_job_id":null,"html_url":"https://github.com/Eyevinn/node-webrtc","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"ed7d721676d684ee6e4f0d6ce159741cd961c88d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Eyevinn/node-webrtc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyevinn%2Fnode-webrtc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyevinn%2Fnode-webrtc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyevinn%2Fnode-webrtc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyevinn%2Fnode-webrtc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eyevinn","download_url":"https://codeload.github.com/Eyevinn/node-webrtc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eyevinn%2Fnode-webrtc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270148085,"owners_count":24535693,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"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":["library"],"created_at":"2024-11-09T10:35:36.296Z","updated_at":"2025-08-12T22:37:04.597Z","avatar_url":"https://github.com/Eyevinn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebRTC Util Modules\n\nThis library is based on the WebRTC bindings provided by [node-webrtc](https://github.com/node-webrtc/node-webrtc) and provides a set of utility modules when building WebRTC server applications in NodeJS.\n\n## WebRTC Connection Manager\n\nTo handle the negotiation of connections between peers the WebRTC Connection Manager module included in this library can be used. This connection manager provides a REST based API for the [negotiation between peers of various audio and video codecs](https://www.tutorialspoint.com/webrtc/webrtc_session_description_protocol.htm), network topologies and other device information.\n\n```\nconst { WebRTCConnectionManager } = require('@eyevinn/webrtc');\n\nconst connectionManager = new WebRTCConnectionManager({ port: 3000 });\nconnectionManager.register(\"beforeoffer\", (peerConnection, next) =\u003e {\n  console.log(\"Do stuff here before offer\");\n  next();\n});\n\nconnectionManager.on(\"connect\", connection =\u003e {\n  console.log(\"Do stuff here when a client connected\");\n});\n\nconnectionManager.on(\"close\", () =\u003e {\n  console.log(\"Clean up stuff when a client disconnect\");\n});\n\nconnectionManager.listen();\n```\n\nSee `example` for a simple example of an audio/video loopback.\n\nThe REST API in the above example is available on `localhost:3000` and the Swagger API documentation on `http://localhost:3000/api/docs`.\n\n# LICENSE\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyevinn%2Fnode-webrtc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feyevinn%2Fnode-webrtc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyevinn%2Fnode-webrtc/lists"}