Open-source packages

TypeScript libraries for multiplayer rooms, synchronized simulations, and grid-based strategy games. Explore the code and try the demos in your browser.

@pocketrts/net

Host a room, join by code, and exchange messages over WebRTC.

On the demo page, create a room as Player A and join with its code as Player B. Chat, then press Leave as Player A and watch Player B take over as host.

@pocketrts/lockstep

Advance the same simulation on every peer and compare checksums to detect divergence.

Three simulated players run one match in a single page, with no server. Freeze, cut off, or desync a player and watch the host react.