Examples Overview

Examples

Focused patterns showing how Trystero's state, identity, roles, action, and media APIs fit together in real applications. UI helpers are left to your framework or DOM layer.

Collaborative cursors

Per-user state for live pointers that sync to late joiners and clear on disconnect.

Game lobby with ready check

Player profiles, a four-seat cap, and a requestMany poll before starting.

Trivia night with a host

A verified admin manages questions and scores while players submit answers over RPC.

Watch party

Shared playback state with drift correction, viewer presence, and emoji reactions.

Video chat

Camera and microphone streams, mute state, and screen sharing across peers.

File transfer

Receive-gate approval, bidirectional progress callbacks, and mid-transfer cancellation.

End-to-end walkthrough

The guide on building a multiplayer game without a server combines these patterns into a complete round-based drawing game. Community apps and integrations are listed in awesome-trystero.