Skip to content
Rethunk-TechPublic

About

Reads SMAPI mod manifests and orders mods the way SMAPI's mod resolver does.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

91 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-smapi

License: MIT Go


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.

Quick start

go get github.com/Rethunk-Tech/go-smapi

A worked example and the contracts: HUMANS.md.

Features

  • Parse reads a manifest.json the 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.Check and Manifest.CheckSMAPI answer met, unmet or unknown for a dependency or MinimumAPIVersion, so an unreadable version is never shown as met.
  • Resolve orders mods as SMAPI's mod resolver does and flags missing requirements and dependency loops.
  • NexusUpdateKey, CurseForgeUpdateKey and GitHubUpdateKey read update keys; the GitHub one refuses a repo that would move a URL's path.
  • RewriteDependencies adds or drops optional dependencies and keeps every other key.
  • logline.Parser reads [HH:MM:SS LEVEL Mod] headers and continuation lines; LoadedSave, ModsPath and LogOwnedBy read the loaded save, the Mods go here: path, and whether a log belongs to a mods folder; ParsePerformanceReport reads performance-report rows.

Documentation

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

License

MIT — see LICENSE. © 2026 Rethunk.Tech, LLC.

About

Reads SMAPI mod manifests and orders mods the way SMAPI's mod resolver does.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages