Varlock
A strong pick. 1st of 9 config and environment variables.
Varlock is a young, very active toolkit built around a committed `.env.schema` file. That one file declares types, validation, sensitive flags and secret-manager lookups, and the tool adds type generation, log redaction and leak scanning. It is a strong pick for teams that want typed config and secrets from vaults with one tool. Its track record is under two years and independent proof that it holds up in production is still thin.
Best for: 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.
Scores
Overall7.5
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Among the peers, Varlock does the most complete job. Its schema covers validation, types and vault-backed secrets, which dotenv lacks entirely and T3 Env or envalid cover only partly. It is actively developed and funded. It is held back from 8 by its short history, a single npm publisher, a business model that is still forming and thin independent proof of production use. It is a strong pick for TypeScript teams that ship apps with real secrets, while dotenv or T3 Env remain simpler for basic needs.
- thoughtworks.com/radar/tools/varlock: Credible, but only an Assess recommendation.
- betterstack.com/community/guides/scaling-nodejs/varlock-env-schema: Independent guide to the full workflow.
- github commitsLastYear: High activity supports durability.
- peers: Far smaller reach than dotenv, dotenvx and T3 Env.
GPT-6.2 Sol: 7.9, likely 6.8 to 8.9
Varlock is a strong choice when a new project needs typed validation, vault-backed secrets, and the same schema across development and deployment. Active development and rapid growth support that recommendation. Dotenv is simpler for basic file loading, and T3 Env fits teams that want to keep validation in TypeScript. Varlock's short stable history and limited evidence of sustained production use keep it below a category-wide default.
- github.com/dmno-dev/varlock/releases/tag/varlock%401.25.0: Current core release shows sustained work on correctness and diagnostics.
- thoughtworks.com/en-us/radar/tools/varlock: Independent evaluation supports the multi-environment secrets workflow.
- github.com/motdotla/dotenv: Established peer focused on loading environment files.
- env.t3.gg/docs/introduction: Peer with TypeScript schemas and support for common validators.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, versionsLastYear, dependents, peers: Strong growth and release activity, with direct adoption still hard to size.
Needed by many6.8
How many developers need a tool for this job?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Almost every deployed JS/TS app loads env vars and secrets. Varlock's approach of schema, validation and vault lookups fits most web apps and services that ship to production. It is overkill for throwaway scripts, and some features are JS-only, so it is a bit narrower than the whole category.
- blog.openreplay.com/safer-env-vars-web-apps-varlock: Says it is overkill for throwaway scripts and aimed at apps that ship to production.
- syntax.fm/show/985/stop-putting-secrets-in-env/transcript: The maintainers say redaction and type generation are JS/TS-only for now.
GPT-6.2 Sol: 6.5, likely 5.3 to 7.6
Environment loading and validation serve a large group of JS and TS developers who build servers and full-stack apps. The standalone CLI and framework integrations extend Varlock across stacks, while a shared schema and vault integration pay off most for teams with several environments or services. The developer survey gives runtime context and leaves demand for this workflow unmeasured.
- survey.stackoverflow.co/2026/technology/data: Node.js and full-stack frameworks are widely used among survey respondents.
- varlock.dev/getting-started/usage: Framework integrations, JS and TS loading, and a CLI that wraps arbitrary commands.
- varlock.dev/guides/monorepos: Shared schemas and incremental adoption across packages.
Helps a lot8.0
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Varlock covers more of the job than any peer. It loads and checks env vars, coerces types and generates them, resolves secrets from vaults through plugins, redacts secrets in logs, scans for leaks, and integrates with the major frameworks. It also publishes llms-full.txt and MCP docs servers, which helps AI coding agents write correct code for it. The range stays open because the tool is young, its decorator DSL is new to agents and people, and its independent reviews are mostly tutorials, not reports from heavy production use.
- github.com/dmno-dev/varlock: README lists the feature set, about 15 secret plugins and the framework integrations.
- betterstack.com/community/guides/scaling-nodejs/varlock-env-schema: Independent tutorial on schema-driven, type-safe env management.
- thoughtworks.com/radar/tools/varlock: Describes the schema, runtime vault injection and credential proxy for agents.
- npm hasTypes: Ships TypeScript types.
GPT-6.2 Sol: 8.4, likely 7.2 to 9.2
Varlock 1.25.0 combines layered loading, coercion, generated types, useful validation errors, and vault plugins. The release fixes several resolver and output-handling bugs, and the project provides detailed setup guides for coding agents. An adopter found the additional schema language costly for a small Zod-based app, where T3 Env can reuse familiar validators. Comparative performance and agent accuracy remain lightly tested in public.
- github.com/dmno-dev/varlock/releases/tag/varlock%401.25.0: Stable release with resolver performance, diagnostics, and output fixes.
- varlock.dev/guides/schema: Schema-driven validation, coercion, and type generation.
- varlock.dev/guides/ai-tools: Project-scoped schema guidance and examples for coding agents.
- betterstack.com/community/guides/scaling-nodejs/varlock-env-schema: Hands-on examples show key-level errors, Vite injection, and vault integration.
- linkedin.com/posts/andrecasal_i-added-varlock-to-durabl-it-worked-im-activity-7507130168029700096-k4GO: Durabl tested Varlock successfully and returned to Zod to simplify its setup.
- env.t3.gg/docs/introduction: T3 Env supports existing Standard Schema validators in TypeScript.
Holds up over time7.4
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 5.5 to 8.0
The project is very active. It had 697 commits and 431 releases across its packages in the last year, and it has 57 contributors and 816 merged pull requests. A company with investors and runway pays for the work, and the project joined the GitHub Secure Open Source Fund. The risks are that it is a startup that plans a paid hosted product, that one npm account publishes it, and that it has a short history.
- github commitsLastYear / releasesLastYear: 697 commits and 431 releases in the last year.
- github contributors: 57 contributors, 234 closed vs 50 open issues.
- syntax.fm/show/985/stop-putting-secrets-in-env/transcript: Maintainers say they have investors and runway, plan paid hosted features and promise no rug pull.
- pkgstats.com/pkg:varlock: One npm maintainer listed.
GPT-6.2 Sol: 7.7, likely 6.4 to 8.8
The core package published 62 versions in a year, and the repository merged 816 pull requests with 57 contributors recorded. The November release includes fixes from multiple contributors, and a maintainer answered a July type-generation request the same day, with the request still open. DMNO Inc. is a small maintainer, and GitHub's security grant was time-limited. The core reached stable in April 2026, so release ownership and upgrade compatibility have a short track record.
- npm versionsLastYear, github commitsLastYear, contributors, mergedPullRequests: 62 core versions, 697 repository commits in a year, 57 contributors, and 816 merged pull requests.
- github.com/dmno-dev/varlock/releases/tag/varlock%401.25.0: Recent core fixes credit several contributors and retain a deprecated type alias.
- github.com/dmno-dev/varlock/issues/925: Same-day maintainer response on an open type-generation request.
- varlock.dev/about: Small company DMNO Inc. maintains the project.
- github.blog/open-source/maintainers/securing-the-ai-software-supply-chain-security-results-across-67-open-source-projects: Varlock participated in a 12-month GitHub security funding program.
- varlock.dev/blog/april-2026-recap: The core reached 1.0 in April 2026.
Used widely5.2
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 3.5 to 6.5
Downloads rose from about 3.4K to about 2.4M per 4 weeks. That ratio is far above the 4.1 median, but it is probably inflated by CI installs or a few large adopters, and ecosyste.ms has no dependents count. Nearly 5K stars in 19 months and a Thoughtworks Radar entry show real and fast-growing attention. Direct use is likely tens of thousands of projects at most, far behind dotenv, dotenvx and T3 Env.
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 2,395,484 vs 3,361, a very steep rise.
- github stars: 4,985 stars, close to dotenvx (5,882) and above T3 Env (4,028).
- dependents: null, so there is no independent use count.
- security.snyk.io/package/npm/varlock: Snyk reported only a few thousand weekly downloads at an earlier snapshot.
GPT-6.2 Sol: 5.4, likely 3.7 to 7.0
Four-week npm downloads rose from 3,361 to 2.40 million, about 713 times the prior year and far above the 4.1-times median. Downloads still trail envalid and T3 Env, while eight Bluesky posts are the highest count in this peer set. Repeat installs and integrations can inflate downloads, and the missing dependent count leaves the number of projects choosing Varlock uncertain.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: About 713-fold growth from a small base, well above the 4.1-fold median.
- peers, github stars, bluesky posts, dependents: About 5,000 stars and eight Bluesky posts, with no dependent count available.
- github.com/dmno-dev/varlock/blob/main/packages/integrations/vite/CHANGELOG.md: The Vite integration installs Varlock as a dependency.
- github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md: A named project directly uses Varlock in local development and tests.
Vouched for5.8
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 3.5 to 6.5
Thoughtworks Tech Radar put it in Assess in November 2026. It got a Syntax.fm episode and a Josh Comeau post, independent guides from Better Stack and OpenReplay, and a place in the GitHub Secure Open Source Fund. No well-known company says publicly that it runs Varlock in production, and it does not appear in the surveys. The guides are tutorials, not critical evaluations.
- thoughtworks.com/radar/tools/varlock: Tech Radar Nov 2026, Assess ring.
- blog.openreplay.com/safer-env-vars-web-apps-varlock: Positive, but calls it a newer tool, not an established standard.
- bluesky top: Josh Comeau recommended it; only 8 posts in total.
- hackerNews: 2 small stories with almost no discussion.
GPT-6.2 Sol: 6.5, likely 5.2 to 7.8
Thoughtworks put Varlock in Assess in November 2026 and found its approach useful for replacing ad hoc secret-injection scripts. Trigger.dev uses it for local development and tests, and independent engineers have documented working setups. Evidence of sustained production adoption and developer retention remains limited.
- thoughtworks.com/en-us/radar/tools/varlock: Current enterprise evaluation at the Assess level.
- github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md: Uses Varlock for local development, tests, and database commands.
- schalkneethling.com/posts/stop-storing-secrets-on-disk-replace-your-env-with-varlock-and-1password: First-hand migration from a local env file to Varlock with 1Password.
- betterstack.com/community/guides/scaling-nodejs/varlock-env-schema: Independent walkthrough demonstrates validation and integration behavior.
Safe7.4
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 5.5 to 8.5
The package has no advisories, zero runtime dependencies and an MIT licence. It takes part in the GitHub Secure Open Source Fund, and its own monorepo tooling uses OIDC publishing. There is no OpenSSF Scorecard and one npm maintainer is listed. It handles secrets and ships very often, so a compromised release would do serious harm.
- advisories total: 0 advisories.
- npm dependencies: 0 runtime dependencies.
- scorecard: No Scorecard data.
- bluesky top (theozero): The maintainer mentions OIDC publishing settings for the monorepo.
- pkgstats.com/pkg:varlock: One npm maintainer; Snyk shows no known vulnerabilities.
GPT-6.2 Sol: 7.8, likely 6.4 to 8.9
The MIT-licensed core has zero required npm dependencies, with optional native helpers and separately installed vault plugins. GitHub Actions uses npm trusted publishing, and the project documents private vulnerability reporting and the limits of redaction. The bundle lists zero advisories and has no OpenSSF Scorecard, leaving little independent evidence of how Varlock handles a reported flaw. Native code, access to plaintext secrets, and security support focused on the latest release all matter when assessing the dependency.
- npm license, dependencies, advisories, scorecard: MIT, zero required dependencies, zero recorded advisories, and no Scorecard result.
- github.com/dmno-dev/varlock/blob/varlock%401.25.0/packages/varlock/package.json: The release manifest lists platform-specific optional native helpers.
- github.com/dmno-dev/varlock/blob/main/.github/workflows/release.yaml: GitHub Actions uses npm trusted publishing with OIDC.
- github.com/dmno-dev/varlock/security: Private reporting, documented redaction coverage, and latest-release security support.
- varlock.dev/guides/secrets: Vault plugins and documented handling of secrets in the application process.
Good
- One committed `.env.schema` file holds types, validation, docs and sensitive flags, and that replaces `.env.example`.
- About 15 plugins pull secrets at runtime from 1Password, AWS, Azure, GCP, Vault, Infisical, Bitwarden and others.
- It generates TypeScript types and redacts secrets in logs, with integrations for Next.js, Vite, Astro, Nuxt, Expo and Cloudflare.
- The CLI package has no runtime dependencies, no known advisories and a very active release cadence.
Bad
- It is under two years old, and Thoughtworks places it only in the Assess ring.
- Log redaction, leak blocking and type generation work only for JavaScript and TypeScript for now.
- A venture-funded company backs it and has a paid hosted product planned, so its direction depends on that business.
- One npm maintainer publishes it, there is no OpenSSF Scorecard, and it is a secrets tool, which makes it a high-value target.
The numbers
- npm downloads, 4 weeks
- 2.4M ×713 in a year
- GitHub stars
- 5k
- Commits, 12 months
- 697
- npm version
- 1.25.0 Nov 2026
- Versions, 12 months
- 62
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (dmno-dev/varlock), npm (varlock), OSV and the OpenSSF Scorecard.