r/ComputerChess • u/prakasht96 • 1h ago
Running Stockfish fully on-device in a mobile app (WASM in a WebView): what worked and what didn't
I'm building a chess training app (MentoChess, disclosure: it's my company's product) and wanted all game analysis to run on the user's phone instead of a server, so it's free to run and works offline.
setup: single-threaded Stockfish lite (JS + WASM) running in a hidden WebView on Android, and directly in the page on the web.
things I ran into:
- speed on older phones. I had to cap depth/time per move and limit how many games get analysed at once
- [one more real detail: e.g. how you detect "mistakes", the eval-drop thresholds, or battery/heat]
curious what others do here: is single-thread lite good enough for blunder detection at club level, or is it worth shipping the multi-threaded build where supported?

