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 |
|---|---|---|---|---|---|---|---|---|
| @shexjs/term Shape Expressions triple expression evaluator - simple regexp returning 1 error. | 2.2k | - | - | - | 18 days ago 1.0.0-alpha.29 | CommonJS | Bundled | Schema validation |
| graphile-export Export in-memory generated GraphQL schemas to JS files when built with our helpers. | 2.2k | +135% | - | 5 months ago 1.0.1 | CommonJS | Bundled | GraphQL, Schema validation | |
| validate-rfc A simple library to validate Mexican RFCs (Tax IDs) | 2.2k | +38% | - | 3 years ago 2.0.3 | CommonJS | Bundled | Schema validation | |
| ip-validator Super simple IP Address validator for ipv4 & ipv6 | 2.2k | -25% | - | 11 years ago 0.0.1 | CommonJS | None | Schema validation | |
| jscheme A small and simple object schema library for the browser and node | 2.2k | +8% | - | 11 years ago 0.2.1 | CommonJS | None | Schema validation | |
| ascertain 0-Deps, simple, fast, for browser and node js object schema validator | 2.2k | -26% | - | 26 days ago 3.2.82 | ESM + CommonJS | Bundled | Schema validation, DOM and browser utilities | |
| dhl-packstation-validator A package for validating DHL Packstation addresses | 2.2k | +3383% | - | 4 years ago 0.1.3 | CommonJS | None | Schema validation | |
| joi-assert Assert values using Joi schemas | 2.2k | -14% | - | 12 years ago 0.0.3 | CommonJS | None | Schema validation, Testing | |
| vuelidate-error-extractor Helps showing vuelidate error messages from translation files. | 2.2k | -82% | - | 6 years ago 2.4.1 | ESM + CommonJS | None | Vue, UI component libraries | |
| @effected/package-json package.json parsing, editing, validation and file IO as Effect schemas. | 2.2k | - | - | - | 2 days ago 0.17.0 | ESM only | Bundled | Schema validation, CLI tools and terminal utilities |
| @shexjs/util Shape Expressions validation and utilities. | 2.2k | - | - | - | 11 days ago 1.0.0-alpha.33 | CommonJS | Bundled | Schema validation |
| barcoder GTIN validation made simple | 2.1k | +30% | - | 11 years ago 2.0.1 | CommonJS | None | Schema validation | |
| koas-parameters Koas parameters attempts to coerce path and query parameters to the type specified in their respective JSON schema. | 2.1k | +85% | - | 4 years ago 0.7.0 | CommonJS | None | Documentation tooling, HTTP servers and web frameworks | |
| @objectstack/spec ObjectStack Protocol & Specification - TypeScript Interfaces, JSON Schemas, and Convention Configurations | 2.1k | - | - | - | 16 days ago 17.4.0 | ESM + CommonJS | Bundled | Schema validation, TypeScript tooling |
| @openuidev/svelte-lang Define component libraries, generate LLM system prompts, and render streaming OpenUI Lang output in Svelte 5 — the Svelte runtime for OpenUI generative UI | 2.1k | - | - | - | 10 days ago 0.3.0 | ESM only | Bundled | Svelte, Schema validation |
| validate-npm-package-name-cli CLI for npmjs.com/validate-npm-package-name - give me a string and I'll tell you if it's a valid npm package name | 2k | +267600% | - | 8 months ago 2.1.0 | CommonJS | None | CLI tools and terminal utilities, Schema validation | |
| prisma-joi-generator Prisma +2 generator to emit Joi schemas from your Prisma schema | 2k | +314% | - | 1 month ago 2.0.0 | - | None | ORMs and query builders, Schema validation | |
| mongoose-id-validator Mongoose plugin to validate that ObjectID references refer to objects that actually exist in the referenced collection | 2k | -63% | - | 6 years ago 0.6.0 | CommonJS | None | Schema validation, ORMs and query builders | |
| @gqloom/zod Create GraphQL schema and resolvers easily using using Zod! | 2k | - | - | - | 6 months ago 0.16.0 | ESM + CommonJS | Bundled | Schema validation, TypeScript tooling |
| validate-scope Checks whether a subset is contained in a list of scopes. Uses code generation | 2k | +10% | - | 3 years ago 1.3.0 | CommonJS | None | Authentication and authorisation, Schema validation | |
| @optique/config Configuration file support for Optique with Standard Schema validation | 1.9k | - | - | - | 10 days ago 1.3.0 | ESM + CommonJS | Bundled | CLI tools and terminal utilities, Schema validation |
| schema2typebox Creates typebox code from JSON schemas | 1.9k | -9% | - | 11 months ago 1.7.8 | CommonJS | Bundled | Schema validation, TypeScript tooling | |
| validation-utils Validation utilities | 1.9k | -34% | - | 1 year ago 11.0.1 | ESM + CommonJS | Bundled | Schema validation, Testing | |
| valibot-env type-safe environment variables with valibot | 1.9k | +91% | - | 11 months ago 1.0.0 | ESM only | Bundled | Configuration, Node.js utilities | |
| koa-zod-router Inspired by koa-joi-router, this package aims to provide a similar feature-set while leveraging Zod and Typescript to create typesafe routes and middlewares with built in I/O validation. | 1.9k | -77% | - | 2 years ago 2.3.0 | ESM + CommonJS | Bundled | Schema validation, HTTP servers and web frameworks | |
| @buildwithlayer/json-schema-zod-schema A Zod Schema for JSON Schemas | 1.9k | - | - | - | 1 year ago 1.0.0 | ESM + CommonJS | None | Schema validation |
| @amqp-contract/client Client utilities for publishing messages using amqp-contract | 1.9k | - | - | - | 2 months ago 2.4.0 | ESM + CommonJS | Bundled | Queues and background jobs, TypeScript tooling |
| @directededges/specs-schema Specs UI Component Schema - TypeScript types and JSON schema definitions for component specifications | 1.9k | - | - | - | 2 days ago 0.34.0 | ESM only | Bundled | TypeScript tooling, Schema validation |
| @typeschema/main Universal adapter for schema validation | 1.9k | - | - | - | 1 year ago 0.14.1 | ESM + CommonJS | Bundled | Schema validation, TypeScript tooling |
| next-safe-navigation Type-safe navigation for NextJS App router with Standard Schema support (Zod, Valibot, ArkType, etc.) | 1.9k | +511% | - | 1 year ago 0.4.0 | ESM + CommonJS | Bundled | Schema validation, TypeScript tooling | |
| nhs-numbers Validate NHS numbers in various guises | 1.8k | +51% | - | 4 years ago 1.0.8 | CommonJS | Bundled | Schema validation | |
| validate.io-typed-array-like Validates if a value is typed-array-like. | 1.8k | +94% | - | 10 years ago 1.0.1 | CommonJS | None | Schema validation | |
| @hypequery/serve Code-first TypeScript runtime for validated ClickHouse analytics APIs, OpenAPI, auth, and tenancy | 1.8k | - | - | - | 7 days ago 0.18.0 | ESM + CommonJS | Bundled | TypeScript tooling, Schema validation |
| @jarenjs/contract Operation contracts for the Jaren suite: the jaren-contract document declares JSON-in/JSON-out operations with kind, policy and an HTTP binding, compiled once into per-operation validators, transport normalizers and a static-beats-variable path matcher, s | 1.8k | - | - | - | 6 days ago 0.91.4 | ESM only | Bundled | Schema validation |
| zod-v4-mocks Mock generator for zod v4 | 1.8k | +28% | - | - 3.4.0 | ESM only | Bundled | Testing, Schema validation | |
| stitchkit Contract-first backend framework — one defineContract() into an HTTP API, MCP tools, AI-agent tools and a typed client. Bun and Node. | 1.8k | - | - | 1 day ago 0.96.1 | ESM only | Bundled | Schema validation, WebSockets and realtime | |
| @varlock/astro-integration Astro integration to use varlock for .env file loading - adds validation, type-safety, and extra security features | 1.8k | - | - | - | 13 days ago 1.4.2 | ESM only | Bundled | Configuration, Schema validation |
| bcp47-validate Simple validator for BCP47 locale tags | 1.8k | +234% | - | 9 years ago 1.0.0 | CommonJS | None | Schema validation | |
| validate.io-positive-primitive Validates if a value is a positive number primitive. | 1.8k | +96% | - | 11 years ago 1.0.0 | CommonJS | None | Schema validation | |
| next-validations <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | 1.7k | +8% | - | 1 year ago 1.1.0 | ESM + CommonJS | Bundled | Schema validation, Static site generators and meta-frameworks | |
| @amqp-contract/worker Worker utilities for consuming messages using amqp-contract | 1.7k | - | - | - | 2 months ago 2.4.0 | ESM + CommonJS | Bundled | Queues and background jobs, TypeScript tooling |
| cypress-schema-validator Lightweight Cypress plugin for API schema validation. It leverages both the AJV validator (for plain JSON schemas, Swagger documents, and OpenAPI schemas) and the Zod validator (for Zod schemas). | 1.7k | +611% | - | 3 months ago 2.0.0 | CommonJS | Bundled | Schema validation | |
| siret A simple validation module for french SIRET and SIREN numbers | 1.7k | -3% | - | - 1.0.1 | CommonJS | None | Schema validation | |
| joi-json Builds Joi schemas from JSON objects | 1.7k | +37% | - | 6 years ago 4.0.0 | CommonJS | None | Schema validation | |
| swagger-object-validator Validate your objects against a swagger spec and receive in-depth error traces | 1.7k | -29% | - | 4 years ago 1.4.5 | CommonJS | Bundled | Schema validation, Documentation tooling | |
| @fdograph/rut-utilities Fully typed set of utility functions to parse, validate and generate a Chilean R.U.T.
Set de funciones utilitarias para generar, procesar y validar un R.U.T. Chileno completamente tipado. | 1.7k | - | - | - | 4 years ago 1.4.0 | CommonJS | Bundled | Schema validation, TypeScript tooling |
| validate.io-nonnegative Validates if a value is a nonnegative number. | 1.7k | +156% | - | 11 years ago 1.0.0 | CommonJS | None | Schema validation | |
| @ethanresnick/json-schema-to-typescript compile json schema to typescript typings | 1.6k | - | - | - | 1 year ago 1.2.0 | ESM only | Bundled | TypeScript tooling, Schema validation |
| pixellint Validator for pixels, postbacks, conversion API payloads, and tracking URLs: Meta CAPI, Facebook pixel, GTM, and vendor rulepacks | 1.6k | - | - | 2 days ago 0.31.10 | ESM + CommonJS | Bundled | Schema validation, Linting and formatting | |
| validata Type safe data validation and sanitization | 1.6k | +138% | - | 11 months ago 6.0.4 | CommonJS | Bundled | Security, 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.
- @shexjs/termShape Expressions triple expression evaluator - simple regexp returning 1 error.
- graphile-exportExport in-memory generated GraphQL schemas to JS files when built with our helpers.
- validate-rfcA simple library to validate Mexican RFCs (Tax IDs)
- ip-validatorSuper simple IP Address validator for ipv4 & ipv6
- jschemeA small and simple object schema library for the browser and node
- ascertain0-Deps, simple, fast, for browser and node js object schema validator
- dhl-packstation-validatorA package for validating DHL Packstation addresses
- joi-assertAssert values using Joi schemas
- vuelidate-error-extractorHelps showing vuelidate error messages from translation files.
- @effected/package-jsonpackage.json parsing, editing, validation and file IO as Effect schemas.
- @shexjs/utilShape Expressions validation and utilities.
- barcoderGTIN validation made simple
- koas-parametersKoas parameters attempts to coerce path and query parameters to the type specified in their respective JSON schema.
- @objectstack/specObjectStack Protocol & Specification - TypeScript Interfaces, JSON Schemas, and Convention Configurations
- @openuidev/svelte-langDefine component libraries, generate LLM system prompts, and render streaming OpenUI Lang output in Svelte 5 — the Svelte runtime for OpenUI generative UI
- validate-npm-package-name-cliCLI for npmjs.com/validate-npm-package-name - give me a string and I'll tell you if it's a valid npm package name
- prisma-joi-generatorPrisma +2 generator to emit Joi schemas from your Prisma schema
- mongoose-id-validatorMongoose plugin to validate that ObjectID references refer to objects that actually exist in the referenced collection
- @gqloom/zodCreate GraphQL schema and resolvers easily using using Zod!
- validate-scopeChecks whether a subset is contained in a list of scopes. Uses code generation
- @optique/configConfiguration file support for Optique with Standard Schema validation
- schema2typeboxCreates typebox code from JSON schemas
- validation-utilsValidation utilities
- valibot-envtype-safe environment variables with valibot
- koa-zod-routerInspired by koa-joi-router, this package aims to provide a similar feature-set while leveraging Zod and Typescript to create typesafe routes and middlewares with built in I/O validation.
- @buildwithlayer/json-schema-zod-schemaA Zod Schema for JSON Schemas
- @amqp-contract/clientClient utilities for publishing messages using amqp-contract
- @directededges/specs-schemaSpecs UI Component Schema - TypeScript types and JSON schema definitions for component specifications
- @typeschema/mainUniversal adapter for schema validation
- next-safe-navigationType-safe navigation for NextJS App router with Standard Schema support (Zod, Valibot, ArkType, etc.)
- nhs-numbersValidate NHS numbers in various guises
- validate.io-typed-array-likeValidates if a value is typed-array-like.
- @hypequery/serveCode-first TypeScript runtime for validated ClickHouse analytics APIs, OpenAPI, auth, and tenancy
- @jarenjs/contractOperation contracts for the Jaren suite: the jaren-contract document declares JSON-in/JSON-out operations with kind, policy and an HTTP binding, compiled once into per-operation validators, transport normalizers and a static-beats-variable path matcher, s
- zod-v4-mocksMock generator for zod v4
- stitchkitContract-first backend framework — one defineContract() into an HTTP API, MCP tools, AI-agent tools and a typed client. Bun and Node.
- @varlock/astro-integrationAstro integration to use varlock for .env file loading - adds validation, type-safety, and extra security features
- bcp47-validateSimple validator for BCP47 locale tags
- validate.io-positive-primitiveValidates if a value is a positive number primitive.
- next-validations<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
- @amqp-contract/workerWorker utilities for consuming messages using amqp-contract
- cypress-schema-validatorLightweight Cypress plugin for API schema validation. It leverages both the AJV validator (for plain JSON schemas, Swagger documents, and OpenAPI schemas) and the Zod validator (for Zod schemas).
- siretA simple validation module for french SIRET and SIREN numbers
- joi-jsonBuilds Joi schemas from JSON objects
- swagger-object-validatorValidate your objects against a swagger spec and receive in-depth error traces
- @fdograph/rut-utilitiesFully typed set of utility functions to parse, validate and generate a Chilean R.U.T. Set de funciones utilitarias para generar, procesar y validar un R.U.T. Chileno completamente tipado.
- validate.io-nonnegativeValidates if a value is a nonnegative number.
- @ethanresnick/json-schema-to-typescriptcompile json schema to typescript typings
- pixellintValidator for pixels, postbacks, conversion API payloads, and tracking URLs: Meta CAPI, Facebook pixel, GTM, and vendor rulepacks
- validataType safe data validation and sanitization
- 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