joi vs yup

NPM Package Comparison - Which one should you use?

joi

🏆Most Popular📘TypeScript

Object schema validation

View Repository →
npm install joi

yup

ðŸ“ĶSmallest⭐Most StarredðŸŠķLightweight📘TypeScript

Dead simple Object schema validation

View Repository →
npm install yup

Download Trends (Last 12 Weeks)

When to Choose Each

👉Choose joi if:

  • ✓You want the most battle-tested solution with a larger community
  • ✓You need actively maintained software with recent updates

👉Choose yup if:

  • ✓Bundle size is critical for your project
  • ✓You prefer fewer dependencies to reduce supply chain risk

Comparison

Metricjoiyup
Weekly Downloads23.5M12.6M
GitHub Stars21.2k23.7k
Bundle Size1.9 MB270.4 KB
Dependencies74
Last Updated1 months ago10 months ago
TypeScriptYesYes
LicenseBSD-3-ClauseMIT
Version18.2.31.7.1

Related Comparisons