# stranger6667/jsonschema

> jsonschema is a validator that checks JSON documents against JSON Schema definitions. It compiles a schema into a reusable Validator, which then tests each JSON instance against that schema and reports whether it conforms. The core is written in Rust, and the project also provides Python and Ruby bindings and a command line interface.

Source: https://github.com/stranger6667/jsonschema
Indexed: commit 5632f84 on 2026-10-16 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: App
- Language: Rust
- Stars: 837 at index time
- License: MIT
- Code health: 6.8/10, Fair
- Last commit: 2026-10-16
- Contributors: 4

## How to use

Validate an instance file against a schema file using the command line interface.
    jsonschema-cli validate schema.json -i instance.json

## How it works

Most of the code sits under the crates directory, which holds 466 of the 673 files in the repository. crates/jsonschema/src/lib.rs is the source of the jsonschema library crate, which the index lists as a hotspot file. crates/jsonschema/src/canonical/parse.rs and crates/jsonschema/src/canonical/algebra.rs sit in the canonical directory and support the experimental schema canonicalization feature. crates/jsonschema-cli/src/main.rs is the entry point of the jsonschema-cli crate, which provides the validate command. A schema and an instance go in, and the result comes out as a validation outcome or as Structured Output v1 reports in flag, list or hierarchical form.

- crates/benchmark-suite/src/lib.rs: entry point
- crates/benchmark/src/lib.rs: entry point
- crates/jsonschema-bench-magnus/src/lib.rs: entry point
- crates/jsonschema-bench-pyo3/src/lib.rs: entry point
- crates/jsonschema-cli/src/main.rs: entry point
Modules: crates, examples, fuzz, ecosystem, playground, profiler, tools. 673 files, 134,745 lines, 12,976 symbols.

## Code health

- Score: 6.8/10 (Fair)
- Rank: #165 of 4,000+ indexed repos
- Hotspots: crates/jsonschema/src/canonical/parse.rs, crates/jsonschema/src/canonical/algebra.rs, crates/jsonschema/src/lib.rs, crates/jsonschema/src/keywords/ref_.rs, crates/jsonschema/src/canonical/negate.rs
- Lowest file: crates/jsonschema/src/compiler.rs
- Dead code: none found

## Maintenance

- Last commit 2026-10-16, first commit 2026-07-28, 500 commits
- 4 contributors, bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/stranger6667/jsonschema/security

## More

- Page: https://repowise.dev/repo/stranger6667/jsonschema
- Ask this codebase: https://repowise.dev/repo/stranger6667/jsonschema/chat
- Docs: https://repowise.dev/repo/stranger6667/jsonschema/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/stranger6667/jsonschema
