PeerJS docs PeerJS simplifies peer-to-peer data, video, and audio calls. This guide will show you the basic concepts of the PeerJS API. Setup 1. Include the Javascript client Add the PeerJS client library to your webpage. <script src="https://unpkg.com/peerjs@1.5.2/dist/peerjs.min.js"></script> If you prefer, you can host it yourself: peerjs.min.js, or fork us on Github. 2. Create the Peer object