knadh/koanf
Simple, extremely lightweight, extensible, configuration management library for Go. Supports JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper. observed · 2026-10-19
Health v2 · maintenance only
96/100
- Activity 100
- Release rhythm 88
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 44.5
- age_days: 2681
- days_rel: 2
- days_push: 2
- n_releases_24m: 15
Adoption not part of the score
4218 stars · 215 forks observed · 2026-10-19
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Koanf is a lightweight, extensible configuration management library for Go that reads configuration from multiple sources and formats. It uses a modular Provider/Parser architecture with pluggable backends like files, env vars, CLI flags, S3, Vault, Consul, and etcd.
Use cases
- load app config from yaml, toml, or files in Go
- read configuration from environment variables and command line flags
- load config from S3, Vault, Consul, or etcd
- watch config files for changes and hot-reload
- merge configuration from multiple sources with custom merge strategies
- find a lighter alternative to viper
When to choose
- you need multi-source, multi-format config loading in Go with minimal dependencies
- you want pluggable providers/parsers and custom merge logic
- viper feels too heavy or its abstractions don't fit
When to avoid
- you need a full-featured config system with built-in remote key/value watching semantics like viper's ecosystem
- your project is not in Go
Facets
library · maturity stable
configuration-management developer-tools backend go cross-platform config-loader viper-alternative lightweight yaml toml environment-variables s3 etcd vault
1 source
- readme: https://github.com/knadh/koanf · fetched 2026-10-19 · 360dfb1708d4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| knadh/koanf | main | 96 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem