Kokopu is a JavaScript library for chess applications. It implements the chess game rules, and provides tools to read/write the standard chess file formats (PGN, FEN, etc.).
https://www.npmjs.com/package/kokopu
https://kokopu.yo35.org/dist/kokopu.zip
- Chess move generation.
- Check, checkmate and stalemate detection.
- Move legality check.
- Algrebraic notation parsing and generation.
- FEN notation parsing and generation.
- PGN file parsing (including advanced PGN features such as commentaries, sub-variations, NAGs, non-standard starting position...).
- Support Chess960 (also known as Fischer Random Chess).
- RPB Chessboard, a chess plugin for WordPress.