Elestia Open Source Ratings

Validation libraries

Check that data has the expected shape, and give it a type. We rate 10; Zod leads with 9.0 out of 10.

9.0ZodAny TypeScript team that wants one schema to give both runtime validation and static types, with the widest ecosystem of integrations.8.38.78.39.08.96.7
7.9ValibotTeams shipping validation to browsers, edge functions or shared libraries, where bundle size and speed matter more than having the largest ecosystem.8.18.37.36.26.88.4
7.5TypeBoxBackend teams whose schemas must be real JSON Schema, for Fastify, OpenAPI or Ajv, and who want fast validation.6.98.16.96.77.27.6
7.2ArkTypeTypeScript teams that want the fastest runtime validation and schemas that read like TypeScript types, and that can accept a larger bundle.7.17.97.14.85.98.2
7.1AjvBackend and tooling teams whose contract is JSON Schema or OpenAPI and who need fast, standard-based validation, often paired with TypeBox for types.6.17.65.57.67.86.4
6.2JoiJavaScript-first Node.js back ends, especially hapi apps or codebases that already use Joi and need rich rules and customizable error messages.7.06.86.56.66.86.3
5.6class-validatorNestJS teams that want DTO classes with the built-in ValidationPipe and the patterns in the official docs.4.86.04.46.06.25.9
5.2YupTeams that already run Yup, often with Formik, and want to keep their existing form schemas.7.76.43.66.16.16.1
3.9SuperstructExisting codebases that already use Superstruct and want a tiny validator with no dependencies; new projects should pick Valibot or Zod.7.25.82.44.64.26.2
3.8io-tsExisting fp-ts codebases that already use io-ts codecs and are not yet ready to migrate to Effect Schema.5.26.02.44.43.96.1

The numbers

Read from GitHub, npm and the OSV advisory database on 21 November 2026. Downloads also count build servers and installs by other tools, and they grow for almost every package: for the median project we rate, they are ×4.1 of a year before.

ProjectDownloads, 4 weeksIn a yearGitHub starsCommits, 12 monthsLast npm releaseAdvisories, 24 months
Zod1.8B×8.444k576Oct 20261
Valibot132M×159.1k437Sept 20262
TypeBox657M×2.67k211Jul 20260
ArkType13M×8.57.9k4.6kNov 20260
Ajv2.1B×3.215k8Apr 20261
Joi136M×2.421k79Nov 20266
class-validator70M×3.212k16Feb 20260
Yup65M+92%24k0Sept 20250
Superstruct38M×3.07.1k0Jul 20240
io-ts15M×2.16.8k0Dec 20240