The engine runs in your browser
Chessvion ships Stockfish 19 (the "lite", single-threaded build) compiled to WebAssembly, in engines/stockfish-19-lite-single.wasm. The app talks to it over UCI, the plain-text protocol desktop chess programs use. Before each search it sends the skill level and then a go command limited by depth, by time, or both:
setoption name Skill Level value 7
position fen <current position> moves <moves so far>
go depth 5 movetime 320
Because the engine runs on your device, playing the computer needs no server. A service worker caches the files, so a game against the computer keeps working if your connection drops after the page has loaded.
How the ten levels are built
Each level sets three numbers: Stockfish's Skill Level, a maximum search depth and a time cap per move. At low skill levels Stockfish deliberately chooses weaker moves from the candidates it finds, and the shallow depth stops it seeing far ahead. That combination is why level 1 hangs pieces and level 3 sees a one-move threat but not a two-move combination. Level 10 removes the depth limit and allows 3.5 seconds a move.
The wrapper also clamps every request: no search deeper than 30 half-moves or longer than 60 seconds, and depth 12 when a feature asks for a move without saying how hard to look.
Analysis, review and endgames reuse the engine
Analysis searches the position on screen to depth 18, for up to 6 seconds, and can show several candidate lines at once. Game review walks through every position of a finished game at depth 12 with 1.5 seconds each and saves the evaluations, so reopening a review is instant. Endgame practice plays the defending side at depth 14 with 0.6 seconds a move.
What else is in the app
There are 7 lessons, from "The board and the pieces" to "Material and piece values", 8 endgame drills including the Lucena and Philidor rook endings, 117 puzzles, Puzzle Rush, an opening explorer that recognises 79 named openings, local tournaments between engine players, achievements, board themes and statistics. Rules (legal moves, check, mate and draws) are handled by the open-source chess.js library. Saved games, settings and the review cache stay in your browser's storage.
Licence
Stockfish is free software under the GNU General Public License v3. The licence text ships with the game as engines/COPYING-stockfish-GPL3.txt, and the source code is available from the Stockfish project.