# ilyakaznacheev/cleanenv

✨Clean and minimalistic environment configuration reader for Golang

Repository: https://github.com/ilyakaznacheev/cleanenv
Canonical: https://ross.abutalabs.com/products/cleanenv
Language: Go
License: MIT
License Family: permissive
Topics: configuration, environment-variables, environment-configuration, hacktoberfest
Last push: 2025-09-15T08:01:54+00:00

## Health v2 (maintenance only)
Score: 42/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 42, release rhythm 8, longevity 100
- inputs: {"age_days": 2609, "days_push": 352, "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 2160, forks 132 (observed 2026-08-28T04:06:20.923179+00:00)

## What it is
A minimalistic Go library for reading application configuration from files (YAML, JSON, etc.) and environment variables into typed structs. It also generates a detailed variable list for help output and supports refreshing environment variables at runtime.

## Use cases
- load app config from env vars in Go
- read YAML config file into a struct
- combine file-based and environment-based configuration
- generate a help listing of all config variables
- refresh environment variable values at runtime
- twelve-factor app configuration in Go

## When to choose
- you want a small, dependency-light config reader with struct tags
- your app needs env vars to override file-based config
- you prefer explicit typed config structs over dynamic config maps

## When to avoid
- you need advanced features like hot-reloading files, validation frameworks, or remote config sources
- you need support for many exotic config file formats beyond the supported ones
- your configuration logic is highly dynamic or nested beyond simple structs

## Facets
- artifact type: library
- maturity: stable
- function: configuration-management
- domain: developer-tools, backend
- platform: go, cross-platform
- tags: environment-variables, config-reader, yaml, struct-tags, twelve-factor, automation

## Member repositories
- ilyakaznacheev/cleanenv (main) score 42

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:20.923179+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-30T02:50:18.407893+00:00, confidence not recorded.
  - readme: https://github.com/ilyakaznacheev/cleanenv (fetched 2026-08-28T04:06:20.923179+00:00, sha 40ff8513408b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
