Package category
Schema validation
Validate data shapes, parse untrusted input and infer types from schemas.
673 packages20 comparisons
Packages compared
673 packages
| Package | Weekly downloads | 12-month change | 52 weeks | Gzip | Last release | Module | Types | Categories |
|---|---|---|---|---|---|---|---|---|
| ajv Another JSON Schema Validator | 287.9m | +107% | - | 5 months ago 8.20.0 | CommonJS | Bundled | Schema validation | |
| json-schema-traverse Traverse JSON Schema passing each schema object to callback | 248.6m | +102% | - | 5 years ago 1.0.0 | CommonJS | Bundled | Schema validation | |
| zod TypeScript-first schema declaration and validation library with static type inference | 211.9m | +403% | - | 11 days ago 4.6.5 | ESM + CommonJS | Bundled | Schema validation, TypeScript tooling | |
| schema-utils webpack Validation Utils | 103m | +19% | - | 12 days ago 4.5.0 | CommonJS | Bundled | Schema validation | |
| @sinclair/typebox Json Schema Type Builder with Static Type Resolution for TypeScript | 81.2m | +58% | - | 2 months ago 0.34.52 | ESM + CommonJS | Bundled | Schema validation, TypeScript tooling | |
| @standard-schema/spec A family of specs for interoperable TypeScript | 80.7m | +892% | - | 9 months ago 1.1.0 | ESM + CommonJS | Bundled | TypeScript tooling, Schema validation | |
| ajv-keywords Additional JSON-Schema keywords for Ajv JSON validator | 71.7m | +29% | - | 4 years ago 5.1.0 | CommonJS | Bundled | Schema validation | |
| zod-to-json-schema Converts Zod schemas to Json Schemas | 44.4m | +332% | - | 5 months ago 3.25.2 | ESM + CommonJS | Bundled | Schema validation | |
| json-schema JSON Schema validation and specifications | 42.6m | +68% | - | 4 years ago 0.4.0 | CommonJS | None | Schema validation | |
| json-schema-typed JSON Schema TypeScript definitions with complete inline documentation. | 38.2m | +3031% | - | 10 months ago 8.0.2 | ESM only | Bundled | Schema validation, TypeScript tooling | |
| @standard-schema/utils The official runtime utils for Standard Schema | 37.8m | +610% | - | 1 year ago 0.3.0 | ESM + CommonJS | Bundled | Schema 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 | CommonJS | None | Schema validation | |
| zod-validation-error Wrap zod validation errors in user-friendly readable messages | 34.5m | +739% | - | 10 months ago 5.0.0 | ESM + CommonJS | Bundled | Schema 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 | - | None | Schema validation | |
| effect The missing standard library for TypeScript, for writing production-grade software. | 26.3m | +544% | - | 16 days ago 3.22.2 | ESM + CommonJS | Bundled | TypeScript 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 + CommonJS | Bundled | TypeScript tooling, Schema validation | |
| joi Object schema validation | 19.6m | +73% | - | 13 days ago 18.2.9 | CommonJS | Bundled | Schema validation | |
| validator String validation and sanitization | 18.4m | +39% | - | 5 months ago 13.15.35 | CommonJS | None | Schema validation, Security | |
| aproba A ridiculously light-weight argument validator (now browser friendly) | 17.6m | -6% | - | 1 year ago 2.1.0 | CommonJS | None | Schema validation | |
| valibot The modular and type safe schema library for validating structural data | 13.4m | +704% | - | 15 days ago 1.5.0 | ESM + CommonJS | Bundled | Schema validation, TypeScript tooling | |
| ajv-draft-04 Ajv class for JSON Schema draft-04 | 12.7m | +143% | - | 5 years ago 1.0.0 | CommonJS | Bundled | Schema validation | |
| @apidevtools/json-schema-ref-parser Parse, Resolve, and Dereference JSON Schema $ref pointers | 12.7m | +102% | - | 4 days ago 16.0.3 | ESM only | Bundled | Schema validation, Parsers and serialisers | |
| har-validator Extremely fast HTTP Archive (HAR) validator using JSON Schema | 12.5m | -15% | - | 6 years ago 5.1.5 | CommonJS | None | Schema validation | |
| har-schema JSON Schema for HTTP Archive (HAR) | 11.7m | -11% | - | 9 years ago 2.0.0 | CommonJS | None | Schema validation | |
| @fastify/ajv-compiler Build and manage the AJV instances for the fastify framework | 9.1m | +272% | - | 1 month ago 4.0.6 | CommonJS | Bundled | Schema validation | |
| json-schema-ref-resolver JSON schema reference resolver | 9.1m | +296% | - | 1 year ago 3.0.0 | CommonJS | Bundled | Documentation tooling, Schema validation | |
| @fastify/merge-json-schemas Builds a logical conjunction (AND) of multiple JSON schemas | 9m | +302% | - | 1 year ago 0.2.1 | CommonJS | Bundled | Schema validation | |
| yup Dead simple Object schema validation | 8.5m | +26% | - | 1 year ago 1.7.1 | ESM + CommonJS | Bundled | Schema validation | |
| typebox Json Schema Type Builder with Static Type Resolution for TypeScript | 8.2m | +56221% | - | 7 days ago 1.3.34 | ESM only | Bundled | Schema validation, TypeScript tooling | |
| ajv-errors Custom error messages in JSON Schemas for Ajv validator | 8.1m | +21% | - | 5 years ago 3.0.0 | CommonJS | Bundled | Schema validation | |
| @apideck/better-ajv-errors Human-friendly JSON Schema validation for APIs | 7m | +66% | - | 5 months ago 0.3.7 | ESM + CommonJS | Bundled | Schema validation | |
| @redocly/ajv Another JSON Schema Validator | 6.8m | +225% | - | 5 months ago 8.18.3 | CommonJS | Bundled | Schema 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 + CommonJS | Bundled | Schema 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 + CommonJS | Bundled | Parsers 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 + CommonJS | Bundled | Schema validation, TypeScript tooling | |
| jsonschema A fast and easy to use JSON Schema validator | 4.2m | +16% | - | 1 year ago 1.5.0 | CommonJS | Bundled | Schema 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 | CommonJS | Bundled | Schema validation, Documentation tooling | |
| @apidevtools/openapi-schemas JSON Schemas for every version of the OpenAPI Specification | 3.8m | +49% | - | 5 years ago 2.1.0 | CommonJS | Bundled | Documentation tooling, Schema validation | |
| valid-url URI validation functions | 3.7m | +59% | - | 13 years ago 1.0.9 | CommonJS | None | Schema 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 + CommonJS | Bundled | Schema validation | |
| typanion Simple runtime TypeScript validator library | 3.5m | +71% | - | 3 years ago 3.14.0 | CommonJS | None | Schema 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 only | Bundled | Documentation tooling, HTTP clients | |
| @exodus/schemasafe JSON Safe Parser & Schema Validator | 3.3m | +48% | - | 3 years ago 1.3.0 | CommonJS | Bundled | Schema 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 only | Bundled | Schema validation | |
| @asteasolutions/zod-to-openapi Builds OpenAPI schemas from Zod schemas | 3m | +256% | - | 2 months ago 9.1.0 | ESM + CommonJS | Bundled | Documentation 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 | CommonJS | None | Documentation tooling, Schema validation | |
| json-schema-to-typescript compile json schema to typescript typings | 2.6m | +127% | - | 28 days ago 16.0.0 | CommonJS | Bundled | Schema validation, TypeScript tooling | |
| @stoplight/json-ref-resolver Recursively resolve JSON pointers and remote authorities. | 2.3m | +73% | - | 3 years ago 3.1.6 | CommonJS | Bundled | Documentation tooling, Schema validation | |
| ow Function argument validation for humans | 2.3m | +135% | - | 11 months ago 3.1.1 | ESM only | Bundled | Schema 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 only | Bundled | Documentation 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.
- ajvAnother JSON Schema Validator
- json-schema-traverseTraverse JSON Schema passing each schema object to callback
- zodTypeScript-first schema declaration and validation library with static type inference
- schema-utilswebpack Validation Utils
- @sinclair/typeboxJson Schema Type Builder with Static Type Resolution for TypeScript
- @standard-schema/specA family of specs for interoperable TypeScript
- ajv-keywordsAdditional JSON-Schema keywords for Ajv JSON validator
- zod-to-json-schemaConverts Zod schemas to Json Schemas
- json-schemaJSON Schema validation and specifications
- json-schema-typedJSON Schema TypeScript definitions with complete inline documentation.
- @standard-schema/utilsThe official runtime utils for Standard Schema
- validate-npm-package-nameGive me a string and I'll tell you if it's a valid npm package name
- zod-validation-errorWrap zod validation errors in user-friendly readable messages
- validate-npm-package-licenseGive me a string and I'll tell you if it's a valid npm package license string
- effectThe missing standard library for TypeScript, for writing production-grade software.
- json-schema-to-tsInfer typescript types from your JSON schemas!
- joiObject schema validation
- validatorString validation and sanitization
- aprobaA ridiculously light-weight argument validator (now browser friendly)
- valibotThe modular and type safe schema library for validating structural data
- ajv-draft-04Ajv class for JSON Schema draft-04
- @apidevtools/json-schema-ref-parserParse, Resolve, and Dereference JSON Schema $ref pointers
- har-validatorExtremely fast HTTP Archive (HAR) validator using JSON Schema
- har-schemaJSON Schema for HTTP Archive (HAR)
- @fastify/ajv-compilerBuild and manage the AJV instances for the fastify framework
- json-schema-ref-resolverJSON schema reference resolver
- @fastify/merge-json-schemasBuilds a logical conjunction (AND) of multiple JSON schemas
- yupDead simple Object schema validation
- typeboxJson Schema Type Builder with Static Type Resolution for TypeScript
- ajv-errorsCustom error messages in JSON Schemas for Ajv validator
- @apideck/better-ajv-errorsHuman-friendly JSON Schema validation for APIs
- @redocly/ajvAnother JSON Schema Validator
- @cfworker/json-schemaA JSON schema validator that will run on Cloudflare workers. Supports drafts 4, 7, 2019-09, and 2020-12.
- @peculiar/json-schemaThis package uses ES2015 decorators to simplify JSON schema creation and use
- superstructA simple and composable way to validate data in JavaScript (and TypeScript).
- jsonschemaA fast and easy to use JSON Schema validator
- @apidevtools/swagger-parserSwagger 2.0 and OpenAPI 3.0 parser and validator for Node and browsers
- @apidevtools/openapi-schemasJSON Schemas for every version of the OpenAPI Specification
- valid-urlURI validation functions
- @valibot/to-json-schemaThe official JSON schema converter for Valibot
- typanionSimple runtime TypeScript validator library
- @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.
- @exodus/schemasafeJSON Safe Parser & Schema Validator
- @hey-api/json-schema-ref-parserParse, Resolve, and Dereference JSON Schema $ref pointers
- @asteasolutions/zod-to-openapiBuilds OpenAPI schemas from Zod schemas
- oas-schema-walkerLibrary to walk OAS 3 schema objects and call a callback
- json-schema-to-typescriptcompile json schema to typescript typings
- @stoplight/json-ref-resolverRecursively resolve JSON pointers and remote authorities.
- owFunction argument validation for humans
- @hey-api/spec-types📃 TypeScript definitions for OpenAPI and JSON Schema specifications with complete inline documentation.
- valibot vs zod
- @asteasolutions/zod-to-openapi vs zod-openapi
- @hey-api/openapi-ts vs zod-openapi
- @hey-api/openapi-ts vs @asteasolutions/zod-to-openapi
- convict vs envalid
- type-graphql vs quicktype-core
- io-ts vs runtypes
- json-schema-to-typescript vs ts-json-schema-generator
- valibot vs superstruct
- @standard-schema/spec vs json-schema-to-ts
- @standard-schema/spec vs runtypes
- typebox vs ts-json-schema-generator
- @standard-schema/spec vs io-ts
- superstruct vs express-validator
- @apidevtools/swagger-parser vs @zodios/core
- json-schema-to-ts vs runtypes
- effect vs json-schema-to-ts
- graphql-scalars vs graphql-query-complexity
- joi vs v8n
- json-schema-to-ts vs io-ts