Skip to content
JS
Package category

Schema validation

Validate data shapes, parse untrusted input and infer types from schemas.

673 packages20 comparisons

Packages compared

673 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
ajv
Another JSON Schema Validator
287.9m+107%-5 months ago
8.20.0
CommonJSBundledSchema validation
json-schema-traverse
Traverse JSON Schema passing each schema object to callback
248.6m+102%-5 years ago
1.0.0
CommonJSBundledSchema validation
zod
TypeScript-first schema declaration and validation library with static type inference
211.9m+403%-11 days ago
4.6.5
ESM + CommonJSBundledSchema validation, TypeScript tooling
schema-utils
webpack Validation Utils
103m+19%-12 days ago
4.5.0
CommonJSBundledSchema validation
@sinclair/typebox
Json Schema Type Builder with Static Type Resolution for TypeScript
81.2m+58%-2 months ago
0.34.52
ESM + CommonJSBundledSchema validation, TypeScript tooling
@standard-schema/spec
A family of specs for interoperable TypeScript
80.7m+892%-9 months ago
1.1.0
ESM + CommonJSBundledTypeScript tooling, Schema validation
ajv-keywords
Additional JSON-Schema keywords for Ajv JSON validator
71.7m+29%-4 years ago
5.1.0
CommonJSBundledSchema validation
zod-to-json-schema
Converts Zod schemas to Json Schemas
44.4m+332%-5 months ago
3.25.2
ESM + CommonJSBundledSchema validation
json-schema
JSON Schema validation and specifications
42.6m+68%-4 years ago
0.4.0
CommonJSNoneSchema validation
json-schema-typed
JSON Schema TypeScript definitions with complete inline documentation.
38.2m+3031%-10 months ago
8.0.2
ESM onlyBundledSchema validation, TypeScript tooling
@standard-schema/utils
The official runtime utils for Standard Schema
37.8m+610%-1 year ago
0.3.0
ESM + CommonJSBundledSchema validation
validate-npm-package-name
Give me a string and I'll tell you if it's a valid npm package name
34.6m+85%-4 months ago
8.0.0
CommonJSNoneSchema validation
zod-validation-error
Wrap zod validation errors in user-friendly readable messages
34.5m+739%-10 months ago
5.0.0
ESM + CommonJSBundledSchema validation
validate-npm-package-license
Give me a string and I'll tell you if it's a valid npm package license string
31m+16%-8 years ago
3.0.4
-NoneSchema validation
effect
The missing standard library for TypeScript, for writing production-grade software.
26.3m+544%-16 days ago
3.22.2
ESM + CommonJSBundledTypeScript tooling, Monitoring and error tracking
json-schema-to-ts
Infer typescript types from your JSON schemas!
24.9m+962%-2 years ago
3.1.1
ESM + CommonJSBundledTypeScript tooling, Schema validation
joi
Object schema validation
19.6m+73%-13 days ago
18.2.9
CommonJSBundledSchema validation
validator
String validation and sanitization
18.4m+39%-5 months ago
13.15.35
CommonJSNoneSchema validation, Security
aproba
A ridiculously light-weight argument validator (now browser friendly)
17.6m-6%-1 year ago
2.1.0
CommonJSNoneSchema validation
valibot
The modular and type safe schema library for validating structural data
13.4m+704%-15 days ago
1.5.0
ESM + CommonJSBundledSchema validation, TypeScript tooling
ajv-draft-04
Ajv class for JSON Schema draft-04
12.7m+143%-5 years ago
1.0.0
CommonJSBundledSchema validation
@apidevtools/json-schema-ref-parser
Parse, Resolve, and Dereference JSON Schema $ref pointers
12.7m+102%-4 days ago
16.0.3
ESM onlyBundledSchema validation, Parsers and serialisers
har-validator
Extremely fast HTTP Archive (HAR) validator using JSON Schema
12.5m-15%-6 years ago
5.1.5
CommonJSNoneSchema validation
har-schema
JSON Schema for HTTP Archive (HAR)
11.7m-11%-9 years ago
2.0.0
CommonJSNoneSchema validation
@fastify/ajv-compiler
Build and manage the AJV instances for the fastify framework
9.1m+272%-1 month ago
4.0.6
CommonJSBundledSchema validation
json-schema-ref-resolver
JSON schema reference resolver
9.1m+296%-1 year ago
3.0.0
CommonJSBundledDocumentation tooling, Schema validation
@fastify/merge-json-schemas
Builds a logical conjunction (AND) of multiple JSON schemas
9m+302%-1 year ago
0.2.1
CommonJSBundledSchema validation
yup
Dead simple Object schema validation
8.5m+26%-1 year ago
1.7.1
ESM + CommonJSBundledSchema validation
typebox
Json Schema Type Builder with Static Type Resolution for TypeScript
8.2m+56221%-7 days ago
1.3.34
ESM onlyBundledSchema validation, TypeScript tooling
ajv-errors
Custom error messages in JSON Schemas for Ajv validator
8.1m+21%-5 years ago
3.0.0
CommonJSBundledSchema validation
@apideck/better-ajv-errors
Human-friendly JSON Schema validation for APIs
7m+66%-5 months ago
0.3.7
ESM + CommonJSBundledSchema validation
@redocly/ajv
Another JSON Schema Validator
6.8m+225%-5 months ago
8.18.3
CommonJSBundledSchema validation
@cfworker/json-schema
A JSON schema validator that will run on Cloudflare workers. Supports drafts 4, 7, 2019-09, and 2020-12.
5.8m+406%-1 year ago
4.1.1
ESM + CommonJSBundledSchema validation, Cloud SDKs
@peculiar/json-schema
This package uses ES2015 decorators to simplify JSON schema creation and use
4.9m+105%-6 years ago
1.1.12
ESM + CommonJSBundledParsers and serialisers, Schema validation
superstruct
A simple and composable way to validate data in JavaScript (and TypeScript).
4.7m+93%-2 years ago
2.0.2
ESM + CommonJSBundledSchema validation, TypeScript tooling
jsonschema
A fast and easy to use JSON Schema validator
4.2m+16%-1 year ago
1.5.0
CommonJSBundledSchema validation
@apidevtools/swagger-parser
Swagger 2.0 and OpenAPI 3.0 parser and validator for Node and browsers
4.1m+55%-4 days ago
13.1.0
CommonJSBundledSchema validation, Documentation tooling
@apidevtools/openapi-schemas
JSON Schemas for every version of the OpenAPI Specification
3.8m+49%-5 years ago
2.1.0
CommonJSBundledDocumentation tooling, Schema validation
valid-url
URI validation functions
3.7m+59%-13 years ago
1.0.9
CommonJSNoneSchema validation, URLs and query strings
@valibot/to-json-schema
The official JSON schema converter for Valibot
3.6m+6124%-13 days ago
1.8.0
ESM + CommonJSBundledSchema validation
typanion
Simple runtime TypeScript validator library
3.5m+71%-3 years ago
3.14.0
CommonJSNoneSchema validation, TypeScript tooling
@hey-api/openapi-ts
🌀 OpenAPI to TypeScript code generator. Production-grade SDKs, Zod schemas, TanStack Query hooks, and 20+ plugins. Used by Vercel, OpenCode, and PayPal.
3.4m+473%-3 months ago
0.99.0
ESM onlyBundledDocumentation tooling, HTTP clients
@exodus/schemasafe
JSON Safe Parser & Schema Validator
3.3m+48%-3 years ago
1.3.0
CommonJSBundledSchema validation, Parsers and serialisers
@hey-api/json-schema-ref-parser
Parse, Resolve, and Dereference JSON Schema $ref pointers
3.2m+716%-3 months ago
1.4.4
ESM onlyBundledSchema validation
@asteasolutions/zod-to-openapi
Builds OpenAPI schemas from Zod schemas
3m+256%-2 months ago
9.1.0
ESM + CommonJSBundledDocumentation tooling, Schema validation
oas-schema-walker
Library to walk OAS 3 schema objects and call a callback
3m+56%-6 years ago
1.1.5
CommonJSNoneDocumentation tooling, Schema validation
json-schema-to-typescript
compile json schema to typescript typings
2.6m+127%-28 days ago
16.0.0
CommonJSBundledSchema validation, TypeScript tooling
@stoplight/json-ref-resolver
Recursively resolve JSON pointers and remote authorities.
2.3m+73%-3 years ago
3.1.6
CommonJSBundledDocumentation tooling, Schema validation
ow
Function argument validation for humans
2.3m+135%-11 months ago
3.1.1
ESM onlyBundledSchema validation
@hey-api/spec-types
📃 TypeScript definitions for OpenAPI and JSON Schema specifications with complete inline documentation.
2.3m--5 months ago
0.2.0
ESM onlyBundledDocumentation tooling, Schema validation

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.