{"id":15726011,"url":"https://github.com/wngr/libp2p-webrtc","last_synced_at":"2025-04-30T22:27:40.726Z","repository":{"id":43290827,"uuid":"407643042","full_name":"wngr/libp2p-webrtc","owner":"wngr","description":"WebRTC transport for libp2p (native and wasm)","archived":false,"fork":false,"pushed_at":"2022-11-29T08:07:11.000Z","size":230,"stargazers_count":31,"open_issues_count":3,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-22T07:12:10.860Z","etag":null,"topics":["datachannel","libp2p","rust","signaling","webrtc"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wngr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE2.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-17T18:29:05.000Z","updated_at":"2024-12-11T22:59:08.000Z","dependencies_parsed_at":"2023-01-23T12:16:10.394Z","dependency_job_id":null,"html_url":"https://github.com/wngr/libp2p-webrtc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wngr%2Flibp2p-webrtc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wngr%2Flibp2p-webrtc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wngr%2Flibp2p-webrtc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wngr%2Flibp2p-webrtc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wngr","download_url":"https://codeload.github.com/wngr/libp2p-webrtc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251791038,"owners_count":21644341,"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","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":["datachannel","libp2p","rust","signaling","webrtc"],"created_at":"2024-10-03T22:25:23.035Z","updated_at":"2025-04-30T22:27:40.708Z","avatar_url":"https://github.com/wngr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libp2p-webrtc\n**NOTE: webrtc support has been added to rust-libp2p. browser-to-browser is not\nyet supported. This crate will stay as-is and not receive any maintenance\nefforts anymore.**\n\n[![License](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](https://github.com/wngr/libp2p-webrtc)\n[![Cargo](https://img.shields.io/crates/v/libp2p-webrtc.svg)](https://crates.io/crates/libp2p-webrtc)\n[![Documentation](https://docs.rs/libp2p-webrtc/badge.svg)](https://docs.rs/libp2p-webrtc)\n\nWebRTC transport for rust-libp2p for both native and WebAssembly (browser). For\ninitiating a connection between two peers, both of them need to connect to the\nsame WebSocket signaling server (via a call to `listen_on`). Either one can dial\nthe other peer by using the `p2p-webrtc-star` protocol. Note, that this crate is\ncurrently not interoperable with the respective js-libp2p and go-libp2p\nimplementations.\n\nAdditional, a signaling server implementation is provided within the crate.\n\n## Quickstart\n\nTo compile this crate, you need `gcc g++ libssl-dev make cmake clang\npkg-config`.\n\n```rust\nlet base_transport = WebRtcTransport::new(peer_id, vec![\"stun:stun.l.google.com:19302\"]);\nlet transport = base_transport.upgrade()...\n\n..\n\nswarm\n    .listen_on(\n        \"/ip4/127.0.0.1/tcp/8001/ws/p2p-webrtc-star\"\n            .parse()\n            .unwrap(),\n    )\n    .unwrap();\n```\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n#### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwngr%2Flibp2p-webrtc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwngr%2Flibp2p-webrtc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwngr%2Flibp2p-webrtc/lists"}