A fully-featured .NET client library for the Lichess API.
dotnet add package LichessSharpusing LichessSharp;
// Create a client (unauthenticated for public API)
using var client = new LichessClient();
// Or with an access token for authenticated endpoints
using var authenticatedClient = new LichessClient("your-access-token");
// Access different API areas
var user = await client.Users.GetAsync("DrNykterstein");
var game = await client.Games.GetAsync("q7ZvsdUF");
var puzzle = await client.Puzzles.GetDailyAsync();Full Documentation - Installation, configuration, and usage guides
- Authentication - OAuth tokens, scopes, security
- Quick Reference - Code snippets for all API areas
| Sample | Description |
|---|---|
| LichessSharp.Samples | Interactive demos covering all API areas |
| LichessSharp.SimpleBot | Complete bot implementation |
| LichessSharp.PuzzleSolver | Puzzle dashboard and solver CLI |
| LichessSharp.GameArchiver | Export games to PGN files |
| LichessSharp.TvViewer | Live TV streaming viewer |
| LichessSharp.UserStats | Player statistics tool |
| LichessSharp.PositionAnalyzer | Position analysis with cloud eval, opening explorer, tablebase |
Contributions welcome! See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE for details.