# kelseyhightower/envconfig

Golang library for managing configuration data from environment variables

Repository: https://github.com/kelseyhightower/envconfig
Canonical: https://ross.abutalabs.com/products/envconfig
Language: Go
License: MIT
License Family: permissive
Last push: 2025-06-28T02:01:37+00:00

## Health v2 (maintenance only)
Score: 35/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 28, release rhythm 8, longevity 100
- inputs: {"age_days": 4683, "days_push": 432, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5466, forks 395 (observed 2026-08-28T04:09:19.570275+00:00)

## What it is
A Go library that populates struct fields from environment variables using struct tags for overrides, defaults, and required values. It supports types like slices, maps, and time.Duration with automatic parsing.

## Use cases
- load configuration from environment variables in Go
- parse env vars into a struct with defaults
- require certain environment variables at startup
- map env vars to snake_case names automatically
- twelve-factor app configuration in Go

## When to choose
- you want lightweight, dependency-free env var config in Go
- you prefer struct-tag-driven configuration with defaults and required checks
- you need parsing of durations, slices, and maps from env vars

## When to avoid
- you need config from files, YAML, or multiple sources
- you want hot-reloading or validation beyond required/default
- you're not using Go

## Facets
- artifact type: library
- maturity: maintenance
- function: configuration-management, developer-tools
- domain: developer-tools, backend
- platform: go, cross-platform
- tags: environment-variables, struct-tags, twelve-factor-app, config-parsing, devops

## Member repositories
- kelseyhightower/envconfig (main) score 35

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:19.570275+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:56:45.401045+00:00, confidence not recorded.
  - readme: https://github.com/kelseyhightower/envconfig (fetched 2026-08-28T04:09:19.570275+00:00, sha 1b7dca037ee7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
