Description
Trystero is an open-source JavaScript library for peer-to-peer apps that connects browsers with WebRTC, without deploying your own signalling server. Users join the same room and discover each other through existing signalling networks, then exchange data over WebRTC. A few lines of code join a room with an app ID and a room ID, create a named action for messages, and send to the room or to a specific peer. Trystero handles discovery, connection negotiation and splitting large messages into chunks. You can send strings, objects and binary data, and TypeScript types help keep messages consistent. Camera, microphone and screen streams can be shared with peers in the room. The site says WebRTC encrypts data and media between peers, and that you can add a shared password or your own handshake to control who joins. You choose the signalling network, starting with public Nostr relays, and you can switch to MQTT, BitTorrent, Supabase, Firebase, IPFS or a relay you host, while the room API stays the same. The library is on npm, and the site has docs, examples and guides.…
Highlights
- WebRTC without a signalling server to run
- Named actions for messages and files
- Choice of signalling networks
- Camera, microphone and screen streams
Ratings & Reviews
No ratings yet
Be the first to rate Trystero.
People also visit
Trystero FAQ
What is Trystero?
An open-source JavaScript library for serverless WebRTC between browsers.
Do I need a signalling server?
No. The site says you can build without deploying your own signalling server, and you can choose public Nostr relays or other networks.
Is data encrypted?
The site says WebRTC encrypts data and media between peers.
Can I send files and video?
Yes. Messages, files, and camera, microphone and screen streams are supported.
How do I install it?
Run npm i trystero.
Which signalling options are there?
Public Nostr relays to start, plus MQTT, BitTorrent, Supabase, Firebase, IPFS or a relay you host.
What are the best Trystero alternatives?
Popular alternatives to Trystero include Chitchatter, Roomler and WT Tracker. See all Trystero alternatives
