ChessMatches
Live scores, clocks and engine evaluations for top chess tournaments, served from Cloudflare.
2026. Built with React, TypeScript, Cloudflare Workers, Durable Objects, Workers AI, Vite.
Following a live chess tournament usually means switching between broadcast pages, engine evaluations and standings on different sites. Lichess publishes all of it as open data, but its API only takes one request at a time.
ChessMatches puts that data on one page: live match scores, engine bars, clocks, leaderboards and player profiles. It runs in the browser and needs no account or API key.
- In production, every Lichess read goes through a Cloudflare Worker that caches the response for all viewers, so browsers never call Lichess themselves. A single Durable Object queues those reads, which keeps the whole site inside Lichess’s one-request limit.
- Opening a round renders its outline straight away. Boards, match scores, evaluations and clocks then fill in from one snapshot, and finished rounds load from a cache on the device.
- Relay evaluations show as soon as they arrive. Missing ones come from Lichess cloud eval, using positions worked out locally with chess.js, and a simple rule decides which to trust when the two disagree.
- Short AI commentary comes from Workers AI, capped to stay inside the free daily allowance.
- The same Worker serves the site, deployed from GitHub Actions.