10 Best Vanilla JavaScript Validation Libraries

List hand-picked by Openbase Experts
Learn More

joi

The most powerful data validation library for JS

8.2M
19.8K
Built-in
BSD-3-Clause
validator

String validation

9M
21K
DefinitelyTyped
MIT
yup

Dead simple Object schema validation

4.4M
19.9K
Built-in
MIT
class-validator

Decorator-based property validation for classes.

2.1M
9.1K
Built-in
MIT
sup

A simple and composable way to validate data in JavaScript (and TypeScript).

1M
6.2K
Built-in
MIT
tv

Validation library based on type combinators

1M
400
Built-in
MIT
v8n

☑️ JavaScript fluent validation library

22.5K
4.1K
Built-in
MIT
rev

Elegant and composable validations

12.6K
365
DefinitelyTyped
MIT
liv

Lightweight javascript validator supporting Language Independent Validation Rules Specification (LIVR)

7.5K
151
No support
MIT
for

ForgJs is a javascript lightweight object validator. Go check the Quick start section and start coding with love

1.3K
1.7K
No support
MIT
app

A simple JavaScript validation library that doesn't interfere

1.1K
336
No support
MIT
obe

🔨 Asynchronous JavaScript Data Modelling and Validation

1K
200
No support
MIT
xty

Elegant, highly efficient data validation for JavaScript.

720
361
No support
MIT
lgtm

Simple object validation for JavaScript.

672
368
No support
Apache-2.0
val

Validatinator is a simple, yet effective, HTML form validation library built for JavaScript/Typescript. Validatinator was originally loosely based off of Laravel's validation system.

28
104
Built-in
MIT
if

Form validation in Javascript Vanilla, without dependencies and multiple languages. <3kb gzipped

4
133
No support
{"MIT","GPL"}
Description
Author
License
Type Definitions
ESM Support
Tree Shakeable
Popularity
Downloads/wk
GitHub Stars
Reviews
User Rating
Voted Good Docs
Voted Easy of Use
Voted Performant
Top Positive Review
Top Negative Review
Issues
Total Issues
Open Issues
Avg Time to Close
Pull Requests
Total Pull Requests
Open Pull Requests
Avg Time to Merge
Community
Maintainers
Contributors
Contributors with 3+ commits
Top Committers
GitHub Forks
Versions
# of Versions
Latest
Next
Beta
Newest
Oldest
Major Every
Minor Every
Patch Every
Dependencies
Dependencies
Dev Dependencies
Links
More Info
README
Tutorials
Install Command
There's Nothing Here
No packages are selected.
Select a few packages to compare.