ArkType: Ergonomic TS validator 100x faster than Zod

2 months ago 2

Unparalleled DX

Type syntax you already know with safety and completions unlike anything you've ever seen

Better Errors

Deeply customizable messages with great defaults

Clarity and Concision

Definitions are half as long, type errors are twice as readable, and hovers tell you just what really matters

Faster... everything

100x faster than Zod and 2,000x faster than Yup at runtime, with editor performance that will remind you how autocomplete is supposed to feel

Object Validation, Node v23.6.1

(source)

   Zod 👍 1397 nanoseconds

   Yup 🐌 40755 nanoseconds*

*scaling generously logarithmized

Deep Introspectability

ArkType uses set theory to understand and expose the relationships between your types at runtime the way TypeScript does at compile time

Intrinsic Optimization

Every schema is internally normalized and reduced to its purest and fastest representation

Read Entire Article