Projects

Scoreboard

live scoring · club hall

Every table’s score on one big screen, live, scored from any phone.

A live scoreboard for sports clubs running several tables at once. Four screens in the browser — the big screen, the umpire console, the organiser console and the spectator view — share one Durable Object per event on Cloudflare’s free tier, with nothing to install.

  • TypeScript
  • React
  • Cloudflare Workers
  • Durable Objects
  • WebSocket
  • Vitest
Henry010Lopez18Roche29Vidal17Roche9Vidal7+1+1Drawing: the hall’s big screen showing two live tables and the finished ones, and an umpire’s phone scoring table 3 with a button per player and one to undoLIVETABLE 1TABLE 3TABLE 23–1 · finishedTABLE 43–0 · finishedTABLE 5next · 14:30TABLE 3UMPIREUNDOSAME POINTon every screen at onceEVERY TABLE, ONE SCREENlive matches take the spaceONE TAP A POINTone more to undo it
Coverage
36%
lines run by the scoring rules, the Worker and the screens, read 2026-10-04
House packages
7 of 11
installed from npm

At a glance

  • Each umpire scores their own match from whatever device is at hand, and every match in progress shows up on one big screen across the hall.
  • One Durable Object per event keeps the ordered scoring events in its own SQLite storage and fans them out over WebSocket.
  • Points scored while offline are queued and resent on reconnect, and a mistake is undone in one tap.
  • Scores, the server and timings are all derived from the events, so the organiser can fix a wrong score or move a match to another table live.
  • Table tennis is the first ruleset; the scoring rules are pluggable so other sports can follow.

How it works

one log per event, every screen replays it

+1 Roche+1 Vidal+1 Vidal+1 RocheDiagram: one Durable Object per event keeps the ordered log of points; the umpire’s phone and the organiser write to it, points queued offline are resent, an undo is one more event in the log, and the big screen and the spectators’ phones each get every event over a WebSocket and replay the scores from the logUmpireany phonequeued offline, resentOrganiserfixes it liveDurable Objectone per eventundoBig screenon the hall’s TVSpectatorson their phonesa WebSocket eachEvery screen replays the scores from the log.

House packages

7 of the 11 house packages, from npm, down to the compiler and linter settings.

Your team, perhaps?

I am looking for my next job. Write to me, or take the CV: a designed one, and a plain one for applicant tracking systems.