To query RONIN, start by creating a new App (such as “Website”) in the “Apps” section of your space on the dashboard (left sidebar), which will provide you with a token.

After that, install the ronin package from npm:

npm install ronin

Next, start querying like shown below, and make sure to provide the token as a RONIN_TOKEN environment variable:

import { get } from 'ronin';
const post = await'new-pricing');

For the best experience, we recommend enabling Automatic Types.

Note that, when deploying to the edge without a frontend framework like Next.js, you must manually pass the App Token via config.