qmetrics.net

dotenv

Zero-dependency Node.js loader for .env configuration files

Secrets ManagementDesktop/CLI app
dotenv screenshot

Loads key-value settings from a .env file into process.env early in a Node application, following twelve-factor configuration practices.

Overview

Dotenv is a small Node module with no dependencies that reads a project’s .env file and exposes each entry on process.env before other code runs. The pattern keeps secrets and environment-specific settings out of source while remaining easy to adopt in new or existing apps.

Calling config at startup is the default integration path, with optional ES module imports, Bun, Yarn, pnpm, and Deno workflows documented. A built-in CLI can inject variables when launching commands, supporting multiple files, quiet mode, debug logging, override behavior, and a faster parser option.

The parser handles comments, quoted strings, multiline values, backticks, and skipped empty lines, and exposes separate parse and populate APIs for custom loading logic. Existing environment values are preserved unless override is enabled, and monorepo layouts place the file beside the running app entry.

Advanced encryption, expansion, and multi-environment flows are delegated to the separate dotenvx project, while dotenv itself stays focused on loading plain .env files locally.

Key features

  • Loads .env into process.env
  • Zero runtime dependencies
  • Built-in dotenv run CLI
  • Multiline and quoted value parsing
  • Multiple file merge with precedence rules
  • Optional override and debug modes
  • Fast alternate parser option
  • Separate parse and populate APIs

Use cases

  • Local Node API configuration
  • Keeping API keys out of git
  • Running scripts with injected env files
  • Per-environment .env file layouts
  • Custom env loading in tests

Tags

Similar software

HashiCorp Vault

Secrets management, encryption as a service, and access control

Vault stores and controls access to secrets such as API keys, passwords, and certificates through a unified interface with audit logging.

★ 36.6k⟳ 2 days agoSource-available

Gitleaks

Command-line secret scanner for git repos and files

Gitleaks finds passwords, API keys, and tokens in git history, directories, files, or stdin. It uses configurable regex rules and fits into local workflows and CI.

★ 31.4k⟳ 1 month agoMIT
Secrets ManagementDesktop/CLI app

Infisical

Open-source security infrastructure for secrets, certs, and access

Infisical is a security infrastructure platform where teams manage application secrets, certificates, privileged access, and AI agent credentials in one place.

★ 30.8k⟳ todayMIT · open core
Secrets ManagementSelf-hostable
Open Source Alternative to:Keeper

TruffleHog

Credential discovery, classification, and live verification scanner

TruffleHog scans repositories, filesystems, chats, and cloud storage for machine credentials. It classifies findings and can test whether secrets still work.

★ 29.7k⟳ 3 days agoAGPL-3.0
Secrets ManagementDesktop/CLI app

Age

Simple file encryption tool and format

age encrypts and decrypts files from the command line using compact keys and a documented format. It also ships as a Go library for building compatible tools.

★ 24.5k⟳ 3 months agoBSD-3-Clause
Secrets ManagementDesktop/CLI app

SOPS

Structured secrets editor with multi-KMS encryption

SOPS encrypts YAML, JSON, ENV, INI, and binary files while leaving keys and structure readable. It wraps values with AES-256-GCM using session keys controlled by PGP, age, or cloud KMS identities.

★ 23.9k⟳ 4 days agoMPL-2.0
Secrets ManagementDesktop/CLI app