roves-api
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 } from "@drincs/roves-api/core";
import { exit } from "@drincs/roves-api/process";
import { steam } from "@drincs/roves-api/steam";
import { clearContentCache } from "@drincs/roves-api/cache";core
The generic invoke(cmd, args) bridge everything else is built on.
process
exit() — close every window Roves opened.
steam
Achievements, stats, DLC, overlay, store.
cache
Wipe the packed-content extraction cache.
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.