Modio
@reset/modiov2026.10.23.1
01README
Record a game's mods and their mod.io stats, and summarise growth.
02Behaviors
@reset/modiov2026.10.23.1modio.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiKey | string | mod.io API key, supplied with a vault.get expression, never a literal. Sent only as the api_key query parameter to apiPath, and never written to a record, log or error |
| apiPath | string | The API path mod.io issues with the key, e.g. https://g-1.modapi.io/v1 for a game key or https://u-1.modapi.io/v1 for a user key |
| game | string | The game whose mods are recorded: its numeric mod.io id, or its name_id as in mod.io/g/rogue-knight |
fn sample(maxPages?: number)
Read the game's mods and their stats from mod.io's REST API and record them as a new version, flagging mods new since the previous one
| Argument | Type | Description |
|---|---|---|
| maxPages? | number | Most pages of 100 mods to read, 1 to 20; 10 when omitted |
fn summarise(since?: string, top?: number, rankBy?: enum)
Summarise the recorded samples: each mod's download and subscriber change over the history, and the fastest-growing mods
| Argument | Type | Description |
|---|---|---|
| since? | string | Only summarise samples recorded at or after this ISO-8601 time; all samples when omitted |
| top? | number | How many fastest-growing mods to list, 1 to 100; 10 when omitted |
| rankBy? | enum | Rank the fastest-growing mods by downloads or subscribers gained per day; downloads when omitted |
Resources
mods(infinite)— One game's mods and their mod.io stats at one moment, with the mods new since the previous version
summary(infinite)— Per mod the first and latest downloads and subscribers and the change, and the fastest-growing mods
03Stats
B
86 / 100
Downloads
4
Archive size
21.0 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository0/2missing
behavior-spelling1 accepted
- (extension) — Written against swamp 20261020.024627.0, the release that added the behavior spelling. Consumers on an older swamp are not supported.
05Platforms
06Labels