10 Best JavaScript Data Validation Libraries

List hand-picked by Openbase Experts
Learn More

zod

TypeScript-first schema validation with static type inference

1.6M
17.8K
Built-in
MIT
ajv

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

84.6M
12.1K
Built-in
MIT
joi

The most powerful data validation library for JS

7.1M
19.6K
Built-in
BSD-3-Clause
express-validator

An express.js middleware for validator.js.

478K
5.7K
Built-in
MIT
nv

A small, simple, and fast JS validator. Like, wow that's fast. 🚀

3.5K
296
Built-in
MIT
val

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

48.4K
1.6K
DefinitelyTyped
MIT
niv

Validation library for node.js

6K
80
No support
ISC
dec

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

15K
333
No support
MIT
swagger-parser

Swagger 2.0 and OpenAPI 3.0 parser/validator

695K
874
Built-in
MIT
schema-typed

Schema for data modeling & validation

40K
173
Built-in
MIT
cel

A joi validation middleware for Express.

59.7K
1.2K
Built-in
MIT
openapi-validator-middleware

Input validation using Swagger (Open API) and ajv

58.8K
136
Built-in
Apache-2.0
jre

A rules engine expressed in JSON

74.9K
1.9K
Built-in
ISC
ev

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

54.2K
363
Built-in
MIT
ejv

Express middleware for validating requests against JSON schema

14.9K
139
Built-in
MIT
ske

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

10.5K
364
No support
MIT
eov

Express middleware to validate requests based on an OpenAPI 3 document

8.6K
70
Built-in
Apache-2.0
obe

🔨 Asynchronous JavaScript Data Modelling and Validation

2K
200
No support
MIT
openapi-enforcer-middleware

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

1.5K
16
Built-in
Apache-2.0
isv

Asynchronous JavaScript validation library for Node.js and browsers.

678
47
No support
MIT
vj

📝 A library for data validation.

535
607
No support
MIT
ny

> Simple validation for [Next.js](https://nextjs.org) API routes using [Yup](https://github.com/jquense/yup)

202
Built-in
MIT
datalize

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

59
55
No support
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.