What Colyseus is
Colyseus is an open-source Node.js framework: you write room logic in TypeScript on the server, and state is synchronized to clients with schema-based delta encoding. You self-host it, or pay for Colyseus Cloud.
Side by side
| Multiplayer API | Colyseus | |
|---|---|---|
| Hosting | fully hosted, nothing to run | self-host (open source) or paid cloud |
| Price model | flat $19.99/month, unlimited games | your servers, or cloud plans |
| Transport | WebRTC peer-to-peer + automatic relay | WebSocket to your server |
| Validated state | declarative JSON rules | your server code is the authority |
| Accounts & leaderboards | built in | bring your own |
| AI-agent setup | unauthenticated game creation + llms-full.txt | you write server code |
Checked September 2026 against public documentation. Tell us if something changed: contact@lannetech.ae.
Choose Colyseus if…
- Your game needs a fully server-simulated world (physics on the server, hidden information).
- You want to own and modify the server source.
Choose Multiplayer API if…
- You do not want to write or operate server code at all.
- Declarative rules (who writes what, at what rate, within which bounds) are enough authority for your game — true for most casual, turn-based, co-op and .io games.
- You want positions to travel peer-to-peer instead of through a server you pay for.
Moving from Colyseus: what maps to what
- Room classes on the server → presets plus declarative rules. Logic that validated moves (“is it this player's turn?”) becomes
casandimmutablerules. - Schema state → the JSON shared state.
room.state.watch('players.*.hp', …)replaces schema change callbacks. - onMessage / broadcast →
room.emitEvent(topic, data)for ordered, guaranteed messages; high-frequency input moves toroom.send(). - Reconnection tokens → nothing to do: rejoining is reconnecting, state survives, late joiners are caught up.
- Your deployment → removed. The game becomes a static site.
The concepts are covered in full in the documentation and in llms-full.txt, which a coding agent can use to do the port for you.
Try it in one call
curl -X POST https://multiplayerapi.com/v1/games \
-H 'Content-Type: application/json' \
-d '{"name":"My Game","preset":"realtime_arena"}'Returns a public key, a secret key and a sandbox with 2 live rooms for 24 hours. No account, no card.
Is Multiplayer API authoritative like Colyseus?
Partially, by design. Shared state is server-arbitrated against rules you declare, and match results can require peer attestation. It does not run your simulation; if you need that, Colyseus is the better fit.
Can I migrate a Colyseus room to Multiplayer API?
Usually: room state becomes the JSON shared state, server-side validation becomes declarative rules, and broadcast messages become events or the direct channel.
Make your game online today
Free sandbox keys in one call, no account and no card. $19.99/month when you ship, for every game you make.
Free sandbox · $19.99/mo to go live · cancel anytime