A JavaScript API wrapper and WebSocket handler for racetime.gg
npm i rtgg.js
Note: this package uses the native fetch API, and thus requires at least Node.js v17.5.
const { rtggClient, rtggWebSocket } = require('rtgg.js');
const rtgg = new rtggClient();The wrapper is based on promises, so it advised you use async/await in all API calls.
Documentation is available here.
You can discuss this repository more in my Discord.