compare
class-validator vs Joi
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | class-validator | Joi |
|---|---|---|
| Language | TypeScript | JavaScript |
| Licence | MIT | Other |
| Stars | 12k | 21k |
| Latest | v0.15.1 | v18.2.9 |
| Last push | 2026-03-25 | 2026-09-11 |
| Release cadence | about 47 days between releases | too few releases |
| Active contributors | 0 commit authors on the default branch in the last 90 days | 4 commit authors on the default branch in the last 90 days |
| Flags | none | none |
How they relate
class-validator replaces Joi. Alternatives to Joi →
PartialValidation rules declared as decorators on TypeScript classes instead of a schema object.
class-validator
- v0.15.12026-02-26chore: publish 0.15.0 for real
- v0.15.02026-02-26feat: add IsISO31661Numeric decorator for country codes
- v0.14.42026-02-25build(deps-dev): bump js-yaml from 3.14.1 to 3.14.2 by @dependabot[bot] in
- v0.14.32025-11-24build: update validator to 13.15.20
- v0.14.22025-05-02fix: forbidUnknownValues should default true when validatorOptions undefined
Joi
This repository publishes tags, not GitHub releases.
class-validator
✓ signed The latest release, v0.15.1, carries a signature GitHub verified.
Loading the security report
Joi
unsigned The latest release, v18.2.9, carries no signature GitHub could verify.
Loading the security report