Note
Equine follows the OpenAPI Specification provided by Lichess API, and requires its API Token.
import { initialize, accountMe } from 'equine'
// Initialize once with your Lichess API token.
initialize(process.env.LICHESS_API_TOKEN!)
const res = await accountMe()
console.log(res.data?.username)
For detailed information on specific APIs, see the API References.