Skip to content
r.

chess.js

jhlywa/chess.js · Public GitHub repository

A TypeScript chess library for chess move generation/validation, piece placement/movement, and check/checkmate/draw detection

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

chess.js live demo screenshot
Captured from the live demo · 2026-10-31

About this project

Author-written excerpt from the project README.

chess.js is a TypeScript chess library used for chess move generation/validation, piece placement/movement, and check/checkmate/stalemate detection - basically everything but the AI.

chess.js has been extensively tested in node.js and most modern browsers.

Requirements and intended audience

chess.js is a TypeScript chess library used for chess move generation/validation, piece placement/movement, and check/checkmate/stalemate detection - basically everything but the AI.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-31. Source: https://github.com/jhlywa/chess.js/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2026-08-11. Saved release: v1.4.0 · 2025-06-14. These dates do not guarantee ongoing maintenance.

Technologies
TypeScript
Licence
BSD-2-Clause. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-20. This does not test every feature.

Browse related categories