Cloudflare real-time architecture
A Cloudflare Durable Object owns each four-player room, serializes concurrent submissions, maintains authoritative state beside its WebSockets, persists room updates, and hibernates when idle.
I built Target Anagram, a daily word puzzle where players make as many words as they can from a grid of nine letters. You can play solo or team up with up to three friends in real time, finding words together to build a shared score. The game reached 100+ daily active users and uses React/TypeScript, Cloudflare Workers and Durable Objects for live multiplayer, and D1 for accounts and leaderboards.A daily nine-letter word puzzle: play solo or find words with up to three friends to build a shared score.
A Cloudflare Durable Object owns each four-player room, serializes concurrent submissions, maintains authoritative state beside its WebSockets, persists room updates, and hibernates when idle.
Gemini proposes daily rule variants from board statistics. Deterministic code clamps every field, validates the rules against the board, re-solves the puzzle, and falls back to a table-driven configuration on any model or network failure.
The Worker validates dictionary membership, timestamps submissions, calculates scores, and stores accounts, runs, history, and leaderboard data in D1. The React client performs only immediate structural checks before sending a word.
I shipped the React frontend in one day, prototyping and iterating on designs while checking the result with Vitest and Playwright. The four-player game reached more than 100 daily active users.