# Config and environment variables

Load an app’s settings and secrets, and check them. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [Varlock](https://elestia.ai/opensource/config/varlock/index.md) | 7.5 | 6.8 | 8.0 | 7.4 | 5.2 | 5.8 | 7.4 | TypeScript teams that want one schema for env vars that checks them, generates types and pulls secrets from 1Password or a cloud vault, and that is safe to show AI agents. |
| 2 | [T3 Env](https://elestia.ai/opensource/config/t3-env/index.md) | 7.2 | 6.1 | 7.7 | 5.8 | 5.4 | 6.4 | 8.2 | TypeScript teams on Next.js, Nuxt or Vite who already use a Standard Schema validator and want typed, checked env variables with secrets kept out of the client. |
| 3 | [dotenvx](https://elestia.ai/opensource/config/dotenvx/index.md) | 7.0 | 6.2 | 7.4 | 7.2 | 5.9 | 5.3 | 6.8 | Teams that want to commit encrypted .env files and load them the same way in every language and in CI. |
| 4 | [c12](https://elestia.ai/opensource/config/c12/index.md) | 7.0 | 4.8 | 7.2 | 7.2 | 5.2 | 6.9 | 7.2 | Authors of CLIs, build tools and frameworks who want users to write a typed `*.config.ts` with layers, env overrides and watch support. |
| 5 | [dotenv](https://elestia.ai/opensource/config/dotenv/index.md) | 6.8 | 6.9 | 6.6 | 6.9 | 8.6 | 7.6 | 7.5 | Node projects that need a small, proven .env loader with expansion-friendly parsing, on runtimes or tools where Node's built-in --env-file is not an option. |
| 6 | [envalid](https://elestia.ai/opensource/config/envalid/index.md) | 6.6 | 6.2 | 6.9 | 6.4 | 4.4 | 4.5 | 7.4 | Backend Node or Bun services that want simple, typed env checks without adding Zod or another schema library. |
| 7 | [cosmiconfig](https://elestia.ai/opensource/config/cosmiconfig/index.md) | 6.5 | 4.1 | 7.1 | 6.4 | 6.4 | 7.1 | 7.5 | Authors of CLIs and dev tools who want users to configure the tool in any of the usual rc and config-file places. |
| 8 | [node-config](https://elestia.ai/opensource/config/node-config/index.md) | 5.9 | 6.0 | 5.9 | 6.4 | 5.9 | 5.9 | 7.2 | Node.js backend teams that want layered JSON/YAML config files per deployment environment and will add validation themselves. |
| 9 | [convict](https://elestia.ai/opensource/config/convict/index.md) | 4.6 | 5.4 | 6.1 | 3.4 | 3.8 | 5.3 | 4.7 | Existing Node.js services that already use a convict schema and only need it kept patched. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| Varlock | 2.4M | ×713 | 5k | 697 | Nov 2026 | 0 |
| T3 Env | 23M | ×7.2 | 4k | 25 | Mar 2026 | 0 |
| dotenvx | 93M | ×21 | 5.9k | 1.6k | Oct 2026 | 0 |
| c12 | 158M | ×5.7 | 907 | 93 | Oct 2026 | 0 |
| dotenv | 1.1B | ×3.6 | 21k | 289 | Nov 2026 | 0 |
| envalid | 4.5M | ×2.7 | 1.6k | 27 | Oct 2026 | 0 |
| cosmiconfig | 692M | ×2.2 | 4.2k | 35 | Aug 2026 | 0 |
| node-config | 8.4M | +53% | 6.4k | 111 | Aug 2026 | 0 |
| convict | 7.4M | ×2.5 | 2.4k | 8 | Mar 2026 | 2 |

All categories: https://elestia.ai/opensource/index.md
