Learn // guides
Guides
How to make a browser game multiplayer with GameRelay, whatever it's built with, how to test it with AI bots, and how GameRelay compares with the other ways to do it. For the full API, see the docs.
Build and test
- Add multiplayer to a Phaser gameMake a Phaser 3 game multiplayer without writing a server: connect, sync each player with entities, invite friends with a link, and avoid the usual physics and hidden-tab pitfalls.
- Add multiplayer to a Three.js gameMake a Three.js game or 3D scene multiplayer with no server code: sync positions and rotations, draw other players smoothly, and share an invite link.
- Add multiplayer to a Kaplay gameMake a Kaplay (formerly Kaboom.js) game multiplayer without a server: connect, sync players as entities, and let friends join from a link.
- Make a multiplayer game with Claude or ChatGPTHave Claude, ChatGPT, Cursor or any coding agent build a multiplayer browser game that works on the first try: the prompt, the MCP server, testing and putting it online.
- Test your multiplayer game with AI botsLet Claude, Cursor or any coding agent put test players into your live multiplayer game: it writes how they play, reads what they log and fixes them while the game runs. Setup, your game’s side, and a real run from racecar.
- Multiplayer HTML5 games on itch.ioPut a multiplayer HTML5 game on itch.io: upload it, lock your key to itch.io, and get players into the same room with codes and quick match.
- Player accounts in a multiplayer browser gameMake a player the same player on every device: sign them in with Firebase, Supabase, Clerk or Auth0 with no server of your own, or mint tokens on your backend.
- Multiplayer with Firebase sign-inUse your Firebase Authentication accounts in a multiplayer browser game: one setting, one line in connect, no Cloud Function, and it works on itch.io.
- Moderation APIKeep slurs and spam off your leaderboards and lobbies without a server: name moderation on every plan, check names with relay.moderate(), add your own banned words, and keep names from injecting HTML.
Compare
- GameRelay vs Playroom KitAn honest comparison of GameRelay and Playroom Kit for multiplayer web games: how each works, pricing, features, and when Playroom is the better choice.
- GameRelay vs Photon for web gamesAn honest comparison of GameRelay and Photon (Realtime, Fusion, Quantum) for browser games: JavaScript support, pricing, scale, and when Photon is the better choice.
- GameRelay vs ColyseusAn honest comparison of GameRelay and Colyseus: no server code versus your own authoritative server, hosting, pricing, and when Colyseus is the better choice.
- GameRelay vs PartyKit (Cloudflare)An honest comparison of GameRelay and PartyKit, now PartyServer on Cloudflare Durable Objects: what you build yourself, pricing, and when PartyKit is the better choice.
Patterns from real games (chess, racecar): the examples. What's new: the changelog (RSS).