Validation LibraryCompare in npm Trends

Best Alternatives to zod

TypeScript-first schema validation with static type inference

Why look for an alternative?

Zod is the TypeScript validation standard but adds ~13kB to your bundle. Valibot offers the same type inference at a fraction of the size through tree-shaking.

Current

zod

v4.3.6 · MIT

TypeScript-first schema declaration and validation library with static type inference

Weekly Downloads

102.1M

Bundle (gzip)

57.1 kB

joi

v18.0.2 · BSD-3-Clause

Battle-tested, extremely comprehensive — popular in Node.js/Hapi ecosystem

Weekly Downloads

17.7M

Bundle (gzip)

52.6 kB

TypeScriptNode only

yup

v1.7.1 · MIT

More beginner-friendly API — widely used with Formik

Weekly Downloads

9.9M

Bundle (gzip)

13.1 kB

TypeScriptUniversalBrowser

valibot

v1.2.0 · MIT

Same type inference as Zod at ~1kB — modular, tree-shakeable design

Weekly Downloads

6.3M

Bundle (gzip)

12.6 kB

TypeScriptESMTree-shakeableLightweightActively maintained

arktype

v2.1.29 · MIT

Fastest runtime validation — syntax mirrors TypeScript directly

Weekly Downloads

809K

Bundle (gzip)

44.6 kB

TypeScriptESMLightweightActively maintained

typebox

v1.1.5 · MIT

JSON Schema + TypeScript — great for APIs that need schema sharing

Weekly Downloads

189K

Bundle (gzip)

TypeScriptESMZero deps

See the Full Download History

Compare zod and its alternatives side by side with download trends over time.

Open in npm Trends