arkenv
Originally fromyamcodes/arkenv
Installation
SKILL.md
ArkEnv
ArkEnv is a typesafe environment variable validation library for modern JavaScript and TypeScript frameworks. It provides a single canonical surface across all frameworks: import { env } from "./env".
In v1, ArkEnv offers two first-class validation engines:
@arkenv/core: Built-in ArkType DSL engine for high-performance schema definition and automatic coercion.@arkenv/standard: Standard Schema engine supporting any compliant validator (Zod, Valibot, etc.).
Capabilities
Core usage
- Define typesafe schemas using
@arkenv/coreArkType DSL strings or@arkenv/standardwith Zod / Valibot. - Automatic coercion (
string.numeric,number.port, booleans, JSON objects, arrays) and default values ("boolean = true"). - Single, uniform developer experience: import
envdirectly across frontend and backend code.