arkenv/standard
The ArkType-free entry point for Standard Schema validators.
arkenv/standard is the ArkType-free entry point. Use it when you want Standard Schema validators (Zod, Valibot, etc.) without pulling in ArkType as a dependency.
Already using ArkType? You can still use Zod, Valibot, and other Standard Schema validators alongside it. See Standard Schema validators.
When to use it
| Feature | arkenv | arkenv/standard |
|---|---|---|
| ArkType DSL | ✅ | ❌ |
| ArkEnv keywords¹ | ✅ | ❌ |
| ArkEnv plugins | ✅ | ❌ |
| Automatic coercion | ✅ | ✅² |
| Standard Schema | ✅ | ✅ |
| Works without ArkType | ❌ | ✅ |
¹ ArkEnv extends ArkType with custom keywords like string.host and number.port
² Only works with Standard JSON Schema validators like Zod 4, Zod Mini and Valibot - see Coercion
✅ Built-in / first-class support
❌ Not supported
In a new project, prefer
arkenv.arkenv/standardexists for migrations and ArkType-free setups.
Usage
import from 'arkenv/standard';
import { } from 'zod';
const = ({
: ..().().(0).(65535),
: .(),
});Requirements
A validator that implements Standard Schema (e.g. zod@>=3.24.0, valibot@^1.0.0).