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
validate.io-array-like
Validates if a value is array-like.
33.8k+12%-10 years ago
1.0.2
CommonJSNoneSchema validation
validate.io-buffer
Validates if a value is a Buffer object.
33.8k+14%-10 years ago
1.0.2
CommonJSNoneSchema validation
@ankhorage/contracts
Serializable app, action, theme, auth, and secret-store contracts for Ankhorage.
33.8k---2 days ago
22.8.2
ESM onlyBundledTypeScript tooling, Authentication and authorisation
pg-introspection
Strongly typed PostgreSQL introspection library
33.3k+403%-5 months ago
1.0.1
CommonJSBundledDatabase clients and drivers, Schema validation
@json-editor/json-editor
JSON Schema based editor
33k---1 month ago
2.17.2
CommonJSNoneSchema validation, Parsers and serialisers
eclint
Validate or fix code that doesn't adhere to EditorConfig settings or infer settings from existing code.
32.6k-32%-7 years ago
2.8.1
CommonJSBundledSchema validation
validate.io-matrix-like
Validates if a value is matrix-like.
32.2k+25%-11 years ago
1.0.2
CommonJSNoneSchema validation
validate
Validate object properties in javascript.
31.4k-9%-4 years ago
5.2.0
CommonJSNoneSchema validation
@redocly/allof-merge
Simplify JsonSchema/Openapi by combining allOf safely
30.5k---3 months ago
0.6.9
ESM onlyBundledDocumentation tooling, Schema validation
prisma-json-schema-generator
JSON generator for prisma schema
30.3k+93%-2 years ago
5.1.5
CommonJSNoneORMs and query builders, Schema validation
validate.io-positive-integer
Validates if a value is a positive integer.
30.1k+15%-11 years ago
1.0.0
CommonJSNoneSchema validation
validate.io-ndarray-like
Validates if a value is ndarray-like.
29.4k+6%-11 years ago
1.0.0
CommonJSNoneSchema validation
suretype
Typesafe JSON (Schema) validator with magic powers 🧙‍♂️
29.4k-10%-3 years ago
3.3.1
ESM onlyBundledSchema validation, TypeScript tooling
ajv-cmd
Deref, Validate, Transpile, and Test JSON-Schema (.json) files using ajv
29.2k+34%-16 days ago
0.17.1
ESM onlyBundledSchema validation, Build tools
oslllo-validator
All in one Javascript validator
28.9k-16%-9 months ago
4.0.0
CommonJSNoneSchema validation, Node.js utilities
@pothos/plugin-zod
A Pothos plugin for adding argument validation
28.5k---11 days ago
4.3.2
ESM + CommonJSBundledSchema validation, TypeScript tooling
yup-password
Yup, dead simple password validation.
28.2k-6%-2 years ago
0.4.0
CommonJSBundledSchema validation
goke
Simple yet powerful framework for building command-line apps. Inspired by cac.
27.6k+397567%-9 days ago
6.17.0
ESM onlyBundledCLI tools and terminal utilities, Schema validation
api-schema-builder
build schema with validators for each endpoint
26.9k+10%-4 years ago
2.0.11
CommonJSNoneSchema validation, Documentation tooling
uk-modulus-check
TypeScript class that validates UK bank account details using the modulus checking algorithm.
26.7k+62%-9 months ago
2.0.11
CommonJSBundledSchema validation
@julr/vite-plugin-validate-env
✅ Vite plugin for validating your environment variables
26.6k---6 months ago
2.2.2
ESM onlyNoneSchema validation, Bundler plugins and loaders
zod-schema-faker
Generates mock data from zod schema. Powered by @faker-js/faker and randexp.js
26.5k+512%-6 months ago
2.1.1
ESM + CommonJSBundledDev servers and API mocking, Schema validation
kubb
The meta framework for code generation. Point Kubb at a schema and it generates types, clients, hooks, validators, mocks, and more.
26.3k+990%-1 day ago
5.3.16
ESM + CommonJSBundledTypeScript tooling, Schema validation
personnummer
Validate Swedish personal identity numbers
25.9k+73%-3 years ago
3.2.1
ESM + CommonJSBundledSchema validation, Security
ibankit
Validation, field extraction and creation of IBAN, BBAN, BIC numbers
25.5k+135%-1 year ago
1.6.5
ESM + CommonJSBundledSchema validation, TypeScript tooling
chai-json-schema-ajv
A chai plugin for validate json schema.
25.3k-79%-5 years ago
5.2.4
CommonJSNoneSchema validation
jsonschema-draft4
A copy of json schema draft 4.
25.2k-29%-10 years ago
1.0.0
CommonJSNoneSchema validation
joi-to-json-schema
Joi -> JSON Schema Converter
25k+205%-7 years ago
5.1.0
CommonJSNoneSchema validation
@replit/river
It's like tRPC but... with JSON Schema Support, duplex streaming and support for service multiplexing. Transport agnostic!
24.5k---9 days ago
0.223.0
ESM onlyNoneSchema validation
myzod
Schema Validation with typescript type inference.
24.3k+6%-1 year ago
1.12.1
CommonJSBundledSchema validation, TypeScript tooling
fluent-json-schema
JSON Schema fluent API
24k+16%-1 month ago
6.0.1
CommonJSBundledSchema validation
zod-geojson
Zod schemas for GeoJSON
24k+1118%-28 days ago
1.7.1
ESM + CommonJSBundledSchema validation, Maps and geolocation
@speclynx/apidom-ns-json-schema-draft-4
JSON Schema Draft 4 namespace for ApiDOM.
23.8k---6 days ago
5.2.6
ESM + CommonJSBundledSchema validation, Documentation tooling
zod-express-middleware
Express middleware to validate requests using zod schema's.
23.8k+37%-5 years ago
1.4.0
CommonJSBundledHTTP servers and web frameworks, Schema validation
yaml-schema-validator
Schema validator for yaml files
23.8k+113%-5 years ago
1.2.3
CommonJSNoneSchema validation
@speclynx/apidom-ns-json-schema-draft-6
JSON Schema Draft 6 namespace for ApiDOM.
23.7k---6 days ago
5.2.6
ESM + CommonJSBundledSchema validation, TypeScript tooling
@speclynx/apidom-ns-json-schema-draft-7
JSON Schema Draft 7 namespace for ApiDOM.
23.6k---6 days ago
5.2.6
ESM + CommonJSBundledSchema validation, TypeScript tooling
@speclynx/apidom-ns-json-schema-2020-12
JSON Schema 2020-12 namespace for ApiDOM.
23.6k---6 days ago
5.2.6
ESM + CommonJSBundledSchema validation, Documentation tooling
schema-to-yup
Build a Yup schema object to validate models from a domain model schema (JSON or GraphQL)
23.5k-27%-2 years ago
1.12.18
CommonJSBundledSchema validation, GraphQL
map-schema
Normalize an object by running normalizers and validators that are mapped to a schema.
22.7k-17%-6 years ago
0.3.0
CommonJSNoneSchema validation
meta-json-schema
JSON Schema for Clash Meta
22.4k+24%-5 days ago
1.19.31
-NoneSchema validation
validate-glob-opts
Validate glob options
22.4k+0%-8 years ago
1.0.2
-NoneFiles and file systems, Schema validation
assert-valid-glob-opts
Assert a given object is a valid glob option
22k+7%-9 years ago
1.0.0
-NoneFiles and file systems, Testing
@elastic/schemas
Request and response schemas for all Elastic APIs
21.9k---7 days ago
0.8.0
ESM + CommonJSBundledSchema validation
glob-option-error
Create an error from the result of validate-glob-opts
21.9k+2%-9 years ago
1.0.0
-NoneFiles and file systems, Schema validation
ts-json-validator
Let JSON play nicely with Typescript
21.8k+52%-5 years ago
0.7.1
CommonJSBundledSchema validation, TypeScript tooling
@fastify/type-provider-zod
Zod Type Provider for Fastify@5
21.7k---5 months ago
1.0.0
ESM + CommonJSBundledHTTP servers and web frameworks, Schema validation
@inixiative/json-rules
TypeScript-first JSON rules engine with intuitive syntax and detailed error messages
21.6k---4 days ago
2.25.0
ESM + CommonJSBundledTypeScript tooling, Schema validation
@hapi/joi-date
Joi extension for dates
21.5k---6 years ago
2.0.1
CommonJSNoneDate and time, Schema validation
@roadiehq/roadie-backstage-entity-validator
Backstage entity validator library
20.7k---6 months ago
2.8.3
CommonJSBundledSchema validation, Linting and formatting

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.