Case study 3 of 5

myjsoneditor.comA JSON editor that never uploads your data

A full JSON workbench that runs in your browser, works offline, and keeps every digit.

For
My own product
When
Sep – Oct 2026
My role
Designed, built and launched it
Automated tests
10,000+in CI, with zero type errors

The problem

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

your browser · myjsoneditor.comThe pageAstro HTML and CSS, light and dark97 pages, each with a guideThe editorCodeMirror 6 panescode, tree, table, graphThe engines, hand-writtenparser, JSONPath, diff, repairconverters, code generatorsService-worker cacheevery file the page needslist checked at build timeCloudflare Pagesstatic files onlyfirst visitA server thatreceives your documentdoes not exist: no uploadsyour browserThe pageAstro HTML and CSS, light and dark97 pages, each with a guideThe editorCodeMirror 6: code, tree, table, graphThe engines, hand-writtenparser, JSONPath, diff, repair,converters, code generatorsService-worker cacheevery file the page needs,list checked at build timeCloudflare Pagesstatic files onlyfirst visitA server thatreceives your datadoes not exist
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.

  1. 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.
  2. 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.
  3. 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).
  4. 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

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.

Stack