Projects/Flagship 02

🧩Puzzle Arena

Real-Time Multiplayer Puzzles & Board Games with AI Bots

Launch Puzzle Arena
7 GamesReact 19 + Fastify 5Socket.io WebSocketsAppend-Only Event Log

🎮The Experience

Puzzle Arena is a real-time multiplayer board game and competitive puzzle platform. An organizer registers, creates a private room, and players join instantly via a 6-character room code on mobile or desktop — no mandatory app install required.

It features seven complete games: four concurrent puzzles (Sudoku, Killer Sudoku, Nonogram, Word Search) and three turn-based board games (Property Tycoon, Manor Mystery, Scrabble). Every game is playable solo against intelligent automated bots.

🏗️Engineering & Architecture

Monorepo Package Separation

Separated into strict modules: packages/shared (Zod wire schemas, zero I/O), packages/puzzles (in-house generators with proven-unique solutions), and packages/games (turn-based reducers).

Append-Only Event Sourcing

Engine state replays bit-for-bit from an append-only room_events log. Reducers never read the wall clock; all randomness comes from a seeded PRNG carried in state, allowing instant crash recovery.

LLM AI Provider Integration

Dynamic AI integration configurable at runtime from /admin/ai. Supports any OpenAI-compatible endpoint with AES-256-GCM encrypted keys and graceful fallback to bundled offline content.

React 19 & Fastify 5 Speed

Sub-50ms WebSocket latency, high-concurrency room dispatch, and instant UI state synchronization backed by Zustand and Tailwind CSS 4.

Full Stack Specs:

Frontend:Vite + React 19 + Zustand
Backend:Fastify 5 + Socket.io
Database & Auth:Drizzle ORM + Better Auth + Postgres
Hosting:Zeabur Singapore Server