Release: Lotta 1.0 — In-Browser Chess Pairing System

A zero-server, offline-first tournament management tool for chess arbiters and organizers.

KenDev has released version 1.0 of Lotta, an open-source web application designed to run Swiss-system and round-robin chess tournaments entirely inside the web browser. The tool requires no server infrastructure, no user accounts, and operates reliably without active internet connectivity.

The problem with legacy tournament software#

Running a formal chess competition requires strict adherence to international pairing rules, rating-group sorting, color-alternation balance, and tiebreak calculations (such as Buchholz and Sonneborn-Berger). For years, Swedish clubs and arbiters relied on legacy desktop programs originally written for older Java or Windows environments.

Many of these programs were discontinued years ago, are difficult to install on modern machines, and risk total failure if the single operator laptop encounters an issue during a round. When pairing several hundred players under strict round schedules, software failure is not an option.

Architectural approach#

Rather than building another cloud-hosted SaaS requiring constant internet connectivity and recurring subscriptions, Lotta was designed as a local-first, zero-server Progressive Web Application (PWA).

Before writing new application code, over 200 answer keys from historical official tournaments were recorded. These golden-master tests served as the specification and safety net to verify that every pairing and tiebreak calculation matches official chess federation standards.

Key architectural decisions:

  • 100% Client-Side Engine: Built with React 19 and SQLite compiled to WebAssembly via sql.js. The complete tournament database runs in-memory inside the browser tab.
  • Durable Local Persistence: Tournaments persist locally in the browser via IndexedDB, with instantaneous one-click exports and imports of .sqlite database files.
  • P2P Referee Sync: Table arbiters can submit round results directly from their mobile phones via WebRTC peer-to-peer connections negotiated over temporary room codes, without needing a central backend database.
  • Offline Reliability: Fully installable as a PWA, ensuring that even a complete venue Wi-Fi failure does not disrupt the event.

Production validation#

Lotta’s first major field test was a regional final of the Swedish Schack4an tournament, managing pairings and results for approximately 500 participating students across multiple rounds. The entire tournament completed on schedule with zero server dependencies.

Lotta is free, open source, and available for tournament directors at lotta.bernting.se. Source code is published on GitHub.