A Go client for the Nexus Mods API: REST and GraphQL calls, the rate-limit budget, nxm:// links and the two sign-in flows. Package nexusmods, module github.com/Rethunk-Tech/go-nexusmods.
Nexus asks every app to say who it is and to stay inside its hourly and daily budget. This client does both by
construction: it sends the name and version you give it on every request, reads the X-Rl-* headers, and refuses to
send once a window is nearly spent. It never fetches a mod file: the free path needs an nxm:// link from Nexus's own
Mod Manager Download button, and the premium paths are named Premium... so grep Premium finds each. The caller sets
the User-Agent (an httpkit.Transport does it) and owns token storage; WithKey and WithBearer copies share one
budget.
go get github.com/Rethunk-Tech/go-nexusmodsA worked example and the contracts: HUMANS.md.
- REST and GraphQL reads: account, mod pages, files, changelogs, categories, scan status, tracked mods, collections.
- Batched lookups of many mods or files, one request per 50.
nxm://and mod-page link parsing that refuses anything but the exact forms.- A live rate-limit budget and typed errors (
httpkit.StatusError,httpkit.RateLimitError). - Sign-in in package
sso: legacy SSO and OAuth 2 PKCE with a loopback callback.
| Doc | Audience |
|---|---|
| HUMANS.md | Running and using the package |
| AGENTS.md | Internals, invariants, and why |
| CONTRIBUTING.md | Process — commits, tests, docs |
| SECURITY.md | Vulnerability disclosure |
| CHANGELOG.md | Release notes |
MIT — see LICENSE. © 2026 Rethunk.Tech, LLC.