Cloudflare Developer Platform Demo

Online Multiplayer demo on Cloudflare

Serverless online multiplayer on Cloudflare Workers with Containers.

Open Rooms
    No open rooms yet — create one to start.

    What this demo showcases

    • Cloudflare Containers — every room runs in its own lightweight container, holding the authoritative game state in memory and broadcasting to all connected players.
    • No servers to manage — no VMs and no matchmaking fleet. Rooms are created on demand and scale back to zero when empty.
    • Runs on Cloudflare's global network — code executes close to the players instead of in one fixed region.
    • Server-authoritative combat — hit detection, damage, kills and respawns are all resolved server-side, never trusted to the client.
    • WebSockets at the edge — everyone in a room connects to the same container instance, which pushes deltas and full-state snapshots to them.
    • Live tuning via Workers KV — per-class combat values are edited from an admin page and applied to new rooms with no redeploy.

    How to play

    • Desktop — WASD or arrow keys to move, click to attack.
    • Phone — scan the QR code from a desktop screen, or use the in-game Share button to pass the link on. Then use the on-screen stick to move and tap to attack.
    • Pick a class — Knight (fast, short-range sword), Scout (long-range bow), Sorcerer (slow, shoots through walls).
    • Don't stand idle — stop moving and attacking and your character falls asleep behind a green shield. You're invulnerable there, but a countdown appears above you — sleep through it and you're removed from the game.
    • Waking up — moving wakes you. The shield lingers for a moment, so you stay invulnerable, but you can't attack until it fades.