Paste a JSON Schema contract and one or more JSON outputs an AI tool produced. Get a deterministic PASS/FAIL per output — exact violation, exact path — plus a canonical SHA-256 hash so you can tell "reformatted the same answer" apart from "quietly changed the answer" across reruns. Everything runs in your browser; nothing is sent anywhere; the same inputs always produce the same verdict, on this page or anyone else's copy of it.
Kar-Conform tells you whether JSON outputs match their JSON Schema contract, every violation with its exact path, and whether two runs really differ or were only reformatted. It runs entirely in this page: nothing you paste is sent anywhere, and no AI judges anything.
Below the tool: how it works · words on this page · blueprint · roll it out · for a business · FAQ
type, required, properties, additionalProperties, patternProperties, items (incl. tuple form), enum, const, minimum/maximum/exclusiveMinimum/exclusiveMaximum/multipleOf, minLength/maxLength/pattern, minItems/maxItems/uniqueItems, allOf/anyOf/oneOf/not, local $ref into $defs/definitions.if/then/else, prefixItems, dependentRequired, $dynamicRef, a $ref to another file or URL, and the rest) FAILS every output with a message naming the rule and where it sits. It never passes an output against a rule it did not check. Version 1 skipped such rules silently; version 2 refuses them.format is checked for email, date, date-time, URI and UUID only, each by a simple pattern rather than the full official grammar: a format failure is a strong hint, not a final verdict. Any other format name (hostname, ipv4…) is not checked, as the JSON Schema standard allows.{"city": "Paris", "country": "Germany"} has the right shape, two strings, and is still wrong.1.0 and 1 match, "1" and 1 do not. "Nearly the same" never counts as the same.One per box. Add every run you want compared — e.g. the same prompt called three times.
(path, message).v recursively: objects → {} with keys sorted ascending by UTF-16 code unit and re-emitted as "key":canon(value) joined by commas; arrays → [] with elements in original order; strings → standard JSON string escaping; numbers → the ECMAScript Number.prototype.toString() form (reject NaN/Infinity, normalize -0 to 0); true/false/null literally. No inserted whitespace anywhere.SHA-256, hex-encoded lowercase. That is the hash shown per candidate and for the contract itself.$/email.{"b":2,"a":1} and { "a": 1.0, "b": 2 } give the same hash, so two runs that agree show as one.kernel.mjs (the file the tests run) and into the script, so all three are the same code.kernel.mjs.if (count > 0) into if (count >= 0), then runs the tests. Every change must make a test fail. A change no test notices has survived: it would mean no test checks what happens at that exact point. A change reviewed as equivalent cannot alter any result (both versions give the same answer for every input), and the reason is written down and checked.build.mjs copies it byte for byte into kernel.mjs (which the tests and the mutation gate run) and into scripts/kar-conform.mjs (the one-file agent skill). CI fails if the three ever differ, so the page you use, the code that is proven and the script an agent runs are the same code.kernel.test.mjs tests the kernel; skill.test.mjs runs the shipped script on its own, the way an agent platform runs it, against the expected outputs in examples/.< becomes <=, an && becomes ||) and re-runs the tests. Every change must make a test fail: that proves the tests check each of those points, rather than just running the code (see Mutation gate in Words on this page). From receipts/witness.json: reading the receipt…checkcase.mjs, tested and mutation-gated in the same way as the kernel, in its own CI job. It uses only published figures (the UK median wage and UK inflation), each linked under the table.node scripts/kar-conform.mjs schema.json output1.json in CI or a script (Node.js 20 or later, no dependencies). Exit code 0 means every output passes, 1 means at least one fails, 2 means the input could not be read. An AI agent can run the same script as a skill.Kar-Conform turns a check that is usually done by eye, or not at all, into a verdict anyone can recompute: the same input gives the same answer and the same SHA-256 receipt on any machine, with no AI judging it.
$/items[2]/price, not "invalid JSON".What the checking costs today against running the tool. Staff time is at the UK median hourly wage with on-costs left out, so this is a floor; later years rise with UK inflation (CPI). Change any box to your own numbers and the table recalculates as you type.
How it is worked out. Today: checks a year (per week × 52) × minutes per check × the median hourly wage, plus anything you pay for a tool now. With the tool: the share it replaces takes the seconds you enter instead of the minutes, and the rest is still checked by hand. Each later year rises by one more year of inflation.
| year | checking by hand | with Kar-Conform | saved |
|---|
Supplied by AI Native Solutions; start through that site. Support, any service level, warranty and liability are agreed per deployment, in each deployment's agreement. The software is MIT and keeps running without us.
$ref, if/then/else, dependentRequired, unevaluatedProperties and $dynamicRef are not checked, and an unknown format is ignored.format checks are patterns, and pattern uses JavaScript regular expressions.A check that anyone can recompute replaces a check that has to be trusted, at no licence cost, without sending your data anywhere. Its logic is the code on this page, and its tests are themselves tested.
scripts/kar-conform.mjs), usable as an agent skill after every structured call.if/then/else, prefixItems, dependentRequired or a $ref to a URL) FAILS every output with a message naming the rule and where it sits, instead of passing quietly. Version 1 skipped those rules silently, so an output that broke an if/then rule came back PASS; version 2 refuses the schema. A schema file that cannot be read or parsed is refused (exit 2).node --version shows which one you have): download scripts/kar-conform.mjs (one file, no dependencies, no npm install) and run it with no arguments to see how to call it.