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
@t3-oss/env-nextjs
![NPM Version](https://img.shields.io/npm/v/%40t3-oss%2Fenv-core) [![JSR](https://jsr.io/badges/@t3-oss/env-core)](https://jsr.io/@t3-oss/env-core) [![JSR Score](https://jsr.io/badges/@t3-oss/env-core/score)](https://jsr.io/@t3-oss/env-core) [![Socket Bad
2.2m+268%-6 months ago
0.13.11
ESM onlyBundledSchema validation, Static site generators and meta-frameworks
tv4
A public domain JSON Schema validator for JavaScript
2.2m-1%-9 years ago
1.3.0
CommonJSNoneSchema validation
drizzle-zod
Generate Zod schemas from Drizzle ORM schemas
2.2m+212%-1 year ago
0.8.3
ESM + CommonJSBundledORMs and query builders, Schema validation
graphql-scalars
A collection of scalar types not included in base GraphQL.
2.2m+107%-1 month ago
2.0.0
ESM + CommonJSBundledGraphQL, Schema validation
z-schema
Fast, lightweight JSON Schema validator for Node.js and browsers — full support for draft-04, draft-06, draft-07, draft-2019-09, and draft-2020-12 (latest)
2.2m+1%-8 days ago
12.4.6
ESM + CommonJSBundledSchema validation
valid-data-url
Detect if a string is a data URL
2.1m+97%-3 years ago
5.0.0
CommonJSNoneURLs and query strings, Schema validation
validate.io-array
Validates if a value is an array.
2.1m+89%-11 years ago
1.0.6
CommonJSNoneSchema validation
@bufbuild/protoplugin
Helps to create your own Protocol Buffers code generators.
2.1m+301%-14 days ago
2.15.0
ESM + CommonJSBundledSchema validation, TypeScript tooling
validate.io-function
Validates if a value is a function.
2.1m+88%-11 years ago
1.0.2
CommonJSNoneSchema validation
io-ts
TypeScript runtime type system for IO decoding/encoding
2m+22%-1 year ago
2.2.22
ESM + CommonJSBundledTypeScript tooling, Schema validation
zod-from-json-schema
Creates Zod types from JSON Schema at runtime
1.9m+748%-2 months ago
0.5.6
ESM + CommonJSBundledSchema validation
mutation-testing-report-schema
The json schema for a mutation testing report.
1.8m+1214%-1 month ago
3.9.0
ESM onlyBundledTesting, Schema validation
json-schema-resolver
Resolve all your $refs
1.8m+216%-1 year ago
3.0.0
CommonJSNoneSchema validation
json-schema-compare
Compare json schemas smarter.
1.7m+67%-8 years ago
0.2.2
--Schema validation
ajv-i18n
Internationalised error messages for Ajv JSON validator
1.7m+940%-4 years ago
4.2.0
--Internationalisation, Schema validation
validate.io-integer
Validates if a value is an integer.
1.7m+68%-11 years ago
1.0.5
--Schema validation
validate.io-number
Validates if a value is a number.
1.7m+68%-11 years ago
1.0.3
--Schema validation
validate.io-integer-array
Validates if a value is an integer array.
1.6m+71%-11 years ago
1.0.0
--Schema validation
json-schema-to-zod
Converts JSON schema objects or files into Zod schemas
1.5m+477%-5 months ago
2.8.1
--Schema validation
@scalar/validation
A lightweight, schema-first validation library for Scalar
1.5m---1 day ago
0.6.5
--Schema validation
json-schema-merge-allof
Simplify your schema by combining allOf into the root schema, safely.
1.5m+70%-5 years ago
0.8.1
--Schema validation
is-my-json-valid
A [JSONSchema](https://json-schema.org/) validator that uses code generation to be extremely fast.
1.4m-2%-4 years ago
2.20.6
--Schema validation
@mastra/schema-compat
Tool schema compatibility layer for Mastra.ai
1.3m---3 days ago
1.3.11
--Schema validation
@json-render/core
JSON becomes real things. Define your catalog, register your components, let AI generate.
1.2m---6 days ago
0.21.0
ESM + CommonJSBundledSchema validation
express-validator
Express middleware for the validator module.
1.1m+14%-5 months ago
7.3.2
CommonJSBundledSchema validation, HTTP servers and web frameworks
zod-openapi
Convert Zod Schemas to OpenAPI v3.x documentation
994k+287%-25 days ago
6.0.2
ESM + CommonJSBundledDocumentation tooling, Schema validation
swagger-parser
Swagger 2.0 and OpenAPI 3.0 parser and validator for Node and browsers
985.9k-3%-5 years ago
10.0.3
CommonJSBundledSchema validation, Documentation tooling
hono-openapi
OpenAPI schema generator for Hono
971.7k+391%-12 days ago
1.3.3
ESM + CommonJSBundledDocumentation tooling, Schema validation
json-schema-ref-parser
Parse, Resolve, and Dereference JSON Schema $ref pointers
968.9k+2%-5 years ago
9.0.9
CommonJSBundledSchema validation, Parsers and serialisers
parse-semver
Parse, normalize and validate given semver shorthand (e.g. gulp@v3.8.10) to object.
968.5k+95%-10 years ago
1.1.1
CommonJSNoneSchema validation
airbnb-prop-types
Custom React PropType validators that we use at Airbnb.
967.6k-22%-6 years ago
2.16.0
CommonJSNoneReact, Schema validation
tcomb-validation
General purpose validation library for JavaScript
929.9k-25%-9 years ago
3.4.1
CommonJSBundledSchema validation
convict
Featureful configuration management library for Node.js (nested structure, schema validation, etc.)
883.5k+44%-6 months ago
6.2.5
CommonJSNoneConfiguration, Schema validation
@metamask/superstruct
A simple and composable way to validate data in JavaScript (and TypeScript).
813.8k---2 months ago
3.4.1
ESM + CommonJSBundledSchema validation, HTTP servers and web frameworks
@scalar/typebox
Json Schema Type Builder with Static Type Resolution for TypeScript
806.3k---8 months ago
0.1.3
ESM + CommonJSBundledSchema validation, TypeScript tooling
exact-mirror
Mirror exact value to TypeBox/OpenAPI model
785.7k+644%-18 days ago
1.2.6
ESM + CommonJSBundledSchema validation
is-base64
Predicate that returns true if base64 string.
782.7k+82%-6 years ago
1.1.0
CommonJSNoneCryptography and hashing, Schema validation
fastify-type-provider-zod
Zod Type Provider for Fastify@5
777.4k+509%-3 months ago
7.0.0
ESM + CommonJSBundledHTTP servers and web frameworks, Schema validation
graphql-query-complexity
Validation rule for GraphQL query complexity analysis
772k+108%-2 months ago
2.0.0
ESM + CommonJSBundledGraphQL, Schema validation
@readme/openapi-parser
Swagger 2.0 and OpenAPI 3.x parser and validator for Node and browsers
768.9k---21 days ago
9.0.0
ESM + CommonJSBundledDocumentation tooling, Schema validation
validate.js
Declarative validations for JavaScript
760.7k+53%-7 years ago
0.13.1
CommonJSBundledSchema validation
v8n
Dead simple fluent JavaScript validation library
731.8k+309%-4 years ago
1.5.1
ESM + CommonJSBundledSchema validation
revalidator
A cross-browser / node.js validator powered by JSON Schema
714.2k+12%-11 years ago
0.3.1
CommonJSNoneSchema validation
ts-json-schema-generator
Generate JSON schema from your Typescript sources
687.5k+116%-6 months ago
2.9.0
CommonJSBundledSchema validation, TypeScript tooling
untruncate-json
Fix up the end of a partial JSON string to create valid JSON.
686.8k+841%-6 years ago
0.0.1
ESM + CommonJSBundledSchema validation
@readme/openapi-schemas
JSON Schemas for every version of the OpenAPI Specification
679.2k---2 months ago
4.0.0
ESM + CommonJSBundledDocumentation tooling, Schema validation
@swaggerexpert/cookie
RFC 6265 compliant cookie parser, validator and serializer.
649.1k---1 year ago
2.0.2
ESM + CommonJSBundledSchema validation
@inversifyjs/prototype-utils
Prototype related utils
646.3k---6 months ago
0.2.1
ESM onlyNoneNode.js utilities, Schema validation
json-schema-to-typescript-lite
Lite version of json-schema-to-typescript
629.1k+139%-1 year ago
15.0.0
ESM + CommonJSBundledTypeScript tooling, Schema validation
npm-user-validate
User validations for npm
574.9k-15%-4 months ago
5.0.0
CommonJSNoneSchema 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.