manni graph
Some failures exist only across pages. A page nothing links to is one, and a
reader browsing the site never reaches it. A concept two pages spell two ways
is another, and search splits it in two. No per-file check can see them, and
manni graph can.
Your docset is already a graph. Pages link to pages, headings nest, tags repeat
across sections, and git knows who wrote what. manni graph reads all of that and
writes it down as one file you can query, check, and hand to a retrieval
system.
Nothing is inferred from prose. A triple exists because frontmatter, a link, a heading, a code block or git history put it there.
With the other domains
Section titled “With the other domains”manni graph reads what the other domains already keep. A page’s metadata is
what manni meta validates, sidecar manifests included. Under
the terms source, the termbase manni term checks becomes the
graph’s concept scheme. manni strategy records become typed
nodes, so the graph can say which pages serve a journey. Per-file checks stay
with their own domains. manni check runs graph check once
manni.config.yaml has a graph: section.
The 60-second version
Section titled “The 60-second version”Build it:
$ npx @hawkeyexl/manni graph build docs/Wrote graph/graph.ttl (3 docs, 157 triples, 3 concepts)Ask it what nothing links to:
$ npx @hawkeyexl/manni graph statsOrphan docs (1): docs/troubleshooting.md
Broken internal links (1): docs/troubleshooting.md -> missing.md
Broken section refs (1): docs/getting-started.md -> #renamed-headingCheck it as a whole:
$ npx @hawkeyexl/manni graph checkwarning: docs/configuration.md, docs/getting-started.md: Pages spell this concept two ways: "Installation" and "installation". Use one spelling on every page that names it. at https://example.com/dd/concept/installation skos:prefLabel manni:graph-shapes:1.3.0 Concept-prefLabel-collision: One name per language, so search and the glossary agree on a spelling. Guide: https://hawkeyexl.github.io/manni/graph/fix/
0 errors, 1 warning, 0 noticesTwo pages named one concept differently, so they collided on a single node. That finding exists in neither file. No API key, no network, no model.
What are you trying to do?
Section titled “What are you trying to do?”| Goal | Start here |
|---|---|
| See my docset as a graph and find what nothing links to | Get started |
| Understand what becomes a triple before I commit to it | How manni graph works |
| Ask the corpus questions prose cannot answer | Explore the graph |
| Know what a change to one page affects | See what a change affects |
| Categorize pages that predate the vocabulary | Fill the vocabulary |
| Gate the docset’s structure on every pull request | Run it in CI |
| Ship the graph to a retrieval system or a portal | Publish the graph |
| Hand an agent each passage with its proof | Serve the docs to an agent |
| Ground a site’s Ask AI in the docs’ proof | Retrieve in a browser or from a script |
| Enforce my own house rules about structure | Govern the graph |
| Unblock a pull request that just went red | Fix a failing check |
| Look up a flag, a config key, or a word | Reference |
What makes it different
Section titled “What makes it different”It reads, it does not guess. Frontmatter, links, headings, images, code blocks and git history become triples. Nothing else does. A wrong answer is always traceable to a line in a file.
It catches what no per-file check can. A concept split across two
spellings, a broader cycle closed by three pages, a link to a page that no
longer exists. These failures exist only after the corpus merges into shared
nodes, which is why manni graph check validates the graph rather than the files.
It is deterministic. Two builds over unchanged inputs are byte-identical: canonically sorted output, no blank nodes, and no wall clock anywhere. The graph is safe to commit, diff and cache.
The output is somebody else’s input. JSON-LD for a linked-data ingester. A conformant iiRDS package for a content delivery portal. A search index a dependency-free browser runtime reads client-side. Publish on the run that gated it, so what ships is what passed.
One model call, clearly marked. manni graph fill is the only verb that
reaches a provider. The budget is counted in inference calls rather than
dollars, and every value it writes is attributed for review.
Requirements
Section titled “Requirements”Node.js 24 or newer. No hosted service, no account. Git is used where it is available and its absence is a warning, not a failure.
npm install -D @hawkeyexl/manninpx @hawkeyexl/manni graph init