Skip to content

manni graph

Deterministic knowledge graphs derived from documentation frontmatter and formatting.

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.

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.

Build it:

Terminal window
$ npx @hawkeyexl/manni graph build docs/
Wrote graph/graph.ttl (3 docs, 157 triples, 3 concepts)

Ask it what nothing links to:

Terminal window
$ npx @hawkeyexl/manni graph stats
Orphan docs (1):
docs/troubleshooting.md
Broken internal links (1):
docs/troubleshooting.md -> missing.md
Broken section refs (1):
docs/getting-started.md -> #renamed-heading

Check it as a whole:

Terminal window
$ npx @hawkeyexl/manni graph check
warning: 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 notices

Two 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.

GoalStart here
See my docset as a graph and find what nothing links toGet started
Understand what becomes a triple before I commit to itHow manni graph works
Ask the corpus questions prose cannot answerExplore the graph
Know what a change to one page affectsSee what a change affects
Categorize pages that predate the vocabularyFill the vocabulary
Gate the docset’s structure on every pull requestRun it in CI
Ship the graph to a retrieval system or a portalPublish the graph
Hand an agent each passage with its proofServe the docs to an agent
Ground a site’s Ask AI in the docs’ proofRetrieve in a browser or from a script
Enforce my own house rules about structureGovern the graph
Unblock a pull request that just went redFix a failing check
Look up a flag, a config key, or a wordReference

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.

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.

Terminal window
npm install -D @hawkeyexl/manni
npx @hawkeyexl/manni graph init