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. https://github.com/peers/peerjs/issues/671 https://github.com/peers/peerjs/issues/693If 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.