library
Zod
The best runtime type validation for TypeScript, but with limited use cases
8.2Overall
Utility8
Onboarding8
Craft9
Niche fit8
Longevity8
Five dimensions scored independently; overall is a weighted average. Scores are only comparable within this same rubric.
Good for
TypeScript projects needing runtime type safety
Not for
Pure JS projects or cases without runtime type needs
Project description
TypeScript-first schema validation. Runtime type checking mirroring TS types. Works with tRPC, React Hook Form, etc. Tiny and fast.
Alternatives
yupio-tsajv