{
 "kind": "tool",
 "slug": "t3-oss-env-nextjs",
 "path": "tools/t3-oss-env-nextjs/",
 "name": "T3 Env",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Dev workflow and config",
   "tools/dev-workflow/"
  ]
 ],
 "lead": "Type-safe environment variable validation for Next.js applications with compile-time safety.",
 "chips": [
  {
   "label": "Dev workflow and config",
   "path": "tools/dev-workflow/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @t3-oss/env-nextjs"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/t3-oss/t3-env"
  },
  {
   "label": "Website",
   "href": "https://github.com/t3-oss/t3-env#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/t3-oss/t3-env"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Apr 1, 2026",
   "note": "Latest GitHub release Mar 22, 2026. ",
   "src": "https://github.com/t3-oss/t3-env"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "27 projects",
   "status": "info",
   "sub": "#45 of 299 in its category",
   "note": "Dependency in 27 public GitHub projects set up for AI coding agents that we scanned (0.4%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What T3 Env does",
   "parts": [
    {
     "t": "prose",
     "text": "Type-safe environment variable validation for Next.js applications with compile-time safety."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "T3 Env popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "59",
       "of": "/ 100",
       "l": "Gid Score, #1122 overall"
      },
      {
       "n": "3.7M",
       "l": "downloads a week, npm"
      },
      {
       "n": "4,029",
       "l": "GitHub stars"
      },
      {
       "n": "27",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How T3 Env is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "T3 Env is a dependency in 27 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.6% of the 4,867 JavaScript/TypeScript ones), #45 of 299 in dev workflow and config.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 161; those are left out of every share on this page.",
      "The most used alternative in our scan is dotenv (974 projects).",
      "Projects that use it most often also use Next.js (100.0%), Zod (96.3%), clsx (85.2%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "15 projects, 0.5%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "15 projects, 0.5%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "13 projects, 0.5%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 100.0% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 96.3% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 85.2% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 77.8% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 74.1% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 92.6% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about T3 Env",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/juliusmarminge",
        "9 GitHub sponsors"
       ]
      },
      {
       "title": "More in Dev workflow and config",
       "path": "tools/dev-workflow/",
       "items": [
        {
         "text": "Husky",
         "path": "tools/husky/"
        },
        {
         "text": "python-dotenv",
         "path": "tools/python-dotenv/"
        },
        {
         "text": "lint-staged",
         "path": "tools/lint-staged/"
        },
        {
         "text": "concurrently",
         "path": "tools/concurrently/"
        },
        {
         "text": "Rich",
         "path": "tools/rich/"
        },
        {
         "text": "Pydantic Settings",
         "path": "tools/pydantic-settings/"
        },
        {
         "text": "chalk",
         "path": "tools/chalk/"
        },
        {
         "text": "Commander",
         "path": "tools/commander/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "T3 Env",
       "me": true,
       "facts": [
        "MIT",
        "Gid 59",
        "3.7M/wk"
       ]
      },
      {
       "name": "dotenv",
       "why": "Load environment variables from .env files into process.env.",
       "path": "tools/dotenv/",
       "facts": [
        "BSD-2-Clause",
        "Gid 86",
        "288M/wk"
       ]
      },
      {
       "name": "cross-env",
       "why": "Set environment variables across Windows, Mac and Linux in npm scripts.",
       "path": "tools/cross-env/",
       "facts": [
        "MIT",
        "Gid 74",
        "36.9M/wk"
       ]
      }
     ],
     "more": "Compare T3 Env with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @t3-oss/env-nextjs"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for T3 Env yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @t3-oss/env-nextjs"
  ],
  [
   "Category",
   "Dev workflow and config"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "58.7"
  ],
  [
   "Rank in category",
   "#45 of 299"
  ],
  [
   "GitHub",
   "t3-oss/t3-env"
  ],
  [
   "Last change",
   "Apr 1, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/t3-oss.png"
}