Chanki

Third-party notices

Chanki is free software under the GNU General Public License, version 3 or later (LICENSE, app/package.json), except for the files listed under "Not covered by the GPL" below. Its source code, the exact build you are running, is served with the app at /source.tar.gz (About › Source code).

In the app (what your browser downloads)

PartLicence
chessground (@lichess-org/chessground)GPL-3.0-or-later
cburnett chess pieces (bundled with chessground)GPL-2.0-or-later
Preact (preact)MIT
Workbox (workbox-core, workbox-precaching, workbox-routing, workbox-strategies)MIT
Vite's module-preload helper (a few lines the build tool adds to the app's script)MIT
Stockfish, the small chess engine behind Play on (the stockfish package 19.0.1, its lite single-threaded build: /assets/engine/19.0.1/stockfish-19-lite-single.js and .wasm, fetched only when Play on first runs; the Web Assembly build by Nathan Rugg and Chess.com). Source: github.com/nmrugg/stockfish.js at v19.0.1, and github.com/official-stockfish/StockfishGPL-3.0
Maia-1, the human-move model for Play on, by CSSLab: its nets maia-1800 and maia-1900 from github.com/CSSLab/maia-chess at commit 749204cf (maia_weights/), trained on lichess games; each net's policy layers, their stored values unchanged and the value head left out, laid out in one file by app/scripts/make-maia.ts (November 2026): /assets/engine/maia1/, fetched only when the model first runsGPL-3.0
Figtree, the type of the app's and the public page's text (app/public/assets/fonts/figtree-latin-1.woff2 and figtree-ext-1.woff2: its Latin and Latin Extended-A letters at weights 400–700)SIL Open Font License 1.1
Mona Sans, the type of the public page's headings and the app's titles, cut to one weight and width and so renamed "Chanki Display", as its reserved font name requires (app/public/assets/fonts/display-600-112-1.woff2)SIL Open Font License 1.1
Noto Sans Symbols 2 and Noto Sans Symbols, the app's chess figurines and symbols (✓, ▶, ①…), cut into one file and renamed "Chanki Glyphs" (app/public/assets/fonts/glyphs-1.woff2)SIL Open Font License 1.1

The MIT licence texts of these parts are under "MIT licence texts" below, the font licence under "SIL Open Font License" (the fonts are cut by app/scripts/make-fonts.py from fontsource's builds).

The scheduler is our own implementation of FSRS-6 (app/src/engine/fsrs6.ts), following the algorithm and default parameters of py-fsrs by Open Spaced Repetition (MIT); no py-fsrs code ships in the app. The memory model's fit below is the one part adapted from FSRS code.

Your own memory model (app/src/engine/memoryFit.ts, and its server twin server/ops/memory_fit.py) is adapted from the training code of fsrs-rs 6.6.2 by Open Spaced Repetition (BSD-3-Clause; its notice is under "BSD and fdlibm notices" below), and computes with our ports of fdlibm 5.3's exp and log (app/src/engine/detMath.ts, server/ops/detmath.py; Sun Microsystems' notice below).

On the server

The server image runs on Python with these packages:

PackageLicence
anyioMIT
attrsMIT
cffiMIT-0
chessGPL-3.0-or-later
clickBSD-3-Clause
cryptographyApache-2.0 OR BSD-3-Clause
google-authApache-2.0
h11MIT
httpcore2BSD-3-Clause
httptoolsMIT
httpx2BSD-3-Clause
idnaBSD-3-Clause
jsonschemaMIT
jsonschema-specificationsMIT
pillowMIT-CMU (its wheel bundles FreeType, libpng, zlib and other libraries under their own licences, whose texts ship with it in the image)
pyasn1BSD-2-Clause
pyasn1-modulesBSD-2-Clause
pycparserBSD-3-Clause
python-dotenvBSD-3-Clause
pyyamlMIT
referencingMIT
rpds-pyMIT
starletteBSD-3-Clause
truststoreMIT
typing-extensionsPSF-2.0
uvicornBSD-3-Clause
uvloopApache-2.0 OR MIT
watchfilesMIT
websocketsBSD-3-Clause

The pictures of shared positions (server/challenge/picture.py) are drawn with the art in server/challenge/art/: the cburnett chess pieces as PNGs (GPL-2.0-or-later, as in the app), rasterised from chessground's set by app/scripts/make-share-art.mjs, the Chanki wordmark, and TTF copies of the app's own cut of Figtree and Mona Sans ("Chanki Display"), made by app/scripts/make-fonts.py --server (SIL Open Font License 1.1, below).

In the analysis service

PartLicence
Stockfish 19 (the official release binary; source at github.com/official-stockfish/Stockfish)GPL-3.0
python-chess (chess)GPL-3.0-or-later
xxhash (Python bindings)BSD-2-Clause

Data and content

PartLicence
lichess.org open database (game statistics in the opening packs)CC0
lichess chess-openings (opening names and ECO codes)CC0
lichess puzzle database (a selection per band — puzzle id, position, moves, rating and theme labels — shipped in the packs from 2026-08.8; the tactics ladder's selection — exercise id, position, moves and rating, the same in every band — from 2026-08.9; from 2026-08.11 each one's source game id and ply, as the database's GameUrl names them; and a CI test sample)CC0
Syzygy endgame tablebases (generator by Ronald de Man) and Gaviota endgame tablebases (Miguel A. Ballicora). Used at build time and in the analyser. The endgames' 3-piece tables come from our own retrograde analysis (checked against Gaviota); the 4–5-piece play-out maps and the other side's answer to every slip are derived from the Syzygy tablebases (pawn endings also from Gaviota's distances to mate); the tablebase files themselves never ship.Freely distributed by their authors
lichess.org game moves (fetched once at build time through the public API to check that a puzzle's game followed the repertoire; never shipped)CC0
Wikibooks Chess Opening Theory and Wikipedia (the notes pipeline may use them only to confirm a fact the engine or the board already shows, and never copies their text; a note that draws on a page lists it, and About › Pages and revisions shows the list; 2026-08.5 to 08.11 drew on none, 2026-08.12 on 190 pages)CC BY-SA

Not covered by the GPL

The practice sound files in app/public/sounds/ (move.ogg, capture.ogg, check.ogg, tick.ogg, miss.ogg) were generated with the ElevenLabs sound-effects service by tools/sounds/generate.py from fixed text prompts (recorded with each file's SHA-256 in tools/sounds/sounds.json). They are used under the ElevenLabs terms of service and are not licensed under the GPL: the GPL grant of this project does not extend to them, and they may not be extracted and redistributed on their own. The four font files in app/public/assets/fonts/ and their three TTF copies in server/challenge/art/fonts/ stay under the SIL Open Font License 1.1, which the GPL grant of this project does not replace (the licence's text is below). Everything else in this repository, including the generator script and the synthesized "right move" chime app/public/sounds/correct.ogg (tools/sounds/correct.sh), is covered by the project's licence as above.

BSD and fdlibm notices

fsrs-rs (adapted in app/src/engine/memoryFit.ts and server/ops/memory_fit.py):

Copyright (c) 2023, Open Spaced Repetition

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  1. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  1. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

fdlibm 5.3 (e_exp.c and e_log.c, ported in app/src/engine/detMath.ts and server/ops/detmath.py):

Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.

Developed at SunPro, a Sun Microsystems, Inc. business. Permission to use, copy, modify, and distribute this software is freely granted, provided that this notice is preserved.

MIT licence texts

The parts of the app under the MIT licence carry these copyright notices:

Each is licensed under these terms (the MIT License):

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

SIL Open Font License

Each is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at https://openfontlicense.org.

SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007

PREAMBLE

The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.

The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.

DEFINITIONS

"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the copyright statement(s).

"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.

"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS

Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.

5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.

TERMINATION

This license becomes null and void if any of the above conditions are not met.

DISCLAIMER

THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.