Product · Full-Stack
Caissa Labs
Chess Analytics Platform
The problem
Chess players had no unified, data-driven tool for identifying patterns in their own games. Existing platforms showed raw stats or required manual review — nothing surfaced actionable, personalised insights automatically.
| Games Processed | 500K+ |
|---|---|
| Pattern Accuracy | ~90% |
| Single Game Analysis | <2s |
| Cost Reduction via Batching | 10× |
The engineering story
Approach
- Designed a batch API architecture to ingest PGN game files from Lichess and Chess.com — one batch call per 50 games instead of 50 sequential requests
- Built a pattern detection engine that hashes positions across games and clusters recurring weaknesses by opening, phase, and piece type
- Created a React board component with real-time Stockfish evaluation, annotation overlays, and side-by-side game comparison
- Implemented a credits system for monetisation — lower commitment than subscriptions, higher conversion for new users
Decisions worth explaining
- Why batch APIs
- Stockfish analysis is expensive. Sequential per-move API calls cost 10× more and time out on large game sets. Batching reduced both cost and latency — 50 games in 4s vs 3s per game sequentially.
- State management
- Zustand for chess board state (move history, evaluation lines), React Query for server state (games, analysis results). UI state kept local — no global store for UI concerns.
- Performance
- Stockfish runs in a Web Worker so heavy computation never blocks the main thread. Analysis streams incrementally via SSE so the UI feels responsive even on slow connections.
Trade-offs
- Chose batch processing over real-time — users accepted a 10s delay for significantly lower pricing, which was the right call for the target audience
- Credits over subscription: lower friction to start, works better for irregular users like competitive players in seasons
Technology: React · Next.js · Node.js · PostgreSQL · chess.js · Stockfish · TypeScript · Vercel
Visit Caissa Labs (opens in a new tab)


