Skip to main content

Modio

@reset/modiov2026.10.23.1· MIT· 3d agoBEHAVIORSACCEPTED WARNINGS
01README

Record a game's mods and their mod.io stats, and summarise growth.

02Behaviors1
@reset/modiov2026.10.23.1modio.ts

Global Arguments

ArgumentTypeDescription
apiKeystringmod.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
apiPathstringThe 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
gamestringThe 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
ArgumentTypeDescription
maxPages?numberMost 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
ArgumentTypeDescription
since?stringOnly summarise samples recorded at or after this ISO-8601 time; all samples when omitted
top?numberHow many fastest-growing mods to list, 1 to 100; 10 when omitted
rankBy?enumRank 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

05Platforms
06Labels