PeerJS – Simple peer-to-peer with WebRTC
Fun fact about PeerJS, you'll need a server in order to use it (look into STUN/TURN/ICE for more info). The maintainer seems to be hosting one default instance that goes down from time to time. <a href="https://github.com/peers/peerjs/issues/671" rel="nofollow">https://github.com/peers/peerjs/issues/671</a> <a href="https://github.com/peers/peerjs/issues/693" rel="nofollow">https://github.com/peers/peerjs/issues/693</a><p>If you're looking to do "pure" P2P in the browser, we're not there yet as we cannot accept incoming connections without something in between right now.