TypeScript's smallest, fastest validator. One prompt away.
Read the full announcement: Announcing ArkType 3.0
Precompile with @ark/aot
ArkType 3.0 compiles your existing type() definitions into standalone plain JS at build time with zero runtime parser and zero eval or new Function (strict CSP and Cloudflare Workers ready). Dynamic type() still runs with no build step.
Default precompiled build vs Zod 4:
- 15x faster validation (median across 32 scenarios; #1 on public speed benchmarks at 658 vs Typia's 2,097 instructions/validation)
- 21x smaller bundles (
1.21 kBvs25.1 kBgzipped on Valibot's login form, smaller than Valibot's1.56 kB; usepreset: "smallest"for schema-heavy frontends) - 63x lighter startup (
0.69Mvs43.72MCPU instructions on the login app)
Supports Vite, esbuild, webpack, Rspack, Rolldown, Rollup, Bun, Next.js (Turbopack & webpack), plus Node and Bun runtime drivers. See the precompile docs.
Try it or migrate from Zod
# audit a repo for precompilation
npx arktype check
# install the official agent skill to one-shot a Zod migration
npx skills add arktypeio/arktypeAlso in 3.0
- Codecs: bidirectional
.encode()viaarktype/codecs(0 Bif unused), precompiled with@ark/aot - i18n: built-in
en/deand custom locales viaarktype/i18n(dynamic mode) - Errors as data:
out.issuesis a plain array of structured objects with path-freeissue.message - Standard JSON Schema &
fromJsonSchema(): built intoarktype, auto-baked by@ark/aot - Cross-editor support (4 of 5 live): conformance-tested highlighting & inline errors across VS Code, JetBrains IDEs (
arktype.io), and Neovim 0.11+, plus Helix Tree-sitter highlighting (Zed in marketplace review)
Upgrading & changelogs
See the 2.x to 3.0 upgrade guide for breaking changes (including ArkErrors and dynamic bundle size at 120 kB gz).
Package changelogs: arktype · @ark/aot · arkregex · @ark/attest · @ark/fast-check