compare

Ajv vs class-validator

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

Ajv vs class-validator
FactAjvclass-validator
LanguageTypeScriptTypeScript
LicenceMITMIT
Stars15k12k
Latestv8.20.0v0.15.1
Last push2026-09-062026-03-25
Release cadenceabout 35 days between releasesabout 47 days between 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 →

    PartialAjvValidates against JSON Schema documents instead of a builder API.

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