Realtime Multiplayer Chess
Authoritative Socket.IO multiplayer chess with WebRTC P2P video calling and 60s rejoin.
- >Server holds authoritative chess.js game state — invalid moves are rejected centrally.
- >Custom 8x8 SVG board with zero external image assets, plus spectator mode & 60s reconnect window.
- >Peer-to-peer WebRTC video calling with TURN relay fallback and throttled in-room chat.
// Briefing
Built solo purely for the fun of engineering an authoritative real-time game loop with integrated peer-to-peer video and zero external board graphics.
// Architecture
Node + Express + Socket.IO backend validates every move via chess.js and broadcasts FEN/SAN updates. The Vite + React client mirrors legal drags locally and negotiates WebRTC video streams with optional TURN credentials.
// Build Log
Implemented room codes, time controls with increment, takeback/draw limits, end-to-end TypeScript smoke test (smoke-test.ts), and two-service render.yaml deployment.
// Challenges
Coordinating reconnect grace timers (60s rejoin window) alongside WebRTC offer/answer signaling without leaking stale room state.
// Outcome
Verified server flow with automated smoke-test.ts covering checkmate, takebacks, rematch, and video signaling. TODO(user): Share Render live URL when deployed.
// Next Steps
Deploy chess-server and chess-client blueprint to Render for instant two-player links.
Core Stack
Domains
Tags
Related Projects
Sanghathi Platform
Full-stack student management backend and React frontend platform.
VTU Exam Prep
Exam preparation workspace for VTU BCS401 (ADA) and BAD402 (AI).
DisasterNet
Offline-first emergency communication PWA for disaster infrastructure blackouts.
