Technical details
chess.js validates legal moves, checks, castling, en passant, promotion, and game results. A browser-safe asm.js Stockfish build runs in a classic Web Worker, avoiding the cross-origin-isolation requirement of multithreaded WebAssembly engines.