Guides
Make sense of WebRTC
Work through the choices behind a peer-to-peer app, from connection setup to file transfer. Each guide explains the tradeoffs and points to code you can adapt.
WebRTC without a signaling server
How peers find each other, what relays do, and when you need TURN.
Build peer-to-peer file transfer in JavaScript
Send a file, show progress, and let the recipient decide whether to accept it.
When to use WebRTC vs WebSockets
Choose a transport based on where your data belongs and who owns the state.
Trystero vs PeerJS
Compare shared rooms with connections to known peer IDs.
Ready to write some code?
Try the video chat or shared cursor examples. If this is your first time using Trystero, start with a room and a message.