compare

class-validator vs Yup

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

class-validator vs Yup
Factclass-validatorYup
LanguageTypeScriptTypeScript
LicenceMITMIT
Stars12k24k
Latestv0.15.1v1.0.0
Last push2026-03-252026-11-22
Release cadenceabout 47 days between releasestoo few releases
Active contributors0 commit authors on the default branch in the last 90 days0 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 replacementYupChained schema builders with validation and casting, for browsers and Node.js.