ArkEnvRC
DocsBlogRoadmapPlayground
GitHub
DocsBlogRoadmapPlayground
GitHub
IntroductionWhy ArkEnv?Getting startedCore conceptsFrameworksValidatorsGuidesAPI referenceCommunityChangelog
OverviewUsing AI with ArkEnvUsing ArkEnv with NestJSUsing ArkEnv with NubNext.js and DockerMigrating to v1Migrating from T3 EnvMigrating from a getEnv helper

Guides

Stack recipes, AI tooling, and migration paths for ArkEnv.

Edit on GitHub

Assistants, NestJS, Nub, Docker, and migrations sit in this section. ArkEnv's guides cover those paths, from T3 Env and a getEnv helper through v0.

Framework and validator setups live in their own sections. Start here when the question is a migration or a host recipe.

Using ArkEnv with NestJS

Validate environment variables in NestJS with a fail-fast env module.

Using ArkEnv with Nub

Load .env with Nub and validate earlier with preload, arkenv check, or script gates.

Next.js and Docker

Bake-time NEXT_PUBLIC_* values, runtime secrets, and ecosystem options for no-rebuild public env.

Using AI with ArkEnv

Install the plugin. Skill only if the host cannot load plugins.

Migrating to v1

Swap v0 packages and move Vite or Bun onto import { env } from ./env.

Migrating from T3 Env

Move createEnv and runtimeEnv setups to ArkEnv.

Migrating from a getEnv helper

Graduate from a 12-line presence check helper to typed coercion and boundary enforcement.

PreviousValibotNextUsing AI with ArkEnv
Edit this page
Enjoying ArkEnv?Leave a star on GitHubv1.098%
ArkEnvRC

Typesafe environment variables with ArkType, Zod, or Valibot.

Resources

  • Docs
  • Blog
  • Changelog
  • Why ArkEnv?
  • Community

Validators

  • ArkType
  • Zod
  • Valibot

Frameworks

  • Next.js
  • Vite
  • Nuxt
  • TanStack Start
  • Bun
  • Vanilla TS

Elsewhere

  • GitHub
  • npm
  • Skills
  • X
Free and open-source under the MIT License© 2025-present Yam Borodetsky