Configuration & Environment Packages
Configuration loading and environment-variable management libraries for keeping app settings and secrets out of source code (dotenv, python-dotenv).
Packages in Configuration & Environment
Kind
Sort:Used by Most Apps
ci-info
Zero-dependency detection of the current CI environment, vendor, and pull-request status in Node.js.
proxy-from-env
Resolves the correct proxy URL for a request by reading standard *_PROXY and NO_PROXY environment variables
Symfony Dotenv
Parses .env files and registers their values as environment variables for PHP applications
HCL v2
A Go toolkit for parsing, evaluating, and generating HashiCorp's HCL configuration language.
dotenv-webpack
A secure Webpack plugin that loads dotenv variables into your bundle while exposing only what your code actually references.
xdg
Cross-platform Go library for resolving XDG Base Directory and user directory paths on Unix, macOS, Windows, and Plan 9.
configstore
Easily load and persist config without having to think about where and how it's stored on disk.
directories
A tiny Rust library that resolves the platform-specific, user-accessible config, cache, and data directory paths for Linux, macOS, and Windows.
next-runtime-env
Populate Next.js environment variables at runtime instead of build time
strip-json-comments
Strip comments from JSON strings so you can safely use JSONC config files.
temp-env
Set environment variables temporarily for the duration of a closure, mainly for Rust tests.
env
A simple, zero-dependencies Go library that parses environment variables directly into struct fields using tags.
django-environ
Configure Django apps with twelve-factor environment variables and URL-based settings.
defu
Recursively assign default properties to objects with smart array concatenation and full TypeScript inference.
c12
Smart configuration loader for JavaScript and TypeScript that merges config files, RC files, package.json fields, dotenv, and remote extends into one resolved config.
dotenv-flow
Loads NODE_ENV-specific .env files with local overrides, extending dotenv with a predictable file cascade.
Hydra
A Python framework for elegantly configuring complex applications through composable hierarchical configs.
config
Hierarchical configuration management for Node.js apps, with environment-specific overrides and multi-format file support.
Symfony Flex
The Composer plugin that automates recipe installation and scaffolding for Symfony apps.
cosmiconfig
Find and load configuration from package.json, rc files, or JS/TS/JSON/YAML config files
OmegaConf
A hierarchical YAML-based configuration library that merges files, CLI args, and structured schemas with runtime type safety.
envalid
Type-safe environment variable validation and cleanup for Node.js and Bun with zero runtime dependencies.
tyro
Generate command-line interfaces and config objects directly from Python type annotations.
defaults
Initialize Go structs with default values using simple struct tags and reflection.