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,543
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,523
MIT
Used by 118
63Health
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,883
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.

739
Apache 2.0
Used by 33
41Health
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,080
Apache 2.0
Used by 31
45Health
Library npm

JSON5

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

7,168
MIT
Used by 28
52Health
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,643
MIT
Used by 27
89Health
Library PyPI

pydantic-settings

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

1,462
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,008
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,473
MIT
Used by 24
60Health
Library Cargo

dotenvy

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

1,252
MIT
Used by 19
47Health
Library PyPI

tomli

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

572
MIT
Used by 19
85Health
Library npm

@nestjs/config

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

591
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,021
MIT
Used by 15
65Health
Library Go

toml

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

5,012
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,136
MIT
Used by 14
67Health
Library npm

dotenv-expand

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

1,056
BSD 3
Used by 14
88Health
Library PyPI

platformdirs

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

988
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,470
MIT
Used by 11
74Health
Library npm

conf

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

1,346
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,814
BSD 3
Used by 9
75Health
Library Go

koanf

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

4,212
MIT
Used by 7
78Health
Library Cargo

config

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

3,214
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