varlock alternatives
8 packages that do the same job as varlock: envars, @dotenvx/dotenvx, dotenv-flow, convict, dotenv, ts-dotenv, dotenv-vault, react-native-dotenv. Figures below are from npm, GitHub and Bundlephobia.
| Package | Weekly downloads | 12-month change | Gzip | Dependencies | Last release | Module | Types | Runtimes |
|---|---|---|---|---|---|---|---|---|
| varlock This package | 194k | +24258% | - | 0 | 6 days ago | ESM + CommonJS | Bundled | - |
| envars | 7.6k | +252% | - | 7 | 1 year ago | ESM only | Bundled | - |
| @dotenvx/dotenvx | 8.8m | +1056% | - | 6 | 2 days ago | CommonJS | Bundled | - |
| dotenv-flow | 799.1k | +89% | - | 1 | 2 years ago | CommonJS | Bundled | - |
| convict | 883.5k | +44% | - | 2 | 6 months ago | CommonJS | None | - |
| dotenv | 130.9m | +122% | - | 0 | 2 days ago | CommonJS | Bundled | - |
| ts-dotenv | 23.2k | +215% | - | 0 | 3 years ago | CommonJS | Bundled | - |
| dotenv-vault | 22.3k | +35% | - | 8 | 1 year ago | CommonJS | Bundled | - |
| react-native-dotenv | 261.3k | +52% | - | 1 | 3 days ago | CommonJS | None | - |
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.
Load environment variables from .env files. Decode secret values from AWS Secrets Manager, Google Secret Manager, and other sources.
Compared with varlock
- 26x fewer weekly downloads (7.6k vs 194k)
- 7 dependencies vs 0
- ESM only vs ESM + CommonJS
- Declares no Node.js engine range vs Node.js >=22.3.0
- Last release 24 Jun 2025 vs 18 Sept 2026
- 418x fewer GitHub stars (11 vs 4.6k)
a secure dotenv–from the creator of `dotenv`
Compared with varlock
- 46x more weekly downloads (8.8m vs 194k)
- 6 dependencies vs 0
- CommonJS vs ESM + CommonJS
- Declares no Node.js engine range vs Node.js >=22.3.0
- Last release 22 Sept 2026 vs 18 Sept 2026
- 1.3x more GitHub stars (5.8k vs 4.6k)
Loads environment variables from `.env.[development|test|production][.local]` files
Compared with varlock
- 4.1x more weekly downloads (799.1k vs 194k)
- 1 dependency vs 0
- CommonJS vs ESM + CommonJS
- Declares Node.js >= 12.0.0 vs Node.js >=22.3.0
- Last release 26 Dec 2023 vs 18 Sept 2026
- 5.1x fewer GitHub stars (902 vs 4.6k)
Featureful configuration management library for Node.js (nested structure, schema validation, etc.)
Compared with varlock
- 4.6x more weekly downloads (883.5k vs 194k)
- 2 dependencies vs 0
- CommonJS vs ESM + CommonJS
- No types vs bundled types
- Declares Node.js >=6 vs Node.js >=22.3.0
- Last release 19 Mar 2026 vs 18 Sept 2026
- 1.9x fewer GitHub stars (2.4k vs 4.6k)
Loads environment variables from .env file
Compared with varlock
- 675x more weekly downloads (130.9m vs 194k)
- CommonJS vs ESM + CommonJS
- Declares Node.js >=12 vs Node.js >=22.3.0
- Last release 22 Sept 2026 vs 18 Sept 2026
- 4.5x more GitHub stars (20.5k vs 4.6k)
Strongly-typed environment variables from .env & process.env
Compared with varlock
- 8.3x fewer weekly downloads (23.2k vs 194k)
- CommonJS vs ESM + CommonJS
- Declares no Node.js engine range vs Node.js >=22.3.0
- Last release 5 Feb 2023 vs 18 Sept 2026
- 105x fewer GitHub stars (44 vs 4.6k)
A secrets manager for .env files – from the same people that pioneered dotenv.
Compared with varlock
- 8.7x fewer weekly downloads (22.3k vs 194k)
- 8 dependencies vs 0
- CommonJS vs ESM + CommonJS
- Declares Node.js >=16 vs Node.js >=22.3.0
- Last release 25 Jun 2025 vs 18 Sept 2026
- 3.7x fewer GitHub stars (1.2k vs 4.6k)
Load .env into React Native with import statements. A Babel plugin that inlines environment variables at build time.
Compared with varlock
- 1.3x more weekly downloads (261.3k vs 194k)
- 1 dependency vs 0
- CommonJS vs ESM + CommonJS
- No types vs bundled types
- Declares no Node.js engine range vs Node.js >=22.3.0
- Last release 21 Sept 2026 vs 18 Sept 2026
- 5.4x fewer GitHub stars (857 vs 4.6k)
Indexability: Indexed.