How varunparmar0206/chesssense-chrome-extension works
ChessSense is a Chrome extension for live chess-position analysis on Chess.com. Its documented workflow detects the active board, derives FEN, submits positions to a local Stockfish worker, parses evaluations and candidate lines, then updates an on-board overlay. The excerpts show these responsibilities within content.js and its worker setup; the README documents additional engine and display capabilities. Since the source is one principal file and excerpts omit implementation details, relationships are limited to those evidenced by the excerpt or README.
Main entry points: content.js Stockfish worker · stockfish.js Stockfish engine · stockfish.wasm Engine runtime
Components 10
Board Capture
- Board detection
content.js - FEN generation
content.js - Turn and game state
content.js
Engine Analysis
- Stockfish worker
content.js - Stockfish engine
stockfish.js - Engine runtime
stockfish.wasm - Analysis parsing
content.js
On-Board Display
- Analysis overlay
content.js - Move arrows
content.js
Other components
- Chess.com player
Connections 10
- Chess.com player → Board detection: plays on
README.md - Board detection → FEN generation: provides position
README.md - Turn and game state → FEN generation: supplies game state
content.js - FEN generation → Stockfish worker: submits position
README.md - Stockfish worker → Stockfish engine: loads
content.js - Stockfish engine → Engine runtime: runs with
README.md - Stockfish engine → Stockfish worker: returns analysis
- Stockfish worker → Analysis parsing: dispatches messages
content.js - Analysis parsing → Analysis overlay: updates results
README.md - Analysis overlay → Move arrows: shows suggestions
content.js