github.com/spf13/viper

Viper

Go configuration with fangs.

91

Decision Signals

Health score 91/100, confidence 100/100.

Excellent
Maintenance 80
Adoption 100
Security 92
Maturity 100
Developer DX 83
Confidence 100

Install

go get github.com/spf13/viper

Package Data

updated May 31, 2026
Latest versionv1.21.0
Imported by103.3K packages
Stars30.3K
Forks2.1K
Last activity4 months ago
Latest releasev1.21.0 (8 months ago)
LicenseMIT
Known vuln records0

API Surface

209 symbols
SymbolKindSynopsis
Codec Type type Codec interface{ ... }
CodecRegistry Type type CodecRegistry interface{ ... }
ConfigFileAlreadyExistsError Type type ConfigFileAlreadyExistsError string
ConfigFileAlreadyExistsError.Error Method func (faee ConfigFileAlreadyExistsError) Error() string
ConfigFileNotFoundError Type type ConfigFileNotFoundError struct{}
ConfigFileNotFoundError.Error Method func (fnfe ConfigFileNotFoundError) Error() string
ConfigMarshalError Type type ConfigMarshalError struct{}
ConfigMarshalError.Error Method func (e ConfigMarshalError) Error() string
ConfigParseError Type type ConfigParseError struct{}
ConfigParseError.Error Method func (pe ConfigParseError) Error() string
ConfigParseError.Unwrap Method func (pe ConfigParseError) Unwrap() error
Decoder Type type Decoder interface{ ... }

Similar Packages

Go Configuration Libraries

#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 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

#3 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

#4 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

#5 v2

Package config is a go config management implement.

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