Expand description
Builders turn a source’s (path, bytes) records into graph nodes and edges.
v0.8 ships the fs node builder plus two text builders (parsers):
markdown (edges) and frontmatter (edges + metadata).
Modules§
- frontmatter
- The
frontmatterbuilder: emits link edges from frontmatter link-target values, plus the parsed frontmatter block as metadata on the file it read. It is colocated — its metadata is about its own file — so its drift rides the file’sfshash; it contributes no hash of its own. - fs
- The
fsbuilder: the base graph. Emits a node per file, typed by stat, plus a symlink edge per symlink. It does not hash — drft auto-hashes at the wiring seam (seecrate::graphs). - markdown
- The
markdownbuilder: emits link edges from[text](path)body links. It contributes no node metadata — cross-graph linkage tofsnodes happens at compose by path coincidence.
Functions§
- link_
edge - Turn a raw link string discovered by a text builder into an edge from
sourceto its resolved target.