jhlywa/chess.js
A TypeScript chess library for chess move generation/validation, piece placement/movement, and check/checkmate/draw detection observed · 2026-08-28
Health v2 · maintenance only
73/100
- Activity 97
- Release rhythm 28
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 42
- age_days: 6456
- days_rel: 445
- days_push: 22
- n_releases_24m: 6
Adoption not part of the score
4388 stars · 986 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
chess.js is a TypeScript chess library providing move generation and validation, piece placement and movement, and check/checkmate/stalemate detection. It is a headless library with no UI, designed to run in Node.js and modern browsers and pair with board-rendering libraries like chessboard.js.
Use cases
- validate chess moves in a web chess game
- generate legal moves for a chess engine or bot
- detect check, checkmate, and stalemate in an app
- parse and produce PGN and FEN chess notation
- build a chess puzzle or training tool
- play out random or scripted games programmatically
When to choose
- you need reliable chess rules logic in JavaScript or TypeScript
- you are building a chess UI and need a headless rules engine
- you need PGN/FEN parsing with both permissive and strict modes
When to avoid
- you need a chess AI or engine evaluation - it explicitly excludes AI
- you need a graphical chessboard or UI components
- you are working outside JavaScript/TypeScript ecosystems
Facets
library · maturity stable
parser sdk developer-tools gaming-tools developer-tools browser cross-platform chess game-logic typescript move-generation pgn fen board-games algorithms nodejs javascript
3 sources
- readme: https://github.com/jhlywa/chess.js · fetched 2026-08-28 · 3708eaa5d6e3
- homepage: http://jhlywa.github.io/chess.js/ · fetched 2026-08-29 · 8a7e59d14201
- registry_npm: https://registry.npmjs.org/chess.js · fetched 2026-08-29 · 74eb9dbb1c5c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jhlywa/chess.js | main | 73 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem