Elestia Open Source Ratings
5.9

node-config

Reasonable, with limits. 8th of 9 config and environment variables.

node-config (npm "config") is the long-standing Node.js library for layered config files: default, per-environment, per-host and local files, plus env-var mapping. It is still maintained and widely used, but it has no schema validation, v5's move to ESM caused friction with Jest and types, and it grows far slower than its peers. For new projects it is a reasonable but dated choice.

Best for: Node.js backend teams that want layered JSON/YAML config files per deployment environment and will add validation themselves.

GitHubnpm

Scores

Overall5.9

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

node-config still works and is maintained, and it remains the reference tool for layered config files in Node. For a new project, though, peers that validate and type settings (envalid, T3 Env, convict, Varlock) or plain dotenv/dotenvx serve most people better. v5's ESM friction and slow growth also count against it. It is a reasonable pick for backends that want file layering, and a fine one to keep where it already runs.

GPT-6.2 Sol: 6.8, likely 5.7 to 7.9

Node-config is a reasonable choice for a new Node.js service that needs nested settings and several layers of deployment overrides. For services configured mainly through environment variables, Envalid paired with Node.js file loading gives required-value and type checks at startup. Recent maintenance and documented production use support the recommendation, while weaker key typing and below-baseline growth keep it short of a category default.

Needed by many6.0

How many developers need a tool for this job?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Most server-side Node apps need to load settings per environment. node-config's answer, layered config files, suits backend services rather than frontend or edge apps. It is Node-only and file-based, so it is narrower than its category.

GPT-6.2 Sol: 6.0, likely 4.8 to 7.2

Layered settings serve a large group of Node.js backend teams, especially those with several deployments. The file-based design has less value for browser apps and services that get all their settings through environment variables. The runtime survey shows a large Node.js audience, while the share that needs layered files is uncertain.

Helps a lot5.9

How well does it do the job for those who need it?

Claude Opus 5.5: 5.0, likely 4.0 to 6.5

Its file layering and format support are solid and well documented. But it does not validate settings against a schema, its types are basic since v5, and the ESM switch broke Jest setups and loading TS config files. Peers such as convict, envalid and T3 Env check config, which matches the category's 'check them' job better.

GPT-6.2 Sol: 6.8, likely 5.7 to 7.9

Version 5.0.1 handles nested file layering and mapped environment overrides well, with documented precedence and clear errors for missing keys. Strict mode checks deployment file selection, and full schema validation needs another library. A contributor reported weaker TypeScript checks for dotted keys after types moved into the package. The loading behavior is well documented, while evidence on performance and coding-agent reliability is thin.

Holds up over time6.4

Will it still be a good choice in two years?

Claude Opus 5.5: 6.0, likely 4.5 to 7.0

The project is active: 111 commits and 11 releases in the last year, a major v5 release, and only 9 open issues. But one maintainer publishes all releases, nobody visibly funds the work, and v5 brought breaking changes with a 6.0 milestone already queued. The ecosystem is moving toward schema-validated env tools.

GPT-6.2 Sol: 6.8, likely 5.5 to 8.0

The project recorded 111 commits and eight npm versions in the past year, and v5.0.1 fixed an async configuration regression soon after v5. Two maintainers responded to the typing report, but one account published the recent GitHub releases and the latest stable release is three months old. The v5 API removals and uncertain release coverage widen the two-year range.

Used widely5.9

How many use it, and is that growing?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

About 8.4M downloads in 4 weeks and roughly 62k dependent repos show a large installed base, larger than convict, envalid or T3 Env. Its yearly growth ratio of 1.53 is far below the 4.1 median and the lowest among its peers, so fewer new projects pick it. It has no Bluesky or HN attention.

  • npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 8.35M vs 5.45M, ratio 1.53
  • dependents.repos: 62,079 repos, 4,069 packages
  • bluesky posts / hackerNews stories: 0 and 0

GPT-6.2 Sol: 5.7, likely 4.6 to 6.8

Ecosyste.ms found about 62,000 dependent repositories and 4,100 dependent packages, a larger repository footprint than c12 or Convict and far smaller than dotenv. Four-week downloads rose from 5.45 million to 8.35 million, but the 1.53× ratio trails the 4.1× catalog median and every listed peer, so it is losing ground by this measure. Partial repository coverage and automated installs leave the number of new direct choices uncertain.

  • dependents repos and packages; peers dependentRepos: Substantial repository use among layered loaders.
  • npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo; medianDownloadsRatio: Downloads grew 1.53× against a 4.1× baseline.
  • peers downloadsLast4Weeks and downloadsSame4WeeksYearAgo: Year-over-year download growth trails every listed peer.
Vouched for5.9

Who stands behind it being good?

Claude Opus 5.5: 5.0, likely 3.5 to 6.5

Many production codebases have used it for over a decade, and comparison sites list it as the established option. I found no current survey, benchmark or well-known company endorsement of it. Most of its validation is old use rather than present praise.

GPT-6.2 Sol: 6.7, likely 5.5 to 7.8

PeerTube documents using node-config in production and lists v5.0.1 in its current source. ONLYOFFICE Docs also documents using it to load and merge server settings. Those are two concrete production examples, while independent evidence on current satisfaction and comparative performance is sparse.

Safe7.2

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 5.5 to 8.0

It has no OSV advisories, one runtime dependency and an MIT licence. A prototype pollution report on Util.extendDeep (#938) and an older property-shadowing security issue are still open, and there is no Scorecard. Releases come from a single publisher.

GPT-6.2 Sol: 7.3, likely 6.0 to 8.6

The MIT-licensed package has one required runtime dependency, and OSV lists zero advisories. GitHub shows no security policy, and an open issue groups reports involving an older release, with unclear relevance to v5.0.1. The registry snapshot lists three collaborators, while current publishing safeguards remain unverified and the bundle has no Scorecard.

Good

  • It layers default, environment, host and local config files in a mature, well-understood way, and maps environment variables onto config keys.
  • It reads many file formats (JSON, JSON5, YAML, TOML, JS and more) through one get/has API that throws on missing keys.
  • It is still maintained in 2026, with 11 releases in the last year, ESM support in v5.0 and only 9 open issues.
  • It has a very large installed base, with about 62k dependent repos, and only one runtime dependency.

Bad

  • It has no schema validation and no typed config object, while convict, envalid, T3 Env and Varlock do.
  • The v5 switch to ESM left open problems: it does not work with Jest (#930), and users report weaker type safety after @types/config was removed (#913).
  • Downloads grew only about 1.5x in a year, against a 4.1x median, so its share of new projects is falling.
  • One maintainer publishes all releases, and a prototype pollution report on Util.extendDeep is still open.

The numbers

npm downloads, 4 weeks
8.4M +53% in a year
GitHub stars
6.4k
Commits, 12 months
111
npm version
5.0.1 Aug 2026
Versions, 12 months
8
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
None
Licence
MIT

Read on 21 November 2026 from GitHub (node-config/node-config), npm (config), OSV and the OpenSSF Scorecard.

Config and environment variables

  1. 7.5Varlock
  2. 7.2T3 Env
  3. 7.0dotenvx
  4. 7.0c12
  5. 6.8dotenv
  6. 6.6envalid
  7. 6.5cosmiconfig
  8. 5.9node-config
  9. 4.6convict
Compare all 9 on six scores