Automated ranking

Best Go Configuration Libraries

Compare go configuration libraries by maintenance, adoption, security, release activity, and Go ecosystem usage. Top packages in this group include Koanf, Viper, argus.

Best overall

Koanf

Highest combined package health score.

95
Best maintained

Koanf

Strongest maintenance signal in this category.

95
Most adopted

Koanf

Highest adoption signal from stars, forks, and imported-by data.

100

Ranked Packages

12 packages

#1 Koanf

Simple, extremely lightweight, extensible, configuration management library for Go. Supports JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.

Go Configuration Libraries 4.0K stars 540 imported-by 100% confidence
95

#2 Viper

Go configuration with fangs.

Go Configuration Libraries 30.3K stars 103.3K imported-by 100% confidence
91

#3 argus

Package argus provides a comprehensive dynamic configuration management framework for Go applications, combining ultra-fast file monitoring, universal format parsing, and zero-reflection configuration binding in a single, cohesive system.

Go Configuration Libraries 0 stars 1 imported-by 80% confidence
66

#4 agent-sdk-go

Go SDK for building durable AI agents on Temporal with support for tools, MCP, human approvals, and sub-agent delegation.

Go Configuration Libraries 0 stars 0 imported-by 80% confidence
62

#5 Kono

lightweight extendable API Gateway in Go - parallel fan-out, flexible aggregation, and zero configuration magic.

Go Configuration Libraries 0 stars 0 imported-by 60% confidence
59

#6 v2

Package config is a go config management implement.

Go Configuration Libraries 0 stars 0 imported-by 55% confidence
58

#7 configor

Go Configuration Libraries 0 stars 870 imported-by 40% confidence
58

#8 env

A simple, zero-dependencies library to parse environment variables into structs

Go Configuration Libraries 0 stars 1.4K imported-by 80% confidence
54

#9 go-config

Yaml Config Loader

Go Configuration Libraries 0 stars 44 imported-by 75% confidence
48

#10 xdg

Package xdg provides an implementation of the XDG Base Directory Specification.

Go Configuration Libraries 0 stars 0 imported-by 60% confidence
44

#11 cue

The home of the CUE language! Validate and define text-based and dynamic configuration

Go Configuration Libraries 0 stars 0 imported-by 20% confidence
43

#12 ini

Package ini provides INI file read and write functionality in Go.

Go Configuration Libraries 0 stars 0 imported-by 80% confidence
41

Comparison Matrix

score dimensions
Package Health Maintenance Adoption Security Imported by
Koanf 95 95 100 92 540
Viper 91 80 100 92 103.3K
argus 66 90 12 92 1
agent-sdk-go 62 90 7 92 0
Kono 59 90 7 70 0
v2 58 90 5 70 0
configor 58 48 50 92 870
env 54 15 60 92 1.4K
go-config 48 27 28 92 44
xdg 44 45 7 70 0
cue 43 48 5 70 0
ini 41 15 7 92 0

Related Comparisons

Go Configuration Libraries

Viper vs Koanf

Compare health, maintenance, adoption, security, and release signals.

95

Viper vs env

Compare health, maintenance, adoption, security, and release signals.

91

Koanf vs env

Compare health, maintenance, adoption, security, and release signals.

95