JSON is what you copy out of an API response, a configuration file or a data export. It is often exactly the kind of thing that should not leave your machine. Yet the quick way to format or check it is to paste it into a website that sends it to a server.
I wanted a tool where that question never comes up: every operation in the browser, no uploads, no accounts, no cookies, no analytics, and still working with the network switched off.
What I built
An editor that shows one document four ways (code, tree, table and graph) or two documents side by side to compare. Around it: tools to format, validate, repair, minify and query JSON; converters to and from YAML, XML and CSV; and generators that turn a sample into TypeScript, Zod, Pydantic, Go, Rust, Swift and more, 13 targets in all, including the structured-output schemas OpenAI, Claude and Gemini expect. In all, 97 pages, each with a guide below the tool.
How it works
One static site. Astro builds plain pages; CodeMirror 6 runs the code panes; Tailwind styles them, light and dark. There is no server code at all.
Hand-written engines. The parser, JSONPath, diff, repair, every converter and every code generator are written for this product.
Offline by design. A service worker stores every file a page needs. The build fails if the list is incomplete or a file's fingerprint does not match.
Locked down. A strict Content-Security-Policy lets the browser run only the scripts the build produced.
After the first visit the whole product lives in the browser. There is no server to send a document to. Drawn from the project's README.
Hard parts and decisions
Four choices shaped the product. For each: what I could have done, and what I chose.
No new dependencies
A small, closed set of code in the browser that I understand line by line, and nothing that can change under me.
Could have
Installed a package for each feature: a YAML library, a schema validator, a JSONPath engine.
Chose
Write every engine myself; when a spec is too big, implement a named subset of it (JSONPath follows RFC 9535).
Cost
More code to write and test.
A number is text until you change it
JavaScript cannot hold 12345678901234567890 exactly. An editor that parses and re-prints a document would quietly change it.
Could have
Parsed the document into JavaScript values and printed it back.
Chose
Nothing that writes a document goes through a JavaScript value: numbers, strings and keys are copied as their original text. Large numbers keep every digit; keys keep their order.
Cost
One serializer that every write must go through, and comparison rules of its own.
Measure before building a worker
The same profile found two bugs nobody was looking for: the document was parsed twice on every pause, and crash recovery silently stopped working above about 3.5 MB. Both were fixed the same day.
Could have
Moved parsing to a background thread, the obvious speed-up.
Chose
Fixed four rules for what would justify a worker, then measured. Sending the parsed tree back costs six to eight times more than parsing it, so the answer was never.
Cost
A benchmark harness to build and keep (npm run bench).
Offline means no lazy loading
A feature fetched on click fails when you are offline, even though the page loaded.
Could have
Split the code and loaded each feature when it is first clicked.
Chose
Everything a page can do ships with the page, and the service worker's file list is checked at build time.
Cost
A bigger first download for every page.
Making it reliable
10,000+ automated tests in CI, and type checks with zero errors, warnings or hints.
A 1,551-row QA checklist, run by a headless browser as well as by hand; every failing row names the task that will fix it.
A size budget, measured gzipped after every clean build: 321 KB of JavaScript and 27 KB of CSS for the whole site today.
Accessibility: every text colour clears WCAG AA contrast on every background, checked by a test; Lighthouse accessibility 96 on desktop and 100 on mobile for the home page.
Releases on purpose: only a production branch goes live, and only I push it.
Outcome
1.5 monthsfrom the first commit (September 2026) to the site going live (October), with 753 commits. It is on its third release.
My role and the team
I own the product: what it does, how it looks, and every rule it follows. The code was written with AI coding agents, Claude Code and Codex. I worked like a lead with a team: each change starts as a task card with everything the builder needs, and is reviewed and checked before it is merged. By launch that was 753 commits.