# T3 Env: 7.2 out of 10

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

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.

## Scores

- **Overall: 7.2** (likely 6.1 to 8.1)
  - Claude Opus 5.5 (7.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): 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.
- **Needed by many: 6.1** (likely 5.0 to 7.2)
  - Claude Opus 5.5 (6.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): 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 lot: 7.7** (likely 6.6 to 8.7)
  - Claude Opus 5.5 (7.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): 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 time: 5.8** (likely 4.3 to 7.3)
  - Claude Opus 5.5 (6.0): 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.
  - GPT-6.2 Sol (5.6): 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 widely: 5.4** (likely 4.2 to 6.6)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (4.7): 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.
- **Vouched for: 6.4** (likely 5.0 to 7.5)
  - Claude Opus 5.5 (6.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): 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.
- **Safe: 8.2** (likely 7.1 to 9.2)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (8.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

- Downloads, 4 weeks: 23M
- In a year: ×7.2
- GitHub stars: 4k
- Commits, 12 months: 25
- Last npm release: Mar 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/t3-oss/t3-env
- npm: https://www.npmjs.com/package/@t3-oss/env-core

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.
