10 Best Vanilla JavaScript Validation Libraries

List hand-picked by Openbase Experts
Learn More

validator

String validation

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.7/ 5
23
Top Feedback
7Great Documentation
6Easy to Use
3Performant
GitHub Stars
19K
Weekly Downloads
6M
Last Commit
2mos ago

class-validator

Decorator-based property validation for classes.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.6/ 5
8
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
7K
Weekly Downloads
1M
Last Commit
2mos ago

joi

The most powerful data validation library for JS

License Icon
License: BSD-3-Clause
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.5/ 5
49
Top Feedback
18Great Documentation
18Easy to Use
12Performant
GitHub Stars
18K
Weekly Downloads
5M
Last Commit
2mos ago
sup

superstruct

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
6K
Weekly Downloads
386K
Last Commit
3mos ago
yup

yup

Dead simple Object schema validation

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.8/ 5
42
Top Feedback
18Easy to Use
14Performant
12Great Documentation
GitHub Stars
15K
Weekly Downloads
4M
Last Commit
2mos ago
tv

tcomb-validation

Validation library based on type combinators

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
3.0/ 5
2
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
399
Weekly Downloads
646K
Last Commit
4yrs ago

@hapi/joi-date

Joi extensions for dates

License Icon
License: BSD-3-Clause
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
74
Weekly Downloads
33K
Last Commit
10mos ago
v8n

v8n

☑️ JavaScript fluent validation library

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
4K
Weekly Downloads
13K
Last Commit
8mos ago
jpc

joi-password-complexity

Password complexity validation for Joi

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
48
Weekly Downloads
7K
Last Commit
4mos ago
liv

livr

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
147
Weekly Downloads
7K
Last Commit
9mos ago

anchor

High-level validation rules for JavaScript, based on validator.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
152
Weekly Downloads
58K
Last Commit
3yrs ago

joi-phone-number

Phone number validation rule for Joi

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
65
Weekly Downloads
18K
Last Commit
1yr ago
for

@cesium133/forgjs

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
1K
Last Commit
2mos ago

lgtm

Simple object validation for JavaScript.

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
366
Weekly Downloads
756
Last Commit
8mos ago
rev

revalidate

Elegant and composable validations

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
365
Weekly Downloads
11K
Last Commit
4yrs ago
obe

obey

🔨 Asynchronous JavaScript Data Modelling and Validation

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
197
Weekly Downloads
1K
Last Commit
1yr ago
app

approvejs

A simple JavaScript validation library that doesn't interfere

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
337
Weekly Downloads
871
Last Commit
5yrs ago
xty

xtypejs

Elegant, highly efficient data validation for JavaScript.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
361
Weekly Downloads
132
Last Commit
3yrs ago

swagger-validation

A library that validates inputs (based on the swagger-spec packages) against any specifications

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
8
Weekly Downloads
77
Last Commit
2yrs ago
val

validatinator

Simple, yet effective, vanilla JavaScript form validation "library." Validatinator is loosely based off of Laravel's validation system.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
101
Weekly Downloads
48
Last Commit
5yrs ago
iod

iodine

JavaScript framework for modular applications

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
2
Weekly Downloads
0
Last Commit
7yrs ago
if

inspect-form

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

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
134
Weekly Downloads
1
Last Commit
3yrs ago