Reads SMAPI mod manifests and orders mods the way SMAPI's mod resolver does. Package smapi, module github.com/Rethunk-Tech/go-smapi.
A manifest reader that accepts what SMAPI accepts (comments, trailing commas, BOMs, single quotes, any key casing) and a resolver that returns mods in SMAPI's load order. Neither touches the filesystem, so both are safe to point at downloaded mods.
go get github.com/Rethunk-Tech/go-smapiA worked example and the contracts: HUMANS.md.
Parsereads amanifest.jsonthe way SMAPI's Json.NET reader does, with a size bound and no panics on hostile input.- Content packs list their framework as one required dependency, however the manifest declares it.
Dependency.CheckandManifest.CheckSMAPIanswer met, unmet or unknown for a dependency orMinimumAPIVersion, so an unreadable version is never shown as met.Resolveorders mods as SMAPI's mod resolver does and flags missing requirements and dependency loops.NexusUpdateKey,CurseForgeUpdateKeyandGitHubUpdateKeyread update keys; the GitHub one refuses a repo that would move a URL's path.RewriteDependenciesadds or drops optional dependencies and keeps every other key.logline.Parserreads[HH:MM:SS LEVEL Mod]headers and continuation lines;LoadedSave,ModsPathandLogOwnedByread the loaded save, theMods go here:path, and whether a log belongs to a mods folder;ParsePerformanceReportreads performance-report rows.
| 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.