Alternatives · Schema & validation
Alternatives to yup on npm
For validating untrusted input and shaping data. Below are packages that fill the same role — on npm, and across other ecosystems.
npm In npm
zodv4.4.3
npmTypeScript-first schema declaration and validation library with static type inference
MaintenanceHealthy
PopularityUnknown
SecurityClean
DepsZero deps
Maintained. Maintained, actively maintained.
joiv18.2.1
npmObject schema validation
MaintenanceHealthy
PopularityUnknown
SecurityClean
DepsModerate
Maintained. Maintained, actively maintained.
Cross-language equivalents
crates.io· Rust
serdev1.0.228
crates.ioA generic serialization/deserialization framework
MaintenanceAging
PopularityTop 1%
SecurityClean
DepsZero deps
Aging — last published 8 months ago — check before adopting.
validatorv0.20.0
crates.ioCommon validation functions (email, url, length, ...) and trait - to be used with `validator_derive`
MaintenanceAging
PopularityTop 1%
SecurityClean
DepsZero deps
Aging — last published over a year ago — check before adopting.
These suggestions come from a hand-curated concept map of canonical packages per role. They’re intentionally narrow — only widely-adopted packages in each category. Phase 5 will add AI-generated alternatives.