# t3-oss/t3-env

Repository: https://github.com/t3-oss/t3-env
Canonical: https://ross.abutalabs.com/products/t3-env
Homepage: https://env.t3.gg
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-04-01T05:53:58+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 75, release rhythm 75, longevity 87
- inputs: {"age_days": 1228, "days_push": 154, "days_rel": 164, "gap_med": 0.0, "n_releases_24m": 39}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3997, forks 129 (observed 2026-08-28T04:08:31.939056+00:00)

## What it is
A TypeScript library for defining and validating environment variables with full type safety using any Standard Schema compliant validator like Zod or Valibot. It separates server and client variables, prevents accidental exposure of secrets, and works framework-agnostically with Next.js, Nuxt, Vite, and more.

## Use cases
- validate environment variables at build time
- get type-safe autocomplete for process.env
- prevent server env vars leaking to the client
- fail fast when env vars are missing in deployment
- share env validation across Next.js and Nuxt apps
- use zod schemas for environment configuration

## When to choose
- you want compile-time and runtime validation of env vars in a TypeScript app
- you need strict server/client env separation in Next.js or Nuxt
- you want framework-agnostic env validation with Standard Schema support

## When to avoid
- you use plain JavaScript without type checking
- your project has no build step or module bundler
- you only need simple dotenv-style loading without validation

## Facets
- artifact type: library
- maturity: active
- function: configuration-management, form-handling, developer-tools
- domain: web-development, developer-tools, backend, frontend
- platform: bun, cross-platform
- tags: environment-variables, type-safety, zod, standard-schema, nextjs, nuxt, vite, schema-validation, nodejs, deno, typescript

## Member repositories
- t3-oss/t3-env (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:31.939056+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:10.906154+00:00, confidence not recorded.
  - readme: https://github.com/t3-oss/t3-env (fetched 2026-08-28T04:08:31.939056+00:00, sha c764e83d3972)
  - homepage: https://env.t3.gg (fetched 2026-08-29T09:17:37.500031+00:00, sha 07b9b9d39a13)
  - site_page: https://env.t3.gg/docs/introduction (fetched 2026-08-29T09:17:37.508827+00:00, sha 1655bd224915)
  - site_page: https://env.t3.gg/docs (fetched 2026-08-29T09:17:37.510658+00:00, sha 5638441f686b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
