// the find
colyseus/colyseus-examples
Examples for learning how Colyseus works
A collection of server-side Colyseus room implementations paired with plain HTML/JS client pages covering chat, state sync, auth, reconnection, and lobby patterns. Aimed at developers just starting with Colyseus who want runnable reference code rather than reading docs alone.
- Examples are numbered and progressively cover real pain points: chat, state handling, auth, reconnection, and lobby — these are exactly the things new Colyseus users get stuck on
- Each example is self-contained (one room file + one HTML file), making it easy to isolate and study a single concept without wading through unrelated code
- Includes a live hosted demo, so you can poke at behavior before even cloning
- Only 5-7 server room files exist despite 7 numbered examples — rooms 05 and 06 (lobby and relay) are missing server implementations, relying on built-in Colyseus rooms with no explanation of what's happening under the hood
- The client side is raw HTML with inline scripts, no framework examples at all — most real projects use React, Unity, or Phaser and there's zero guidance on integration patterns for any of them
- No tests whatsoever, so it's unclear if any given example still works as Colyseus releases new versions; the repo shows signs of lagging behind the main library
- README is essentially empty — no explanation of what each example demonstrates, no notes on version compatibility, no prerequisites beyond npm install