A high-performance JSONSchema validator that uses code generation for maximum validation speed.
is-my-json-valid is a JSONSchema validator library that compiles JSON schemas into optimized JavaScript code for extremely fast validation. It solves the problem of slow schema validation in high-performance applications by generating efficient validation functions at runtime. The library supports most JSONSchema v4 features and provides detailed error reporting.
Developers building applications that require high-performance JSON validation, particularly those working with APIs, data processing pipelines, or any system where validation speed impacts overall performance.
Developers choose is-my-json-valid because it consistently benchmarks as the fastest JSONSchema validator available, using code generation to achieve performance that significantly outperforms interpretation-based validators while maintaining full schema compliance.
A JSONSchema validator that uses code generation to be extremely fast
Compiles schemas into optimized JavaScript code, making it consistently the fastest validator in benchmarks like json-schema-benchmark and cosmicreals.com.
Supports verbose mode with error values and schema paths, providing actionable insights for debugging validation failures.
Includes typings that construct interfaces from schemas, enabling type-safe validation and better developer experience in TypeScript projects.
Allows custom formats via regex or functions and supports external schema references with $ref, offering tailored validation rules.
Missing support for remoteRefs and has known bugs with unicode length validation, which may break strict schema adherence for some applications.
The README admits typings are 'early on and not perfect,' potentially causing type issues in complex or edge-case schemas.
Initial schema compilation adds setup time, making it less efficient for one-off validations or dynamically changing schemas compared to interpreters.
TypeScript-first schema validation with static type inference
Dead simple Object schema validation
The most powerful data validation library for JS
The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.