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-08-28
Health v2 · maintenance only
93/100
- Activity 96
- Release rhythm 84
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 60.0
- age_days: 2633
- days_rel: 29
- days_push: 24
- n_releases_24m: 11
Adoption not part of the score
4178 stars · 201 forks observed · 2026-08-28
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-08-28 · 360dfb1708d4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| knadh/koanf | main | 93 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem