chess.js and chessboard.js code example Example: chess.js # NPM npm install chess.js # Yarn yarn add chess.js