Skip to main content
smolbren extracts every wikilink from note frontmatter and stores them as typed edges in the index. The links command shows which notes a given note points to (outgoing edges), while backlinks shows which notes point to it (incoming edges). Both commands support filtering by edge type so you can focus on a specific kind of relationship. Fetch the outgoing wikilink edges from a note — i.e. the notes that this note references. Synopsis
string
required
The vault-relative ID of the source note (path without .md). For example, blogs/context-engineering. See Note ID format.
string
Filter results to only edges of this relationship type. The edge type is the frontmatter key that contained the wikilink, e.g. mentions, for, derives_from. Use smolbren edges to discover what edge types exist in your vault.
Output Returns a JSON array of edge objects, sorted by (edge_type, position) — i.e. alphabetically by relationship type, then in the order the wikilinks appeared within each frontmatter field. Example

Fetch the incoming wikilink edges pointing to a note — i.e. the notes that reference this note. Synopsis
string
required
The vault-relative ID of the target note (path without .md).
string
Filter results to only incoming edges of this relationship type.
Output Returns a JSON array of backlink objects, sorted by (edge_type, from_id) — alphabetically by relationship type, then by source note ID. Each object is enriched with the source note’s type and title from the notes dataset. Example

An edge with "resolved": false means the wikilink target recorded in to_id could not be matched to any indexed note at the time of the last smolbren index run. This can happen when a note is referenced before it exists, or when it is deleted. After adding or renaming the target note, run smolbren index to re-resolve the link. Run smolbren index --full to recompute all edge resolutions across the entire vault.