To get started, you will need to place your own personal token inside the ./data/userData.ts
file.
The types are generated from the lichess-openapi-spec.json
file. They can be updated with:
npx openapi-typescript-codegen --input swagger.json --output ./dist
Svelte apps are built with adapters, which optimise your project for deployment to different environments, like Begin, Netlify, Vercel and so on. (You can also create your own adapter — instructions TODO.)
By default, npm run build
will generate a Node app that you can run with node build
. To use a different adapter, install it and update your svelte.config.js
accordingly. The following official adapters are available: