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
znv
Parse your environment with Zod schemas
60.4k+29%-1 year ago
0.5.0
ESM + CommonJSBundledSchema validation, Node.js utilities
@n8n/json-schema-to-zod
Converts JSON schema objects into Zod schemas
59.9k---10 days ago
1.16.0
ESM + CommonJSBundledSchema validation, CLI tools and terminal utilities
@accordproject/concerto-vocabulary
Associate human-readable text to model declarations
58.5k---17 days ago
5.0.0
ESM + CommonJSBundledTypeScript tooling, Blockchain and Web3
chai-json-schema
Chai plugin for JSON Schema v4
58.3k-66%-2 months ago
2.0.1
CommonJSNoneSchema validation, Testing
genson-js
JSON schema generator with a possibility to merge schemas
57.3k+82%-4 years ago
0.0.8
CommonJSBundledSchema validation
xsd-schema-validator
A (XSD) schema validator for nodejs
56.4k+211%-1 year ago
0.11.0
CommonJSBundledSchema validation
protodef-validator
Validate ProtoDef protocol definition in node
54.5k+240%-29 days ago
1.5.0
CommonJSNoneSchema validation
har-validator-compiled
Validate a HAR file using a compiled AJV schema validator
54.4k+1266%-4 years ago
1.0.0
ESM + CommonJSBundledSchema validation
jest-json-schema
JSON schema matcher for jest
54.1k+15%-4 years ago
6.1.0
CommonJSNoneSchema validation, Testing
fastify-zod-openapi
Fastify plugin for zod-openapi
54.1k+106%-2 months ago
5.7.0
ESM + CommonJSBundledDocumentation tooling, TypeScript tooling
rxdb
A local-first realtime NoSQL Database for JavaScript applications - https://rxdb.info/
53.5k+8%-1 month ago
17.5.0
ESM + CommonJSBundledWebSockets and realtime, Schema validation
@criteria/json-pointer
Implementation of JSON Pointer (RFC 6901).
52.9k---2 years ago
0.2.1
CommonJSBundledDocumentation tooling, Schema validation
@criteria/json-schema
TypeScript implementation of the JSON Schema specification.
52.9k---2 years ago
0.10.0
CommonJSBundledSchema validation
@criteria/json-schema-validation
Validate JSON instances using JSON Schema.
52.8k---2 years ago
0.10.0
CommonJSBundledSchema validation
@middy/validator
Validator middleware for the middy framework
52.3k---28 days ago
7.9.2
ESM onlyBundledCloud SDKs, Schema validation
checkit
Simple validations for node and the browser.
52.1k-61%-10 years ago
0.7.0
CommonJSNoneSchema validation
pure-parse
Strongly typed validation library that decouples type aliases from validation logic
52k+2064%-3 months ago
1.0.3
ESM + CommonJSBundledTypeScript tooling, Schema validation
as-typed
Static TypeScript types from a literal JSONSchema type
50.9k+16%-4 years ago
1.3.2
-BundledSchema validation, TypeScript tooling
@secretlint/config-validator
.secretlintrc config validation library
50.2k---4 years ago
4.2.0
CommonJSBundledSchema validation, Node.js utilities
remark-lint-frontmatter-schema
Validate Markdown frontmatter YAML against an associated JSON schema — remark-lint rule plugin
50.1k-23%-2 years ago
3.15.4
ESM onlyBundledSchema validation, Markdown
validate.io-nonnegative-integer
Validates if a value is a nonnegative integer.
49k+45%-11 years ago
1.0.0
CommonJSNoneSchema validation
jsonschema-key-compression
Compress json-data based on its json-schema
48.9k+13%-2 years ago
1.7.0
ESM + CommonJSBundledCompression and archives, Schema validation
b-validate
Javascript type validate
48.7k+202%-3 years ago
1.5.3
ESM + CommonJSBundledSchema validation
jgexml
The Just-Good-Enough XML Toolkit
48.2k+19%-6 years ago
0.4.4
CommonJSNoneParsers and serialisers, Schema validation
express-validation
express-validation is a middleware that validates a request and returns a response with errors; if any of the configured validation rules fail.
47.9k-17%-2 years ago
4.1.1
CommonJSBundledSchema validation, HTTP servers and web frameworks
validatorjs
Validation library inspired by Laravel's Validator
47.3k+10%-5 years ago
3.22.1
CommonJSNoneSchema validation
@korzio/djv-draft-04
JSON-Schema draft-04 plugin for djv package
47.1k---8 years ago
2.0.1
CommonJSNoneSchema validation
djv
dynamic json-schema validator
46.2k-11%-5 years ago
2.1.4
CommonJSNoneSchema validation
ein-validator
Employer Identification Number validator and masker
45.7k+126%-5 years ago
1.0.1
CommonJSNoneSchema validation
find-duplicated-property-keys
A package for detecting all duplicated property keys of a JSON string.
45.6k+67%-3 years ago
1.2.9
CommonJSNoneSchema validation
schema-stream
Progressively parse streamed JSON into typed, schema-shaped snapshots
45.4k+205%-2 months ago
4.2.0
ESM + CommonJSBundledSchema validation, Node.js utilities
openapi-request-validator
Validate request properties against an OpenAPI spec.
44k-16%-3 years ago
12.1.3
CommonJSBundledDocumentation tooling, Schema validation
@inngest/middleware-validation
Schema validation middleware for Inngest.
43.1k---11 months ago
0.0.5
ESM + CommonJSBundledSchema validation, Queues and background jobs
@varlock/vite-integration
Vite plugin to use varlock for .env file loading - adds validation, type-safety, and extra security features
42.6k---13 days ago
1.5.2
ESM onlyBundledConfiguration, Schema validation
@indexeddb-orm/idb-orm
TypeScript ORM wrapper for indexeddb with Zod runtime validation, build on top of dexie.js
41.9k---25 days ago
0.0.4
ESM + CommonJSBundledSchema validation, ORMs and query builders
@jackchuka/mdschema
A declarative schema-based Markdown documentation validator
40.9k---8 days ago
0.15.4
-NoneSchema validation, Parsers and serialisers
anchor
High-level validation library for Node.js (used in Waterline)
40.2k+5%-10 months ago
1.4.2
CommonJSNoneSchema validation, HTTP servers and web frameworks
jquery-validation-unobtrusive
Add-on to jQuery Validation to enable unobtrusive validation options in data-* attributes.
39.8k+31%-4 years ago
4.0.0
CommonJSNoneSchema validation
ajv-merge-patch
$merge and $patch keywords for Ajv JSON-Schema validator to extend schemas
39.8k-0%-5 years ago
5.0.1
CommonJSNoneSchema validation
@pothos/plugin-validation
A Pothos plugin for adding schema based validation
39.7k---11 days ago
4.3.4
ESM + CommonJSBundledGraphQL, TypeScript tooling
graphql-constraint-directive
Validate GraphQL fields
38.7k+33%-1 year ago
6.0.0
CommonJSBundledSchema validation, GraphQL
json-schema-compatibility
JSON Schema tools are now being written for v4 of the draft, but v3 schemas still exist out in the wild.
38.1k+19%-11 years ago
1.1.0
CommonJSNoneSchema validation
drizzle-typebox
Generate Typebox schemas from Drizzle ORM schemas
37.6k+103%-1 year ago
0.3.3
ESM + CommonJSBundledORMs and query builders, Schema validation
mongoose-unique-validator
mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.
36.9k+37%-6 months ago
6.1.1
ESM onlyBundledSchema validation, ORMs and query builders
openapi-schemas
JSON Schemas for every version of the OpenAPI Specification
36.4k-34%-5 years ago
2.1.0
CommonJSBundledDocumentation tooling, Schema validation
validate.io-string-primitive
Validates if a value is a string primitive.
35.5k+15%-10 years ago
1.0.1
CommonJSNoneSchema validation
@fumari/json-schema-to-typescript
compile json schema to typescript typings
34.6k---10 months ago
2.0.0
ESM onlyBundledTypeScript tooling, Schema validation
validate.io-number-primitive
Validates if a value is a number primitive, excluding NaN.
34.1k+1%-11 years ago
1.0.0
CommonJSNoneSchema validation
validate.io-integer-primitive
Validates if a value is a number primitive and an integer.
33.9k+21%-11 years ago
1.0.0
CommonJSNoneSchema validation
tamedevil
Build and evaluate JavaScript strings safely via tagged template literals
33.9k+381%-4 months ago
0.1.1
CommonJSBundledGraphQL, 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.