Map the dependency graph between an OpenAPI document's components: what each one uses, what uses it, which are recursive and which are dead weight.
Waiting for a document
OpenAPI in JSON or YAML. Nothing is fetched.
Edges run from the component that holds a reference, not from the exact position it was written — so a reference nested six levels inside a schema is attributed to that schema. That is what makes the counts mean “what breaks if I change this” rather than “how many lines mention it”.
Paste a document to see which definitions depend on which, and which depend on nothing.
The graph covers references inside this document only. A reference to another file is a node this tool cannot see the far side of, because nothing is fetched — so a specification split across files shows fewer edges than it really has, and the unused list will include components that something in another file does reference. Bundle it first for a complete picture.
OpenAPI Reference Graph runs entirely on your device — your specification is read in your browser and no referenced file is ever requested.
You’re on the Free plan. Compare plans
A component in an OpenAPI document is used by things you cannot see from where it is defined. Changing one means finding every operation that reaches it, which in a long document means reading the whole file.
This builds the graph instead. For each component: what it references, what references it, and how deep the chain goes. The most-depended-upon components sort to the top, because those are the ones where a change is expensive.
The unused view is the one that earns its place in a review. A schema nothing references is either dead weight from a removed endpoint or a sign that something which should reference it does not — and both are worth knowing before the document grows another hundred lines.
Recursive components are listed separately rather than reported as problems. A self-referential schema is how a tree, a comment thread or a nested category is described, and a tool that flagged them all as errors would be wrong about every one.
The graph is built from local references only. Nothing is fetched, so an external reference appears as a leaf with its target named rather than being followed.
No. A shared library of schemas, or a component kept for a client generator, is legitimately unreferenced by the paths. The list is a prompt to look, not a verdict.
No. They are listed on their own so you know where the self-reference is, because a recursive schema is the correct way to describe anything tree-shaped.
They appear as leaves with their target named, and are not followed. Nothing is fetched, so a reference into another file ends the chain there.
The longest chain of references from a component to something that references nothing further. A deep chain is not wrong, but it is what makes a document hard to read at the operation.
No. It is parsed in your browser, which matters when it names internal services or unreleased endpoints.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab