Elestia Open Source Ratings
7.2

T3 Env

A strong pick. 2nd of 9 config and environment variables.

T3 Env (@t3-oss/env-core) checks environment variables against a Zod, Valibot or ArkType schema. You get typed values and a split between server and client variables that stops secrets from leaking into the browser. Today it is a strong pick for typed env checks in TypeScript web apps, especially Next.js. It does not load .env files, and work on it has slowed in 2026.

Best for: 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.

WebsiteGitHubnpm

Scores

Overall7.2

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

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

For typed env validation in TypeScript web apps it is the most widely chosen option, and its share is growing fast. It is simple, safe and has no dependencies. Slower maintenance and some long-open rough edges keep it below 8. Teams that want loading, encryption or a schema shared across languages should look at dotenvx or Varlock. Most people will pair T3 Env with a loader.

GPT-6.2 Sol: 7.3, likely 6.1 to 8.2

T3 Env is a strong pick for new TypeScript full-stack apps that need one typed interface for server and browser variables. For a server-only service, Envalid offers simpler built-in validators, while Varlock covers teams that also need loading and secret delivery. Above-median download growth supports the recommendation, while the release gap and outstanding fixes make future framework support less certain.

  • env.t3.gg/docs/nextjs: Shows the typed server and browser configuration pattern.
  • github.com/af/envalid: Documents built-in validators for server runtimes.
  • varlock.dev: Documents loading, validation, and secret-store integrations.
  • evidence.npm.latestPublishedAt, evidence.npm.downloadsLast4Weeks, evidence.npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: March 2026 release and download growth above the catalog median.
  • github.com/t3-oss/t3-env/pulls: Several fixes for core and framework presets remain open.
Needed by many6.1

How many developers need a tool for this job?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Most apps need to check their env variables, but T3 Env only does typed validation. It does not load or encrypt anything. Its main value, the server/client split, matters most for full-stack web frameworks. The core package works in any runtime, which keeps the score near the middle of the scale.

GPT-6.2 Sol: 6.2, likely 5.0 to 7.3

Runtime configuration checks are useful across web apps and services. The core works across frameworks, and its server and browser split is especially relevant to Next.js, the most widely used meta-framework in State of JavaScript 2025. Its scope is narrower than the category because it relies on another tool or framework to load the values.

Helps a lot7.7

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

Claude Opus 5.5: 7.5, likely 6.5 to 8.5

Type inference is strong. It supports Standard Schema, catches client secrets at build time, and has handy options such as emptyStringAsUndefined, skipValidation, onValidationError and platform presets. Clear limits remain: the duplicated runtimeEnv map in Next.js, no loading of .env files, and long-open issues with presets, Expo and tree-shaking. The API is small, and AI agents know it well from create-t3-app.

GPT-6.2 Sol: 7.9, likely 6.7 to 8.8

Version 0.13.11 gives teams inferred types, schema defaults and transforms, and errors that identify invalid variables. The documentation gives developers and coding agents a clear pattern to follow, though Next.js build-time inlining still trips users up. It handles validation well and leaves loading and secret delivery to other tools. Comparative performance and agent reliability evidence is limited.

Holds up over time5.8

Will it still be a good choice in two years?

Claude Opus 5.5: 6.0, likely 4.5 to 7.5

The project is not archived and sits under the T3 OSS organisation, which has 57 contributors. But it had only 25 commits and 3 npm versions in the last year. The last push was in April 2026 and the last release in March 2026, so activity has slowed. The scope is small and stable, which lowers the risk, and the 0.x version has seen few breaking changes recently. Who will maintain it long term is not clear.

  • github commitsLastYear: 25 commits, pushedAt 2026-04-01
  • npm latestPublishedAt: 0.13.11 on 2026-03-22, 3 versions last year
  • github.com/t3-oss/t3-env/releases: Recent releases are patches and new presets, nothing breaking
  • github openIssues/closedIssues: 25 open, 168 closed; some open since 2023

GPT-6.2 Sol: 5.6, likely 4.1 to 7.1

The repository recorded 25 commits and the core shipped three versions in the past year, with the latest release in March 2026. A fix for missing preset values has been open since April, and a user reported in September that the bug blocked adoption. Recent releases were patches, but earlier upgrades moved preset imports and changed the error handler API. A small publishing team and limited visibility into funded maintenance make the two-year outlook uncertain.

Used widely5.4

How many use it, and is that growing?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Downloads went from 3.2M to 23.2M per 4 weeks, a ratio of about 7.2, well above the 4.1 median, so it is gaining ground. Part of that comes from env-nextjs, env-nuxt and create-t3-app installing env-core. It has 3,482 dependent repos, a little more than envalid and convict, though far fewer than dotenv or node-config. That points to tens of thousands of projects choosing it.

  • npm downloadsLast4Weeks: 23.2M vs 3.2M a year ago (ratio ~7.2)
  • dependents.repos: 3,482 repos vs envalid 2,933, convict 2,529
  • github stars: 4,028 stars

GPT-6.2 Sol: 4.7, likely 3.4 to 6.1

Four-week downloads rose to 23.2 million, 7.2 times the year-earlier figure and above the catalog median of 4.1 times. The Next.js and Nuxt adapters install the core, and CI also generates repeat installs, so direct adoption is harder to estimate. Ecosyste.ms found 3,482 dependent repositories and 18 packages, putting the core ahead of Envalid and Convict by repository count and below c12 and node-config. There is little corroborating social activity.

  • evidence.npm.downloadsLast4Weeks, evidence.npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: 23.2 million versus 3.23 million, or 7.2 times year over year.
  • evidence.dependents, peers: 3,482 sampled repositories and 18 packages depend on the core.
  • evidence.github.stars, evidence.hackerNews, evidence.bluesky: 4,028 stars across the project, no matched HN stories, and one of two Bluesky posts about using T3 Env.
  • npmjs.com/package/%40t3-oss/env-nextjs?activeTab=dependencies: The widely downloaded Next.js adapter installs the core.
  • github.com/t3-oss/t3-env/blob/main/packages/nuxt/package.json: The Nuxt adapter also installs the core.
Vouched for6.4

Who stands behind it being good?

Claude Opus 5.5: 6.0, likely 4.5 to 7.0

It ships in create-t3-app, and open-source apps such as LobeChat use it. Independent guides recommend it as the default for typed env checks in TypeScript and Next.js. Competing libraries copy its design and compare themselves against it. There is no survey data and no visible list of large companies running it, and the Hacker News and Bluesky signal is weak.

GPT-6.2 Sol: 6.8, likely 5.4 to 8.0

Vercel’s next-forge and Singapore’s Open Government Products Starter Kit both build on T3 Env. Onlook uses it in its web app, and independent developers report using it for typed validation alongside their hosting platform. Most visible endorsements come from the Next.js ecosystem, with little direct survey or benchmark evidence.

Safe8.2

How safe is it to depend on?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

It has no runtime dependencies, no known advisories and an MIT licence. It runs only at startup, so the attack surface is small. There is no OpenSSF Scorecard data, and the publishing setup was not checked, which keeps it from the top. One open issue says it pulls TypeScript into production dependencies.

  • npm dependencies: 0 dependencies
  • advisories.total: No advisories
  • scorecard: No Scorecard data
  • github.com/t3-oss/t3-env/issues: Issue #368: TypeScript packaged as prod dependency

GPT-6.2 Sol: 8.4, likely 7.1 to 9.4

The core has a permissive MIT license, zero declared runtime dependencies, and zero recorded OSV advisories. The release workflow uses GitHub Actions with npm trusted publishing and provenance configured. Two listed npm collaborators and the missing OpenSSF Scorecard leave some uncertainty about access controls and repository safeguards.

Good

  • Works with any Standard Schema validator (Zod, Valibot, ArkType), so it fits the schema library you already use.
  • The server/client split and the client prefix catch secrets that would leak into browser bundles, and they catch them when the app builds or starts.
  • No runtime dependencies, small API, full type inference from the schema.
  • Ready-made presets for Vercel, Neon, Vite, WXT and other platforms, plus adapters for Next.js and Nuxt.

Bad

  • It only validates. You still need dotenv, dotenvx or Node's --env-file to load .env files, and it does not handle secrets.
  • In Next.js you must list every variable again in a runtimeEnv map, and that map can drift from the schema.
  • Activity has slowed: 25 commits in the last year, no release since March 2026, and some open issues from 2023 are still unresolved.
  • There are known rough edges with presets, SKIP_ENV_VALIDATION defaults, React Native/Expo and tree-shaking of NODE_ENV.

The numbers

npm downloads, 4 weeks
23M ×7.2 in a year
GitHub stars
4k
Commits, 12 months
25
npm version
0.13.11 Mar 2026
Versions, 12 months
3
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
None
Licence
MIT

Read on 21 November 2026 from GitHub (t3-oss/t3-env), npm (@t3-oss/env-core), 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