Lichess is written in Scala 3,
and relies on Liplay (a modified Play 2.8 framework).
scalatags is used for templating.
Pure chess logic is contained in the scalachess submodule.
The server is fully asynchronous, making heavy use of Scala Futures and Pekko streams.
WebSocket connections are handled by a separate server that communicates using Redis.
Lichess talks to Stockfish deployed in an AI cluster of donated servers.
It uses MongoDB to store more than 12 billion games, which are indexed by elasticsearch.
HTTP requests and WebSocket connections can be proxied by nginx.
The web client is written in TypeScript, snabbdom and SCSS, using sasso and Lightning CSS to generate CSS.
All rated games are published in a free PGN database.
Browser testing done with Browserstack.
Proxy detection done with IP2Proxy database.
Software builds and CI/CD done with Depot.
Traffic management done with Cloudflare.
Lichess would like to support its contributors in their competence development by covering costs of relevant training materials and activities. This is a small way to further empower contributors who have given their time to Lichess and to enable or improve additional contributions to Lichess in the future. For more information, including how to apply, check Competence Development for Lichess contributors.