OSS Tanbou

T3 Env — validate environment variables and encode server/client boundaries in types

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
4,005
Primary language
TypeScript
License
MIT
Repository last updated
Apr 1, 2026

Overview

T3 Env validates environment variables against schemas at runtime and exposes the validated result through TypeScript types, with explicit separation between server-only and client-visible variables.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Validate environment variables against schemas during startup/build

Required values, URLs, defaults, transforms, and other constraints can fail configuration early rather than at runtime deep inside the application.

Sources: [2][3]

Encode server-only and client-visible variables separately

Client prefixes and runtime environment mappings make the boundary between browser-safe values and server secrets explicit.

Sources: [2][3]

For TypeScript applications that want configuration mistakes caught before production

It suits applications that want to replace raw process.env strings/undefined with validated, inferred configuration values.

Sources: [2]

Account for ESM/module resolution and secret exposure through client bundles

The package is ESM-only, and incorrect client-prefix/runtime configuration can expose secrets. Review framework bundling rules carefully.

Sources: [2][3]

Official sources

  1. [1]t3-oss/t3-env repository(2026-09-21)
  2. [2]T3 Env README(2026-09-21)
  3. [3]T3 Env documentation(2026-09-21)
  4. [4]Standard Schema(2026-09-21)
  5. [5]T3 Env MIT license(2026-09-21)
Supplemental curator note

T3 Env catches missing or invalid environment variables earlier in build/deploy workflows. It is ESM-only and requires module resolution that understands `package.json#exports`. Client-exposed variables must also be configured carefully so server secrets are not accidentally bundled.

Try it in 3 steps

  1. 1

    Get the source

    git clone --depth 1 https://github.com/t3-oss/t3-env.git
  2. 2

    Enter the repository

    cd t3-env
  3. 3

    Check the official steps

    Continue with the commands in the README Installation, Quick Start, or Getting Started section.

    find . -maxdepth 1 -iname 'README*' -exec sed -n '1,220p' {} \; -quit
Check the official README

Growth

Growth trends · Last 30 days

4,005 Stars

Trend data is still being collected.

Development activity

Last 90 days · weekly

Commits (last 30 days)
0
Open PRs
7

Development activity is still being collected.

Built with

Categories and tags

GitHub data

GitHub dataView detailed GitHub data
Stars
4,005
Forks
128
Watchers
6
Open issues
24
Contributors
57
Primary language
TypeScript
License
MIT
Repository last updated
Apr 1, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.