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.
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.
- npm downloads ratio vs medianDownloadsRatio: 1.53 vs 4.1 median
- github.com/node-config/node-config/issues: Open v5 Jest and types issues
- github.com/node-config/node-config/releases: Active v5 release line
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.
- github.com/node-config/node-config/releases: Recent stable ESM release and follow-up fix.
- docs.joinpeertube.org/maintain/configuration: Production example of the layered-file workflow.
- github.com/af/envalid: Documents startup checks for required and invalid variables.
- nodejs.org/api/environment_variables.html: Documents built-in dotenv file support.
- github.com/node-config/node-config/issues/913: Practical limits of the bundled key types.
- npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo; medianDownloadsRatio: Download growth is below the catalog baseline.
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.
- node-config README: Node-only layered config files per NODE_ENV
- npm-compare.com/config,convict,dotenv,nconf: Described as hierarchical files organized by environment name
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.
- 2025.stateofjs.com/en-US/other-tools: Node.js leads the JavaScript runtime responses.
- github.com/node-config/node-config/wiki/Configuration-Files: Documents deployment, host, and instance layers.
- nodejs.org/api/environment_variables.html: Node.js includes native dotenv file support.
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.
- npm-compare.com/config,convict,dotenv,nconf: A missing key throws, but that is not schema validation
- github.com/node-config/node-config/issues: Open issues: Jest incompatibility in 5.0, type-safety downgrade, TS loading needs ts-node
- github.com/node-config/node-config/releases: v5.0 adds ESM, removes deprecations, tightens immutability
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.
- github.com/node-config/node-config/blob/v5.0.1/README.md: Documents missing-key errors and bundled declarations.
- github.com/node-config/node-config/wiki/Environment-Variables: Shows explicit environment mappings and value parsing.
- github.com/node-config/node-config/wiki/Strict-Mode: Strict mode checks deployment and instance file selection.
- github.com/node-config/node-config/issues/913: Contributor reports weaker checks for dotted keys.
- github.com/OrchestratorInc/agent-orchestrator/issues/1767: Independent project compares layering, validation, and watching.
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.
- github commitsLastYear / releasesLastYear: 111 commits, 11 releases
- github.com/node-config/node-config/releases: jdmarshall published every listed release
- github openIssues: 9 open vs 569 closed
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.
- github commitsLastYear; npm versionsLastYear and latestPublishedAt: 111 commits, eight npm versions, and an August release.
- github.com/node-config/node-config/releases: Recent tags share a releaser, and v5.0.1 fixes async defers.
- github.com/node-config/node-config/releases/tag/v5.0.0: ESM conversion removed deprecated APIs and tightened immutability.
- github.com/node-config/node-config/issues/913: Two maintainers responded to the typing regression.
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.
- dependents.repos: Wide production use over many years
- npm-compare.com/config,convict,dotenv,nconf: Third-party comparison treats it as the established layered option
- developer surveys: Not tracked in State of JS
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.
- docs.joinpeertube.org/maintain/configuration: PeerTube documents its production configuration layers.
- github.com/Chocobozzz/PeerTube/blob/develop/package.json: PeerTube directly depends on config ^5.0.1.
- api.onlyoffice.com/docs/docs-api/get-started/configuration/server-config: ONLYOFFICE Docs uses node-config to merge server settings.
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.
- advisories.total: 0 advisories
- npm dependencies: 1 dependency
- github.com/node-config/node-config/issues: Open prototype pollution issue #938 and security-labelled #795
- scorecard: null, no Scorecard data
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.
- advisories total and last24Months; scorecard: Zero OSV advisories and no Scorecard result.
- github.com/node-config/node-config/blob/v5.0.1/package.json: MIT license and one required dependency, json5.
- github.com/node-config/node-config/security: GitHub shows no policy or published advisories.
- github.com/node-config/node-config/issues/795: Open issue links reports involving older releases.
- npmjs.com/package/config?activeTab=dependents: Older registry snapshot lists three collaborators.
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.