Guides
Architectural deep dives and practical walkthroughs covering how peer-to-peer web applications handle discovery, identity, encryption, state synchronization, and authority.
Architecture & concepts
Build a multiplayer browser game without a server
End-to-end walkthrough of a four-player drawing game with host authority, shared state, RPC, and bans.
WebRTC without a signaling server
How public-relay signaling works, what relays observe, and when to configure TURN.
Self-certifying identities
Deriving persistent user IDs from ECDSA public keys and binding them to DTLS handshakes.
End-to-end encryption in peer-to-peer apps
DTLS transport encryption, AES-GCM signaling, password derivation, and threat boundaries.
State sync without a server
Signed state records, Hybrid Logical Clocks, last-writer-wins convergence, and CRDTs.
Admins, roles, and bans without a backend
Self-certifying room ownership, signed role certificates, and cooperative ban enforcement.
How gossip networks let P2P rooms scale
Bounded-degree multi-ring overlays for messages and state, plus direct promotion for media.
Comparisons & recipes
Build peer-to-peer file transfer in JavaScript
Receive gates, progress tracking, cancellation, error kinds, and memory budgets.
WebRTC vs WebSockets
Choosing a transport based on data paths, authority, media support, and offline persistence.
Trystero vs PeerJS
Comparing room-based discovery, verified identities, and synced state against direct peer ID calls.
Examples and API docs
Browse the game lobby and watch party examples for smaller focused snippets, or start with Getting started.