How revengesuzuki/sente-chess-studio works
Sente is a browser-based, local-first chess analysis and training studio. A player explores or imports a game in the studio; chess rules and the opening book provide position context, while the engine and review analyzer evaluate moves. The narrator turns position changes and engine lines into commentary, and the interface presents review insights and trainer drills. Optional online evaluation, opening data, tablebases, and game imports complement the local workflow; saved games and preferences persist in the browser. Source excerpts establish key engine and analysis calls, but do not expose all UI wiring.
Main entry points: app.js Studio Controller · analyzer.js Game Review · engine-manager.js Engine Manager · api-client.js Optional API Client
Components 15
Chess Studio
- Studio Controller
src/ui/app.js - Board Rendering
src/ui/pieces.js
Chess Domain
- Chess Rules
src/core/chess-core.js - Opening Book
src/core/openings-db.js
Analysis and Engines
- Game Review
src/analysis/analyzer.js - Move Narrator
src/analysis/move-narrator.js - Engine Manager
src/engine/engine-manager.js - Stockfish Engine
src/engine/stockfish-19-lite-single.js - PeSTO Fallback
src/engine/engine-worker.js
Persistence and Integrations
- Optional API Client
src/services/api-client.js - Local Game Storage
src/services/storage.js - Sound Playback
src/services/sound.js - Bundled Sounds
assets/sounds
Other components
- Player
- Lichess and Chess.com
Connections 16
- Player → Studio Controller: uses
README.md - Studio Controller → Board Rendering: renders
README.md - Studio Controller → Chess Rules: explores positions
README.md - Studio Controller → Opening Book: recognizes openings
README.md - Studio Controller → Game Review: starts review
README.md - Game Review → Engine Manager: requests evaluations
src/analysis/analyzer.js - Game Review → Optional API Client: fetches tablebase
src/analysis/analyzer.js - Game Review → Optional API Client: fetches cloud eval
src/analysis/analyzer.js - Studio Controller → Move Narrator: shows commentary
README.md - Move Narrator → Chess Rules: inspects positions
src/analysis/move-narrator.js - Engine Manager → Stockfish Engine: starts worker
src/engine/engine-manager.js - Engine Manager → PeSTO Fallback: falls back
src/engine/engine-manager.js - Optional API Client → Lichess and Chess.com: queries
src/services/api-client.js - Studio Controller → Local Game Storage: saves games
README.md - Studio Controller → Sound Playback: plays feedback
README.md - Sound Playback → Bundled Sounds: loads audio
src/services/sound.js