compare

class-validator vs Zod

The same facts for both, read from GitHub every night, and the relation a person reviewed.

class-validator vs Zod
Factclass-validatorZod
LanguageTypeScriptTypeScript
LicenceMITMIT
Stars12k44k
Latestv0.15.1v4.6.5
Last push2026-03-252026-10-02
Release cadenceabout 47 days between releasesabout 1 day between releases
Active contributors0 commit authors on the default branch in the last 90 days57 commit authors on the default branch in the last 90 days
Flagsnonenone
  • Both replace Joi. Alternatives to Joi →

    Partialclass-validatorValidation rules declared as decorators on TypeScript classes instead of a schema object.

    Full replacementZodSchema validation with static type inference, for Node.js and browsers.