motdotla/dotenv
Loads environment variables from .env for nodejs projects. observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 96
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4807
- days_rel: n/a
- days_push: 29
- n_releases_24m: 0
Adoption not part of the score
20525 stars · 960 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A zero-dependency Node.js module that loads environment variables from a .env file into process.env, following the Twelve-Factor App configuration methodology. It is the de facto standard for .env file handling in the JavaScript ecosystem.
Use cases
- load environment variables from a .env file in node
- manage app secrets and config outside of source code
- store api keys in a config file for a javascript project
- configure environment-specific settings for nodejs apps
- keep database credentials out of my git repository
- set up twelve-factor app configuration in node
When to choose
- you need the standard, battle-tested way to load .env files in Node.js
- you want a zero-dependency, lightweight config loader
- you follow twelve-factor configuration practices in JavaScript projects
When to avoid
- you need encrypted .env files - use dotenvx instead
- your runtime natively supports .env loading (e.g. recent Node.js --env-file or Bun)
- you are not working in a JavaScript/Node.js ecosystem
Facets
library · maturity stable
configuration-management secrets-management developer-tools developer-tools backend security bun cross-platform dotenv env-files twelve-factor zero-dependency npm nodejs deno
3 sources
- readme: https://github.com/motdotla/dotenv · fetched 2026-08-28 · 826eb29c73a5
- homepage: https://www.dotenv.org · fetched 2026-08-29 · 1f0c11aa15dd
- registry_npm: https://registry.npmjs.org/dotenv · fetched 2026-08-29 · ab9291bd56f9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| motdotla/dotenv | main | 75 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem