joi vs valibot

Side-by-side comparison of joi and valibot

joi v18.0.2 BSD-3-Clause
Weekly Downloads
16.4M
Stars
21.2K
Gzip Size
60.2 kB
License
BSD-3-Clause
Last Updated
2mo ago
Open Issues
186
Forks
1.5K
Unpacked Size
557.3 kB
Dependencies
7
valibot v1.2.0 MIT
Weekly Downloads
5.8M
Stars
8.4K
Gzip Size
13.4 kB
License
MIT
Last Updated
3d ago
Open Issues
136
Forks
304
Unpacked Size
1.7 MB
Dependencies
1

Download Trends

Download trends for joi and valibot015.2M30.4M45.6M60.9MFeb 25May 25Aug 25Nov 25Feb 26
joi
valibot

Verdict

joi is a well-established library focused on object schema validation and has a large user base, making it suitable for projects that need comprehensive validation functionality. valibot, on the other hand, offers a modular and type-safe approach, ideal for TypeScript developers looking for runtime validation with a focus on structural data.

For teams experienced with validation libraries and needing robust features, joi would be a strong choice given its extensive documentation and community support. Conversely, valibot may be preferable for new projects that emphasize modularity and type safety, especially if the team is familiar with TypeScript.

It's worth noting that joi has a larger footprint compared to valibot, which may influence decisions for projects sensitive to bundle size. Additionally, the long-term support and updates for joi, reflected in its active development, may provide a more stable choice for large-scale applications.

Detailed Comparison

Criteria joi valibot
Topics Covers schema and validation Focuses also on type safety and modular design
License Uses BSD-3-Clause Uses MIT
Version Latest version is 18.0.2 Latest version is 1.2.0
Categories Dedicated to Validation Categorized under Validation as well
Description Object schema validation Modular and type safe schema library
Open Issues 186 open issues requiring some attention 136 open issues suggesting better maintenance
GitHub Forks 1.5K forks suggesting active contributions 304 forks indicating less community development
GitHub Stars 21.2K stars indicating strong community interest 8.4K stars showing decent support
Unpacked Size 557.3 kB which is relatively lightweight 1.7 MB indicating a heavier package
Weekly Downloads Highly popular with 16.4 million Moderately popular with 5.8 million
Bundle Size (gzip) 60.2 kB which is larger 13.4 kB which is minimal

Related Comparisons