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
npm install
npm run build
npm run serve
or any other method to serve the app on http://localhost:8000
- 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.