TL;DR Play Stockfish or Maia at the Elo you choose, peek at the best moves when you want, and replay your games with an evaluation graph that points at your mistakes. Runs in the browser, installs on a phone home screen, a static site that stores nothing on any server.
Xake means "chess" in Basque.
♟️ Play now: essembeh.github.io/xake
The official instance, always the latest version. No sign-up, no account: open the page and play, or add it to your phone home screen to play offline. You can also host your own.
- Nothing leaves your device: Stockfish and Maia run in your browser, your games stay in its
localStorage(export a PGN to keep one), shared links carry the game after the#, never sent to the server. - No account, no cookies, no analytics, no third-party request: a static site, every file served by the instance itself. Its host may keep standard access logs (GitHub for the official instance).
| Game analysis | Game over |
|---|---|
![]() |
![]() |
| Mobile, dark theme | Settings | In French |
|---|---|---|
![]() |
![]() |
![]() |
- Opponent at any level, chosen for each new game: Stockfish from 400 to 3190 Elo, or Maia from 1100 to 1900, a network trained on human games that plays like a player of that level.
- Best moves on demand (
B, or hold a right click / long press on the board): up to 5 Stockfish lines, numbered and colour-coded arrows on the board, the same numbers in the list; tap a line to play it. - Evaluation bar next to the board (
A), with inaccuracies?!, mistakes?and blunders??marked in the move list; the captured pieces and the material balance next to each player. - Game analysis (
R): an evaluation graph of the whole game, the judged moves highlighted, and for each move, yours or Stockfish's, the best moves that could have been played instead. Replay this move takes you back just before one of your moves; a tap on an alternative, in the list or on its arrow, plays it instead, yours or Stockfish's; Back to the game returns to the last move. - Variations: go back anywhere and play another move, nothing is lost; the move list shows the
line you browse, each move lists its alternatives (
e6 or Bf5), a tap switches to one. - Bookmarks (
M) to jump back to a position and try another idea. - Take back (
U) with redo, swap sides with Stockfish (C) or play both sides (T) to force the opponent move and study a precise position. - Saved games in the browser, PGN export / import, and shareable links: the whole game, variations included, fits in the URL.
- Keyboard shortcuts for everything (
?lists them). - Themes: light / dark / auto, 6 boards, 4 piece sets, all under free licences; English and French, following the browser language.
- Sounds for moves, captures, checks and the end of the game, can be muted in the settings.
- Rage quit 😤 (can be turned off in the settings): shows up when the evaluation turns against you, to start over and forget the game. Calm, then orange, then red and shaking as your position gets worse.
- Mobile first: touch friendly layout, installable on the iOS / Android home screen (PWA).
- A short welcome on the first visit, then a 4-step tour of the essentials, skippable at any step; an install button explains, step by step, how to add Xake to an iPhone or Android home screen.
- Stockfish runs on your device (WebAssembly): the installed app plays and analyses offline, about 1 s per analysis on a recent phone.
Xake is a static site, no backend: everything runs in the player's browser. Stockfish is
stockfish.js, the lite WebAssembly build (1.8 MB), in Web
Workers; the games live in the browser (localStorage) and the installed app plays offline. The
front-end is plain JavaScript modules built by Vite, with
chessground (the Lichess board) and
chess.js.
- The opponent is picked at each new game. Stockfish plays with
UCI_LimitStrength/UCI_Elo(1320+), a node-starved engine below; the Elo is indicative, Stockfish calibrates it on long games. Maia is a network trained on Lichess games, one per 100 points from 1100 to 1900, run by ONNX Runtime Web; its move is drawn among the human moves at least 10% likely. The network (3.5 MB, plus 15 MB for the runtime once) is downloaded when the game starts. - Best moves and the evaluation bar search a fixed 1 million nodes (about 1 s on a recent phone), so the same answer on every browser, capped at 2 s on slow devices; the evaluation graph uses 300,000 nodes per position.
Design notes live in docs/specs.
npm run build writes the whole site to dist/ (about 47 MB with the Maia networks), with
relative URLs: copy it to any static host, at the root or under a sub-path. Serve it over HTTPS, the
service worker needs it. The settings below then keep their defaults (edit dist/config.js to
change them).
$ docker run --rm -p 8000:8000 ghcr.io/essembeh/xake:latestThen open http://localhost:8000/. The image is nginx (non-root) serving the built site; images are
tagged latest and by version (0.3.0), main follows the development branch.
The Docker image reads these variables at start (an invalid value stops the container):
| Variable | Default | Description |
|---|---|---|
XAKE_DEFAULT_ELO |
1500 |
Stockfish level (400 to 3190) of a first visit, then each browser remembers the last level chosen |
XAKE_DEFAULT_LANGUAGE |
en |
UI language (en, fr) for browsers in another language, until a user picks one in the settings |
XAKE_PLAY_MOVETIME_MS |
300 |
Thinking time of the opponent, in the player's browser |
Node.js 24, then:
$ git clone https://github.com/essembeh/xake
$ cd xake
$ npm ci
$ npm run dev # http://localhost:8000 with hot reload, also reachable from your LAN| Script | What |
|---|---|
npm run dev |
dev server on port 8000 (fetches the Maia networks first) |
npm run build / npm run preview |
build the site into dist/ / serve it |
npm run lint / npm run format |
Prettier, check / fix (CI: lint) |
npm test |
smoke test of the engines in Chromium and WebKit, Playwright (CI: e2e) |
npm run screenshots |
regenerate the README screenshots from a running dev server |
npm run release -- <patch|minor|major> |
release: bump, commit 🔖 New release: X.Y.Z and tag, then push |
On NixOS, Playwright needs the browsers of nixpkgs: scripts/nix-playwright.sh npm test.
Every dependency and bundled asset is under a free licence compatible with the GPLv3.
| Component | Used for | Licence |
|---|---|---|
| Stockfish via stockfish.js | chess engine in WebAssembly, opponent and analysis (npm) | GPL-3.0 |
| Maia networks, ONNX conversion | human-like opponent (fetched at build) | GPL-3.0 |
| ONNX Runtime Web | runs Maia in WebAssembly (npm) | MIT |
| chessground | board (npm) | GPL-3.0 |
| chess.js | rules, SAN, PGN in the browser (npm) | BSD-2-Clause |
| Lichess piece sets | cburnett, merida / mpchess / pixel (committed) |
GPLv2+ / GPLv3+ / AGPLv3+ |
| nginx | static server of the Docker image | BSD-2-Clause |
The libraries come from npm, pinned by package-lock.json. The Maia networks (31 MB) are not on
npm and not committed: scripts/fetch-maia.sh fetches them with pinned
SHA-256 sums before npm run dev and npm run build. The piece sets are committed, with the lila
COPYING.md that lists their authors and licences.
Several Lichess piece sets are not free and are left out. The boards are plain CSS colours and the
sounds are synthesized in the browser (WebAudio), no audio file is bundled.
Xake is released under the GPL-3.0-or-later, like chessground and Stockfish. The
AGPLv3+ pixel piece set keeps its own licence, as allowed by section 13 of the GPLv3.





