Skip to content
JS
Alternatives

@dotenvx/dotenvx alternatives

7 packages that do the same job as @dotenvx/dotenvx: dotenv, dotenv-flow, varlock, env-var, dotenv-webpack, convict, dotenv-defaults. Figures below are from npm, GitHub and Bundlephobia.

Data as of 25 Sept 2026
PackageWeekly downloads12-month changeGzipDependenciesLast releaseModuleTypesRuntimes
@dotenvx/dotenvx
This package
8.8m+1056%-62 days agoCommonJSBundled-
dotenv130.9m+122%-02 days agoCommonJSBundled-
dotenv-flow799.1k+89%-12 years agoCommonJSBundled-
varlock194k+24258%-06 days agoESM + CommonJSBundled-
env-var618.2k+144%-02 years agoCommonJSBundled-
dotenv-webpack929.6k-8%-16 months agoCommonJSBundled-
convict883.5k+44%-26 months agoCommonJSNone-
dotenv-defaults986.3k-0%-17 months agoESM onlyBundled-

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package (Bundlephobia). Runtimes are taken from each package's own documentation; "-" means not recorded.

Loads environment variables from .env file

Compared with @dotenvx/dotenvx

  • 15x more weekly downloads (130.9m vs 8.8m)
  • 0 dependencies vs 6
  • Declares Node.js >=12 vs none declared
  • Last release 22 Sept 2026 vs 22 Sept 2026
  • 3.5x more GitHub stars (20.5k vs 5.8k)

Loads environment variables from `.env.[development|test|production][.local]` files

Compared with @dotenvx/dotenvx

  • 11x fewer weekly downloads (799.1k vs 8.8m)
  • 1 dependency vs 6
  • Declares Node.js >= 12.0.0 vs none declared
  • Last release 26 Dec 2023 vs 22 Sept 2026
  • 6.4x fewer GitHub stars (902 vs 5.8k)

AI-safe .env files: Schemas for agents, Secrets for humans.

Compared with @dotenvx/dotenvx

  • 46x fewer weekly downloads (194k vs 8.8m)
  • 0 dependencies vs 6
  • ESM + CommonJS vs CommonJS
  • Declares Node.js >=22.3.0 vs none declared
  • Last release 18 Sept 2026 vs 22 Sept 2026
  • 1.3x fewer GitHub stars (4.6k vs 5.8k)

Verification, sanitization, and type coercion for environment variables in Node.js

Compared with @dotenvx/dotenvx

  • 14x fewer weekly downloads (618.2k vs 8.8m)
  • 0 dependencies vs 6
  • Declares Node.js >=10 vs none declared
  • Last release 20 May 2024 vs 22 Sept 2026
  • 9.3x fewer GitHub stars (625 vs 5.8k)

A simple webpack plugin to support dotenv.

Compared with @dotenvx/dotenvx

  • 9.5x fewer weekly downloads (929.6k vs 8.8m)
  • 1 dependency vs 6
  • Declares Node.js >=18.18.0 vs none declared
  • Last release 7 Mar 2026 vs 22 Sept 2026
  • 4.5x fewer GitHub stars (1.3k vs 5.8k)

Featureful configuration management library for Node.js (nested structure, schema validation, etc.)

Compared with @dotenvx/dotenvx

  • 10x fewer weekly downloads (883.5k vs 8.8m)
  • 2 dependencies vs 6
  • No types vs bundled types
  • Declares Node.js >=6 vs none declared
  • Last release 19 Mar 2026 vs 22 Sept 2026
  • 2.4x fewer GitHub stars (2.4k vs 5.8k)

dotenv... but with defaults!

Compared with @dotenvx/dotenvx

  • 9.0x fewer weekly downloads (986.3k vs 8.8m)
  • 1 dependency vs 6
  • ESM only vs CommonJS
  • Declares Node.js >=18.0.0 vs none declared
  • Last release 2 Feb 2026 vs 22 Sept 2026
  • 73x fewer GitHub stars (80 vs 5.8k)
Sources: npm registry, npm downloads API, GitHub API, Bundlephobia. Data fetched 25 Sept 2026.

Indexability: Indexed.