Skip to content

Chessmetrics is a website that calculates and shows cool metrics of a chess position. Also included as browser extensions: position visualizers for lichess and chess.com

License

Notifications You must be signed in to change notification settings

ruslanbes/chessmetrics

Repository files navigation

Chessmetrics

A chess position analysis API server that calculates various metrics for chess positions. Provides them via REST API and browser userscript.

Purpose

Chessmetrics analyzes chess positions and returns calculated metrics like how many pieces attack a certain square from both sides, is the piece hanging, is the piece pinned, and so on. It can run as a standalone API server and can also be installed as a browser userscript for chess.com and lichess.org and run inside the browser.

Components

  • API Server: REST API for chess position analysis
  • Browser Userscript: Client-side integration for chess websites
  • Metrics Engine: Extensible system for calculating chess metrics

Quick Start

npm install
npm run dev
curl "http://localhost:3000/api/v1/standard/fen/rnbqkbnr%2Fpppppppp%2F8%2F8%2F8%2F8%2FPPPPPPPP%2FRNBQKBNR%20w%20KQkq%20-%200%201"

Documentation

About

Chessmetrics is a website that calculates and shows cool metrics of a chess position. Also included as browser extensions: position visualizers for lichess and chess.com

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published