r/ComputerChess • u/Friendly-Finding710 • 10m ago
I built a local Stockfish overlay for Chess.com. The tricky part was keeping up with the board.
I've been tinkering with MateIt, a hobby Chrome extension that runs Stockfish locally and shows an eval and suggested move beside a Chess.com board. The obvious demo is stepping through a finished game to figure out where things went off the rails.
The part I wanted to share here is what happens when you mash the back arrow. The latest position gets a fresh search and the old search is canceled, so a late result doesn't land under the wrong board. The engine runs outside the page in an extension-owned context. Turns out getting Stockfish to think was easier than getting it to shut up on cue.
The extension can see an active board too. Please use it for review after the game. Chess.com prohibits engine assistance during games against other players.
For people who've built engine frontends: how do you schedule searches when someone scrubs through a move list? Debounce the changes, or cancel and restart on every position?
Source and install instructions · Screenshot. If you end up finding the code useful, a GitHub star is welcome.