roves-api
The JS/TS bridge your game's own code uses to talk to Roves.
@drincs/roves-api is the JS/TS
bridge for talking to Roves from your web content.
Modules
import { invoke, isAvailable } from "@drincs/roves-api/core";
import { exit } from "@drincs/roves-api/process";
import { steam } from "@drincs/roves-api/steam";
import { achievements } from "@drincs/roves-api/achievements";
import { clearContentCache } from "@drincs/roves-api/cache";
import { saves } from "@drincs/roves-api/saves";core
The generic invoke(cmd, args) bridge everything else is built on, plus isAvailable().
process
exit() — close every window Roves opened.
steam
Stats, DLC, overlay, store — the full Steamworks wrapper.
achievements
A platform-agnostic achievements API, Steam-backed today.
cache
Wipe the packed-content extraction cache.
saves
An async, IndexedDB-shaped key/value store for player save data, with Steam Cloud sync.
Installation
npm install @drincs/roves-apiIt's a normal npm dependency — no Roves-specific build step required on your side. Every function is safe to call even when your code isn't actually running inside Roves (e.g. a plain browser preview during development) — see each module's own page for its specific fallback behavior.