{"schemaVersion":1,"id":"peerjs","name":"PeerJS","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/peerjs/","officialUrl":"https://github.com/peers/peerjs","isCatalog":false,"description":"A wrapper for WebRTC data and media connections: it helps connect browser clients for peer-to-peer application features.","tasks":["Connect browser clients through WebRTC","Create a peer connection and test transmission between two test clients"],"categoryIds":["backend"],"subcategoryIds":["backend.api","backend.realtime"],"tags":["PeerJS","API","Development"],"aliases":["peers/peerjs","peerjs"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Connect browser clients through WebRTC","chooseWhen":["Connect browser clients through WebRTC","Create a peer connection and test transmission between two test clients"],"considerInstead":[],"requirements":["The video call example requires a MediaStream from navigator.mediaDevices.getUserMedia and another peer's ID."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for the code; dependencies have separate licenses.","The README lists testing in Firefox, Chrome, Edge, and Safari; other browsers may work but have no declared official support."],"faq":[{"question":"What can you use for free in PeerJS?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with PeerJS?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for PeerJS?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with PeerJS?","answer":"Define data or media exchange between application participants. Create a peer connection and test transmission between two test clients. Add error handling and an integration check of the result."},{"question":"How does PeerJS transmit data and video streams?","answer":"For data, the example creates a connection through peer.connect(id), waits for open, and calls send; the receiving side handles connection and data. For calls, getUserMedia obtains a stream, peer.call sends it, and the recipient answers with call.answer."}],"related":[],"sources":["https://github.com/peers/peerjs","https://raw.githubusercontent.com/peers/peerjs/HEAD/README.md","https://raw.githubusercontent.com/peers/peerjs/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Connect browser clients through WebRTC.","inputs":["A data contract or HTTP workflow.","A project with a supported runtime."],"steps":["Define data or media exchange between application participants.","Create a peer connection and test transmission between two test clients.","Add error handling and an integration check of the result."],"checks":["Invalid and missing data are handled predictably.","Types and the actual response agree; errors are not hidden."]},"sources":["https://github.com/peers/peerjs","https://raw.githubusercontent.com/peers/peerjs/HEAD/README.md","https://raw.githubusercontent.com/peers/peerjs/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Backend / API library","kind":"library","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/peers/peerjs","label":"Official source"},{"url":"https://raw.githubusercontent.com/peers/peerjs/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/peers/peerjs/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}