Packages

Configuration & Environment Packages

Configuration loading and environment-variable management libraries for keeping app settings and secrets out of source code (dotenv, python-dotenv).

100 packages

Packages in Configuration & Environment

78Health
Library npm

dotenv

Loads environment variables from a .env file into process.env for Node.js apps.

20,550
Other
Used by 227
47Health
Tool npm

cross-env

Cross-platform CLI for setting environment variables in npm scripts without worrying about Windows vs POSIX syntax.

6,520
MIT
Used by 118
72Health
Library PyPI

python-dotenv

Load environment variables from a .env file into Python's os.environ, the standard way to keep 12-factor config out of your code

8,900
BSD 3
Used by 73
33Health
Library Cargo

dirs-rs

Platform-specific standard directory paths for config, cache, and data on Linux, macOS, and Windows.

738
Apache 2.0
Used by 33
40Health
Tool npm

dotenv-cli

A command-line tool that loads .env files and runs any command with those environment variables set.

602
MIT
Used by 33
75Health
Library Cargo

toml

A native Rust encoder and decoder for TOML with first-class Serde support.

1,085
Apache 2.0
Used by 31
81Health
Library npm

JSON5

JSON for humans: an extended JSON syntax with comments, trailing commas, and unquoted keys for hand-written config.

7,178
MIT
Used by 28
50Health
Library Go

godotenv

A Go port of Ruby's dotenv that loads environment variables from .env files into your process, with zero third-party dependencies.

10,667
MIT
Used by 27
89Health
Library PyPI

pydantic-settings

Type-safe application settings management for Python, built on Pydantic models.

1,488
MIT
Used by 27
50Health
Library npm

@t3-oss/env-core

Typesafe environment variables for TypeScript, validated at boot with any Standard Schema validator.

4,018
MIT
Used by 26
47Health
Library Go

Viper

A complete configuration solution for Go applications, merging flags, env vars, config files, and remote stores into one API.

30,485
MIT
Used by 24
56Health
Library Cargo

dotenvy

A well-maintained, actively developed fork of the dotenv crate for loading .env files in Rust

1,258
MIT
Used by 19
65Health
Library PyPI

tomli

A lil' TOML parser for Python — fast, spec-compliant, and dependency-free.

575
MIT
Used by 19
85Health
Library npm

@nestjs/config

The official NestJS configuration module for loading, validating, and injecting environment variables.

592
MIT
Used by 17
68Health
Library npm

electron-store

Simple, encrypted JSON persistence for your Electron app — save user settings, window state, and cache across the main and renderer processes.

5,027
MIT
Used by 15
63Health
Library Go

toml

A reflection-based TOML decoder and encoder for Go, built to feel like encoding/json.

5,027
MIT
Used by 14
40Health
Library PyPI

toml

A pure-Python library for parsing and creating TOML documents, validated against the official TOML test suite.

1,138
MIT
Used by 14
67Health
Library npm

dotenv-expand

Expands variable references, command substitution, and encrypted values in dotenv-parsed .env files.

1,057
BSD 3
Used by 14
91Health
Library PyPI

platformdirs

Determine platform-specific user directories for data, config, cache, and logs

995
MIT
Used by 13
45Health
Library Go

envconfig

A lightweight, dependency-free Go library that populates typed structs from environment variables using reflection and struct tags.

5,469
MIT
Used by 11
73Health
Library npm

conf

Simple, schema-validated config file persistence for Node.js apps and CLI tools

1,351
MIT
Used by 10
86Health
Tool npm

dotenvx

A secure, cross-platform dotenv replacement that encrypts .env files and runs any command with decrypted secrets injected — no code changes required.

5,848
BSD 3
Used by 9
81Health
Library Go

koanf

A lightweight, extensible Go library for reading and merging configuration from files, env vars, flags, and remote sources.

4,223
MIT
Used by 7
77Health
Library Cargo

config

Layered configuration system for Rust applications with strong 12-factor support

3,221
Apache 2.0
Used by 7

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers