Pasting an internal API spec into a website is a hard sell. The spec lists every endpoint and every field, and sometimes the hosts behind them, so you want to know where it goes.
We build Graphwake, which tells the teams that consume an API when a change in its OpenAPI spec is about to break them. Along the way we built a free OpenAPI diff where the comparison runs in your browser tab. Paste the old and the new spec, choose two files or give two URLs, and it shows every change that can break a client. Free, no sign-up.
Old spec on the left, new spec on the right. Paste, pick a file or give a URL.
What it checks
A breaking change is one that can make an existing client fail. These come first in every result:
- Something is removed: an endpoint or a response field.
- Something new is required: a parameter or a request field.
- A type changes: a number becomes a string.
- Accepted values narrow: an enum value goes, a maximum shrinks, a pattern gets stricter.
A new optional field, endpoint or response code breaks no one. Those are listed separately, out of your way.
How it reads
The "Try an example" result, as it looks in the browser.
- OpenAPI 3.0 and 3.1, YAML or JSON. A Swagger 2.0 spec is converted to OpenAPI 3.0 first, and you can download the converted file.
- Like a code review. The new spec sits next to the old one, line by line, and each change sits under the line it comes from, with the endpoint it affects. (A JSON spec has no usable line anchors, so its changes are listed as "No line in the spec".)
- Copy as Markdown turns the breaking changes into a list you can paste into a pull request or a chat thread.
- Try an example loads an orders API pair: 3 breaking changes (a removed
DELETE /orders/{id}, a new requiredcurrencyquery parameter, a removedtotalresponse field) and 2 non-breaking ones.
Your specs stay in the tab
A file you choose is read in the tab. A URL is fetched by your browser straight from that address, so that server has to allow it (CORS). We never receive the spec, the file or the URL. If you want to check, keep the Network tab of your DevTools open while you compare.
Two limits come with running in the browser. A spec can be up to 10 MB of text, but very large specs, a few megabytes of YAML, can take longer than the 20 seconds the browser check allows; the result then says so. And references to other files ($ref: ./schemas.yaml) can't be followed, so bundle the spec into one file first.
How it runs in the browser: Go compiled to WebAssembly
The comparison is written in Go and compiled with GOOS=js GOARCH=wasm into one WebAssembly file that does a single job: it takes two spec texts and returns the result. The page runs it in a Web Worker, so a big spec doesn't freeze the tab.
A few things we learned on the way:
- Size is the cost. The file is about 25 MB raw and 5.5 MB gzipped. Building with
-ldflags="-s -w"and leaving out code the engine never runs brought it down. We serve it gzipped and unpack it in the browser withDecompressionStream. - Load it late. The engine downloads on the first Compare or Try an example (or when you click into an editor). Someone who only reads the page, a search engine included, never downloads it.
- Keep the engine dumb about the network. It makes no requests at all. When you give a URL, the page fetches the text and hands it over, so the engine only ever sees two strings.
- Split the work. Go finds the changes that matter and where they are in each spec. The page then draws the line by line view and places each change under its line.
- Same rules as the product. The Go code sorts changes into breaking and non breaking exactly like the Graphwake backend does, so the tool and the pull request check agree.
The question a diff can't answer, and how Graphwake answers it
A diff tells you what changed. Whether the change is safe depends on something else: who calls this endpoint? The author of the change usually doesn't know, and nobody keeps the list.
That is what Graphwake is for. Consumer teams subscribe to the endpoints they use. When a pull request changes a spec, Graphwake runs this same check, scores the change from 0 to 100 and tells only the teams subscribed to the affected endpoints, in Slack, Microsoft Teams or email, before the merge. On GitHub and Azure DevOps the pull request also gets a comment with the breaking changes, the teams they affect and the impact score. (Graphwake itself watches OpenAPI 3.x specs, so use the converted file if you start from Swagger 2.0.)
Example: the same kind of breaking change, sent only to the teams that call the endpoint.
Do you paste internal specs into online tools today, or is that off limits where you work?
About Graphwake. We build Graphwake, a dependency map for your APIs. It watches your OpenAPI specs, knows which teams consume each endpoint, and tells only those teams in Slack, Microsoft Teams or email when a change is about to break them. Start a 7-day free trial at graphwake.com



