10 Best JavaScript Data Validation Libraries

List hand-picked by Openbase Experts
Learn More

ajv

The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.3/ 5
10
Top Feedback
2Great Documentation
2Easy to Use
1Performant
GitHub Stars
10K
Weekly Downloads
62M
Last Commit
1mo 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

express-validator

An express.js middleware for validator.js.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.7/ 5
17
Top Feedback
12Easy to Use
11Great Documentation
9Performant
GitHub Stars
5K
Weekly Downloads
378K
Last Commit
1mo ago
niv

node-input-validator

Validation library for node.js

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.9/ 5
18
Top Feedback
10Great Documentation
9Easy to Use
5Performant
GitHub Stars
67
Weekly Downloads
5K
Last Commit
3mos ago
val

validatorjs

A data validation library in JavaScript for the browser and Node.js, inspired by Laravel's Validator.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
3
Top Feedback
1Great Documentation
1Easy to Use
1Highly Customizable
GitHub Stars
2K
Weekly Downloads
48K
Last Commit
1yr ago
val

valivar

Javascript/Typescript schema-based validation and sanitation

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
4
Weekly Downloads
6
Last Commit
4mos ago

swagger-parser

Swagger 2.0 and OpenAPI 3.0 parser/validator

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

decoders

Elegant validation library for type-safe input data (for TypeScript and Flow)

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

openapi-validator-middleware

Input validation using Swagger (Open API) and ajv

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
124
Weekly Downloads
126K
Last Commit
2mos ago
jre

json-rules-engine

A rules engine expressed in JSON

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

express-json-validator-middleware

Express middleware for validating requests against JSON schema

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

schema-typed

Schema for data modeling & validation

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

celebrate

A joi validation middleware for Express.

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

express-openapi-validate

Express middleware to validate requests based on an OpenAPI 3 document

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
70
Weekly Downloads
9K
Last Commit
9mos ago
ev

express-validation

express-validation is an express middleware that validates a request and returns a response with errors; if any of the configured validation rules fail.

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

openapi-enforcer-middleware

An express middleware that makes it easy to write web services that follow an Open API specification.

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
16
Weekly Downloads
2K
Last Commit
10mos ago
zem

zod-express-middleware

Express middleware to validate requests using zod schema's.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
5
Weekly Downloads
197
Last Commit
6mos ago
isv

isvalid

Asynchronous JavaScript validation library for Node.js and browsers.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
47
Weekly Downloads
397
Last Commit
2mos ago
ed

express-dry

Express.js Body, Query and Params validator based on https://github.com/uditkarode/drytype

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

express-oas-validator

Express OpenAPI Specification (OAS) middleware validator

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
5
Weekly Downloads
86
Last Commit
3mos ago

openapi-data-validator

OpenAPI Request Validation for API for any framework

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
376
Last Commit
8mos ago
efv

expressjs-field-validator

Plugin for validating JSON request, middleware for expressjs

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
47
Last Commit
1mo ago
uv

uv

Ultrafast UTF-8 data validation

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

evalidate

An easy to use Object Schema Validator

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
50
Last Commit
2mos ago
con

contracts

Validation library to define and validate JSON Schemas for functions and express handlers. Supports filters.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
6K
Last Commit
N/A
ske

skema

🛰 Skema provides a handy & composable way to validate / transform / purify the input data.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
360
Weekly Downloads
6K
Last Commit
2yrs ago

openapi-model-validator

OpenAPI Request Validation for API for any framework

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
62
Last Commit
8mos ago
duc

ducktype

Flexible data validation using a ducktype interface. For JavaScript and Node.js.

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
83
Weekly Downloads
4K
Last Commit
1yr ago
cv

csrf-validator

CSRF Validator for Node.js

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

valid.js

📝 A library for data validation.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
608
Weekly Downloads
545
Last Commit
4mos ago
bev

bevor

Bevor is payloads / HTTP request validator

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
5
Last Commit
3mos ago
ve

validata-express

Type safe data validation and sanitization for Express

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
14
Last Commit
3mos 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
nv

node-validator

A simple, extensible object property validator for node.js. Supports express.js.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
963
Last Commit
N/A
fev

fastest-express-validator

fastest-express-validator

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

mevn-validator

simple validator for express js

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

express-sns-validator

ExpressJS middleware for verifying Amazon SNS notifications using sns-validator

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

@taraj/express-validator

Lightweight & powerful express validator designed for Typescript.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
18
Last Commit
6mos ago
efv

express-fileupload-validator

Validator for express-fileupload package

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

express-validator-middleware

form validator middleware for express.js

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

aev

Another Express Validator

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
2
Weekly Downloads
16
Last Commit
9mos ago

@nanots/guard

Smallest data validation library ever made

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

express-tguard

Minimalistic schema validation express middleware for TypeScript

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

typology

A data validation library for Node.js and browser

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

web-validate

Validate API requests and responses

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

datalize

Parameter, query, form data validation and filtering for NodeJS.

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

@wastimy/joi-middleware

An express middleware function that wraps the joi validation library. This allows you to use this middleware on route to ensure that all received inputs are correct before any handler function

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
18
Last Commit
7mos ago
acc

accurized

a fluent interface on top of the validator node module

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

express-transformer

An express transformation, validation library

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

galaxy-validator

a galaxy validator in node js

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
16
Last Commit
1yr ago