This is an example for a fully client side OAuth app that uses various APIs.
- Fully client side, no server needed
- Login with Lichess (OAuth2 PKCE)
- View ongoing games
- Play games
- Challenge the AI opponent
- Challenge a player
- Create a game seek
- Watch Lichess TV
The demo app is hosted on GitHub Pages
pnpm installpnpm run devfor local development, orpnpm run buildfor production outputpnpm run serveto preview the production build on http://localhost:4173
- ND-JSON stream reader
- OAuth "Login with Lichess"
- Read the main event stream
- Game play
- Create a seek and await a game
- Challenge a player
- Watch Lichess TV
Feel free to reuse and learn from this code when building your own Lichess API app.