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.
Tip
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* | ✅ | ❌ |
| Standard Schema | ✅ | ✅ |
| Automatic coercion | ✅ | ❌ |
| Works without ArkType | ❌ | ✅ |
* ArkEnv extends ArkType with custom keywords like string.host and number.port
✅ 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).