yamcodes/arkenv
yamcodes/arkenv has 151 GitHub stars and 6 forks. Star changes are not measured yet. Last checked 2026-11-13 21:45 UTC. Last push 2026-11-13.
What you can do
- Zero runtime dependencies
- Works in Node.js and all modern browsers
- Tiny: under 3 kB core bundle (gzipped)
- Use your existing TypeScript validator
Crecimiento de estrellas medido
- in 24h
- Recopilando historial
- in 7 days
- Recopilando historial
- in 15 days
- Recopilando historial
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
Acerca de
⛯ Typesafe environment variables with ArkType, Zod, or Valibot.
Herramientas de desarrolloREADME.md
OriginalArkEnv
Typesafe environment variables with ArkType, Zod, or Valibot.
ArkEnv v1 is in RC. Read the release notes and migration guide.
Read the docs →
What is ArkEnv?
Define your environment variables with a schema. ArkEnv gives you a strongly typed, validated env object you can use everywhere.
ArkType
import arkenv from "@arkenv/core";
export const env = arkenv({
DATABASE_URL: "string.url",
PORT: "0 <= number.integer <= 65535 = 3000",
CI: "boolean = false",
});
Zod
import arkenv from "@arkenv/standard";
import * as z from "zod";
export const env = arkenv({
DATABASE_URL: z.url(),
PORT: z.int().min(0).max(65535).default(3000),
CI: z.boolean().default(false),
});
Valibot
import arkenv from "@arkenv/standard/valibot";
import * as v from "valibot";
export const env = arkenv({
DATABASE_URL: v.pipe(v.string(), v.url()),
PORT: v.optional(
v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(65535)),
3000,
),
CI: v.optional(v.boolean(), false),
});
| ArkEnv | Instead of |
|---|---|
| Your existing TypeScript validator | A custom .env.schema DSL |
arkenv({ ... }) |
A hand-rolled wrapper around Zod |
One typed env object |
Casting process.env |
Features
- Zero runtime dependencies
- Works in Node.js and all modern browsers
- Tiny: under 3 kB core bundle (gzipped)
- Use your existing TypeScript validator
- No boilerplate
- Automatic coercion
- Fail-fast startup errors with redacted values
- One
envobject: Next.js, Nuxt, Vite, TanStack Start, SolidStart, and Bun
Getting started
npx arkenv init
The CLI walks you through setup for an existing project, or starts a new one from an example.
Supporting ArkEnv
If you love ArkEnv, you can support the project by starring it on GitHub!
You are also welcome to contribute to the project and join the wonderful people who have contributed:
Yam C Borodetsky 💻 💬 🤔 🎨 📖 🐛 💡 🚇 🔌 🔧 ⚠️ |
Aruay Berdikulova 💻 🤔 |
David Blass 🤔 🧑🏫 💬 |
Andrei Danciu 🔌 💻 |
Joakim Carlstein 💻 🔌 📖 |
RoomWithOutRoof 📖 🔧 |
Abhimanyu Tiwari 💻 📖 💡 ⚠️ 🔧 |
We acknowledge the various projects and people that inspired ArkEnv.
Explorar proyectos relacionados
codecrafters-io/build-your-own-x
Domina la programación recreando desde cero tus tecnologías favoritas.
562,340 estrellaspublic-apis/public-apis
Una lista colectiva de API gratuitas
498,777 estrellasmorluto/rea
Ingeniería inversa de cualquier cosa con agentes, desde el comportamiento de la aplicación hasta los binarios nativos.
457,534 estrellasopenclaw/openclaw
La IA que de verdad hace las cosas. Cualquier sistema operativo y cualquier plataforma. Al estilo langosta. 🦞
394,398 estrellas