# Varlock: 7.5 out of 10

A strong pick. 1st of 9 in [Config and environment variables](https://elestia.ai/opensource/config/index.md).

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

- **Overall: 7.5** (likely 6.4 to 8.5)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (7.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.
- **Needed by many: 6.8** (likely 5.7 to 7.8)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (6.5): 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.
- **Helps a lot: 8.0** (likely 6.9 to 8.9)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (8.4): 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.
- **Holds up over time: 7.4** (likely 6.0 to 8.4)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (7.7): 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.
- **Used widely: 5.2** (likely 3.6 to 6.8)
  - Claude Opus 5.5 (5.0): 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.
  - GPT-6.2 Sol (5.4): 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.
- **Vouched for: 5.8** (likely 4.4 to 7.2)
  - Claude Opus 5.5 (5.0): 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.
  - GPT-6.2 Sol (6.5): 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.
- **Safe: 7.4** (likely 6.0 to 8.7)
  - Claude Opus 5.5 (7.0): 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.
  - GPT-6.2 Sol (7.8): 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.

## 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

- Downloads, 4 weeks: 2.4M
- In a year: ×713
- GitHub stars: 5k
- Commits, 12 months: 697
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/dmno-dev/varlock
- npm: https://www.npmjs.com/package/varlock

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.
