#1 Koanf
Simple, extremely lightweight, extensible, configuration management library for Go. Supports JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.
Compare go configuration libraries by maintenance, adoption, security, release activity, and Go ecosystem usage. Top packages in this group include Koanf, Viper, env.
Highest combined package health score.
Strongest maintenance signal in this category.
Highest adoption signal from stars, forks, and imported-by data.
Simple, extremely lightweight, extensible, configuration management library for Go. Supports JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.
Go configuration with fangs.
A simple, zero-dependencies library to parse environment variables into structs
Package ini provides INI file read and write functionality in Go
Package config is a go config management implement.
lightweight extendable API Gateway in Go - parallel fan-out, flexible aggregation, and zero configuration magic.
Package xdg provides an implementation of the XDG Base Directory Specification.
File watching and configuration management with MPSC ring buffer, adaptive batching strategies, and universal format parsing (JSON, YAML, TOML, INI, HCL, Properties).
Go SDK for building durable AI agents on Temporal with support for tools, MCP, human approvals, and sub-agent delegation.
The home of the CUE language! Validate and define text-based and dynamic configuration
Yaml Config Loader
| Package | Health | Maintenance | Adoption | Security | Imported by |
|---|---|---|---|---|---|
| Koanf | 95 | 95 | 100 | 92 | 540 |
| Viper | 88 | 80 | 100 | 92 | 103.3K |
| env | 86 | 95 | 91 | 70 | 0 |
| ini | 85 | 95 | 88 | 70 | 0 |
| v2 | 73 | 90 | 40 | 92 | 215 |
| Kono | 72 | 95 | 24 | 92 | 0 |
| xdg | 63 | 45 | 59 | 92 | 1.2K |
| configor | 51 | 15 | 50 | 92 | 870 |
| argus | 51 | 48 | 12 | 92 | 1 |
| agent-sdk-go | 44 | 48 | 7 | 70 | 0 |
| cue | 43 | 48 | 5 | 70 | 0 |
| go-config | 41 | 48 | 5 | 70 | 0 |