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
nvmrc
command-line tool to validate a `.nvmrc` file
2.9k+1200%-16 days ago
1.2.1
CommonJSBundledSchema validation
page-agent-sdk
AI agent SDK for web pages — embed a chat assistant that edits page data via schema-validated tools. A lighter, framework-agnostic alternative to CopilotKit/LangChain for in-page JSON-editing agents. Vue-bundled; works with DeepSeek, OpenAI, MCP.
2.9k--2 days ago
4.24.5
ESM + CommonJSBundledSchema validation, Vue
@lens-protocol/metadata
Lens Protocol Metadata Standards
2.9k---1 year ago
2.1.0
ESM + CommonJSBundledSchema validation
tschema
A tiny (500b) utility to build JSON schema types.
2.9k-33%-1 year ago
3.2.0
ESM onlyBundledSchema validation
zod-prisma-v4
A Prisma generator that creates Zod schemas for all of your models
2.9k+2574%-11 months ago
0.5.4
CommonJSBundledORMs and query builders, Schema validation
@minecraft/bedrock-schemas
JSON Schemas and TypeScript types for Minecraft Bedrock Edition content files (entities, blocks, items, biomes, and more).
2.9k---6 months ago
1.26.20-beta.21
CommonJSBundledSchema validation
zodline
Type-safe CLI argument parser powered by Zod schemas. Zero dependencies, inferred TypeScript types, and automatic help generation.
2.9k--5 days ago
0.3.1
ESM onlyBundledCLI tools and terminal utilities, Schema validation
@swimlane/obfuscator
Obfuscate objects based on a JSON Schema
2.9k---2 years ago
2.0.0
CommonJSBundledSchema validation
@openmaic/dsl
The MAIC slide DSL: the pure, dependency-free contract (types + JSON Schema + validators + version/migration helpers) that @openmaic/renderer and @openmaic/importer both depend on.
2.8k---8 days ago
0.11.2
ESM onlyBundledSchema validation
domain-objects
A simple, convenient way to represent domain objects, leverage domain knowledge, and add runtime validation in your code base.
2.8k+558%-13 days ago
0.34.0
CommonJSBundledSchema validation
validate.io-contains
Validates if an array contains an input value.
2.8k+33%-11 years ago
1.0.0
CommonJSNoneSchema validation
indicative-rules
Collection of validation rules for indicative
2.7k-37%-6 years ago
7.3.1
CommonJSNoneSchema validation
express-jsonschema
Express middleware for jsonschema validation.
2.7k-4%-9 years ago
1.1.6
CommonJSNoneSchema validation, HTTP servers and web frameworks
react-structured-data
Declarative JSON-LD Structured Data for ReactJS Apps
2.7k-13%-7 years ago
0.0.14
CommonJSNoneReact, Schema validation
cottus
customizable JavaScript data validator
2.7k+229%-2 years ago
1.11.0
CommonJSNoneSchema validation
@lottiefiles/lottie-types
Representation of the Lottie JSON Schema in Typescript
2.7k---2 years ago
1.5.0
CommonJSBundledSchema validation, TypeScript tooling
@jarenjs/validate
Jaren is a JavaScript JSON Schema Validator
2.7k---6 days ago
0.91.4
ESM onlyBundledSchema validation
ember-model-validator
ember addon. It adds validation support to your Ember-Data models.
2.7k+134%-1 year ago
4.8.0
-BundledSchema validation
@spinajs/validation
validation library for spinajs framework
2.7k---1 day ago
2.0.546
ESM + CommonJSBundledSchema validation
validate.io-nan
Validates if a value is NaN.
2.7k+22%-11 years ago
1.0.3
CommonJSNoneSchema validation
jest-serializer-graphql-schema
Jest serializer for GraphQLSchema objects
2.7k+105%-6 months ago
5.0.0
CommonJSBundledGraphQL, Schema validation
jsonv-ts
JSON Schema builder and validator for TypeScript with static type inference, Hono middleware for OpenAPI generation and validation, and MCP server/client implementation. Lightweight, dependency-free, and built on Web Standards.
2.6k+344%-3 months ago
0.11.1
ESM onlyBundledSchema validation, Documentation tooling
@servicestack/client
ServiceStack's TypeScript library providing convenience utilities in developing web apps. Integrates with ServiceStack's Server features including ServiceClient, Server Events, Error Handling and Validation
2.6k---1 year ago
2.1.13
ESM + CommonJSBundledTypeScript tooling, Schema validation
br-validate-dfe-access-key
Um validador de chave de acesso de DFes (Documentos Fiscais eletrônicos)
2.6k+179%-7 years ago
0.1.0
CommonJSNoneSchema validation
@varlock/expo-integration
Expo/React Native Babel plugin to use varlock for .env file loading - adds validation, type-safety, and extra security features
2.6k---1 month ago
1.2.1
ESM + CommonJSBundledConfiguration, Schema validation
@glyphjs/schemas
Zod schemas for Glyph JS components with JSON Schema generation
2.6k---5 months ago
0.10.0
ESM + CommonJSBundledSchema validation
zodock
A library for generating mock data based on Zod schemas
2.6k-33%--
0.1.0
ESM + CommonJSBundledDev servers and API mocking, Schema validation
validate.io-nan-primitive
Validates if a value is a NaN primitive.
2.6k+40%-11 years ago
1.0.0
CommonJSNoneSchema validation
@zodios/axios
Typescript API client with axios
2.6k---3 years ago
11.0.0-beta.19
ESM + CommonJSBundledDocumentation tooling, Schema validation
@okfetch/fetch
A type-safe fetch wrapper with validation, retries, plugins, and streaming.
2.5k---3 days ago
0.6.1
ESM + CommonJSBundledSchema validation, TypeScript tooling
@jirutka/ajv-cli
CLI for Ajv JSON Schema Validator with human-friendly error messages
2.5k---1 year ago
6.0.0
ESM onlyNoneSchema validation, CLI tools and terminal utilities
@okfetch/api
A typed API client builder for okfetch based on endpoint schemas.
2.5k---3 days ago
0.6.1
ESM + CommonJSBundledTypeScript tooling, Schema validation
grunt-jsvalidate
Validate JavaScript source.
2.5k+152%-12 years ago
0.2.2
CommonJSNoneSchema validation
mocker-data-generator
A simplified way to generate mock data, builds using a simple schema and with the FakerJs
2.5k+36%-2 months ago
4.0.0
ESM + CommonJSBundledDev servers and API mocking, Testing
validate-ip-node
Validate IPv4 and IPv6 addresses.
2.5k+42%-4 years ago
1.0.8
CommonJSNoneSchema validation
ifsc
This is part of the IFSC toolset released by Razorpay. You can find more details about the entire release at [ifsc.razorpay.com](https://ifsc.razorpay.com). Includes only a validation library as of now.
2.5k+71%-10 months ago
2.0.50
CommonJSNoneSchema validation
@depup/express-validator
Express middleware for the validator module. (with updated dependencies)
2.4k---today
7.3.2-depup.218
CommonJSBundledSchema validation, HTTP servers and web frameworks
joiful
TypeScript Declarative Validation. Decorate your class properties to validate them using Joi.
2.4k-40%-5 years ago
3.0.2
CommonJSBundledSchema validation, TypeScript tooling
@nahkies/typescript-koa-runtime
Runtime package for code generated by @nahkies/openapi-code-generator using the typescript-koa template
2.4k---3 months ago
0.26.0
ESM + CommonJSBundledDocumentation tooling, TypeScript tooling
ata-validator
JSON Schema validation that compiles for speed and still runs where code generation is blocked. Compiled and interpreted engines answer identically at 100% of the official suite. TypeScript inference, Standard Schema V1, and a build step that emits depend
2.4k--today
1.30.1
ESM + CommonJSBundledSchema validation
@sroussey/json-schema-to-ts
Infer typescript types from your JSON schemas!
2.4k---8 months ago
3.1.4
ESM + CommonJSBundledTypeScript tooling, Schema validation
better-validator
Second generation object or request validator for node.js
2.4k+5%-6 years ago
2.1.9
CommonJSBundledSchema validation, HTTP servers and web frameworks
core-zod-schema-validator
Lightweight package for API testing to validate API responses against ZOD schemas. It can be used directly in any project.
2.4k+826%-1 year ago
1.0.1
CommonJSBundledSchema validation
@shexjs/visitor
Shape Expressions Visitor and schema index generator.
2.3k---11 days ago
1.0.0-alpha.33
CommonJSBundledSchema validation
@shexjs/parser
Shape Expressions Compact Syntax (ShExC) parser.
2.3k---11 days ago
1.0.0-alpha.33
CommonJSBundledParsers and serialisers, Schema validation
@amqp-contract/contract
Contract builder for amqp-contract
2.3k---2 months ago
2.4.0
ESM + CommonJSBundledQueues and background jobs, TypeScript tooling
vat-validation
Check the validity of a VAT number
2.3k--5 months ago
3.0.0
ESM + CommonJSBundledSchema validation
social-links
Validate & sanitize social links
2.3k+8%-1 year ago
1.15.1
CommonJSBundledSecurity, Schema validation
ibantools-germany
IBAN Validator and Generator for German Bank Accounts
2.3k+45%-1 month ago
2.2602.0
ESM + CommonJSBundledSchema validation
fastify-no-additional-properties
Add `additionalProperties: false` by default to your JSON Schemas
2.2k+161%-1 year ago
3.0.1
ESM + CommonJSBundledSchema 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.

  • nvmrccommand-line tool to validate a `.nvmrc` file
  • page-agent-sdkAI agent SDK for web pages — embed a chat assistant that edits page data via schema-validated tools. A lighter, framework-agnostic alternative to CopilotKit/LangChain for in-page JSON-editing agents. Vue-bundled; works with DeepSeek, OpenAI, MCP.
  • @lens-protocol/metadataLens Protocol Metadata Standards
  • tschemaA tiny (500b) utility to build JSON schema types.
  • zod-prisma-v4A Prisma generator that creates Zod schemas for all of your models
  • @minecraft/bedrock-schemasJSON Schemas and TypeScript types for Minecraft Bedrock Edition content files (entities, blocks, items, biomes, and more).
  • zodlineType-safe CLI argument parser powered by Zod schemas. Zero dependencies, inferred TypeScript types, and automatic help generation.
  • @swimlane/obfuscatorObfuscate objects based on a JSON Schema
  • @openmaic/dslThe MAIC slide DSL: the pure, dependency-free contract (types + JSON Schema + validators + version/migration helpers) that @openmaic/renderer and @openmaic/importer both depend on.
  • domain-objectsA simple, convenient way to represent domain objects, leverage domain knowledge, and add runtime validation in your code base.
  • validate.io-containsValidates if an array contains an input value.
  • indicative-rulesCollection of validation rules for indicative
  • express-jsonschemaExpress middleware for jsonschema validation.
  • react-structured-dataDeclarative JSON-LD Structured Data for ReactJS Apps
  • cottuscustomizable JavaScript data validator
  • @lottiefiles/lottie-typesRepresentation of the Lottie JSON Schema in Typescript
  • @jarenjs/validateJaren is a JavaScript JSON Schema Validator
  • ember-model-validatorember addon. It adds validation support to your Ember-Data models.
  • @spinajs/validationvalidation library for spinajs framework
  • validate.io-nanValidates if a value is NaN.
  • jest-serializer-graphql-schemaJest serializer for GraphQLSchema objects
  • jsonv-tsJSON Schema builder and validator for TypeScript with static type inference, Hono middleware for OpenAPI generation and validation, and MCP server/client implementation. Lightweight, dependency-free, and built on Web Standards.
  • @servicestack/clientServiceStack's TypeScript library providing convenience utilities in developing web apps. Integrates with ServiceStack's Server features including ServiceClient, Server Events, Error Handling and Validation
  • br-validate-dfe-access-keyUm validador de chave de acesso de DFes (Documentos Fiscais eletrônicos)
  • @varlock/expo-integrationExpo/React Native Babel plugin to use varlock for .env file loading - adds validation, type-safety, and extra security features
  • @glyphjs/schemasZod schemas for Glyph JS components with JSON Schema generation
  • zodockA library for generating mock data based on Zod schemas
  • validate.io-nan-primitiveValidates if a value is a NaN primitive.
  • @zodios/axiosTypescript API client with axios
  • @okfetch/fetchA type-safe fetch wrapper with validation, retries, plugins, and streaming.
  • @jirutka/ajv-cliCLI for Ajv JSON Schema Validator with human-friendly error messages
  • @okfetch/apiA typed API client builder for okfetch based on endpoint schemas.
  • grunt-jsvalidateValidate JavaScript source.
  • mocker-data-generatorA simplified way to generate mock data, builds using a simple schema and with the FakerJs
  • validate-ip-nodeValidate IPv4 and IPv6 addresses.
  • ifscThis is part of the IFSC toolset released by Razorpay. You can find more details about the entire release at [ifsc.razorpay.com](https://ifsc.razorpay.com). Includes only a validation library as of now.
  • @depup/express-validatorExpress middleware for the validator module. (with updated dependencies)
  • joifulTypeScript Declarative Validation. Decorate your class properties to validate them using Joi.
  • @nahkies/typescript-koa-runtimeRuntime package for code generated by @nahkies/openapi-code-generator using the typescript-koa template
  • ata-validatorJSON Schema validation that compiles for speed and still runs where code generation is blocked. Compiled and interpreted engines answer identically at 100% of the official suite. TypeScript inference, Standard Schema V1, and a build step that emits depend
  • @sroussey/json-schema-to-tsInfer typescript types from your JSON schemas!
  • better-validatorSecond generation object or request validator for node.js
  • core-zod-schema-validatorLightweight package for API testing to validate API responses against ZOD schemas. It can be used directly in any project.
  • @shexjs/visitorShape Expressions Visitor and schema index generator.
  • @shexjs/parserShape Expressions Compact Syntax (ShExC) parser.
  • @amqp-contract/contractContract builder for amqp-contract
  • vat-validationCheck the validity of a VAT number
  • social-linksValidate & sanitize social links
  • ibantools-germanyIBAN Validator and Generator for German Bank Accounts
  • fastify-no-additional-propertiesAdd `additionalProperties: false` by default to your JSON Schemas