Skip to content

About

Fractal Brain for Obsidian: a live graph over your notes — typed relationships, connection notes, folders as clusters; Mermaid brain maps included

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🧠 obsidbrain

Fractal knowledge maps for Obsidian, powered by the Excalidraw plugin.

Turn any folder into a stable, zoomable, infinitely-nestable visual map, with positions that never move out from under you, and arrows that come from your actual wikilinks.

The system now builds itself faster than we can design it. The bottleneck is your design decisions, not the code, and that's exactly where it should be.

flowchart TB
  classDef folder fill:#fff7ed,stroke:#c2410c,color:#1d1d1f,stroke-width:2px
  classDef note fill:#ffffff,stroke:#64748b,color:#1d1d1f
  classDef hub fill:#ecfdf5,stroke:#047857,color:#1d1d1f,stroke-width:2px
  nGarden["📁 Garden"]:::hub
  nGarden_Fields["📁 Fields"]:::folder
  nGarden_Inbox["📁 Inbox"]:::folder
  nGarden_Journal["📁 Journal"]:::folder
  nGarden_Methods["📁 Methods"]:::folder
  nGarden_People["📁 People"]:::folder
  nGarden_Projects["📁 Projects"]:::folder
  nGarden_Sources["📁 Sources"]:::folder
  nGarden_attachments["📁 attachments"]:::folder
  nGarden_Welcome_md["Welcome"]:::note
  nGarden_Welcome_md -->|"feeds ×2"| nGarden_Fields
  nGarden_Inbox -->|"nourishes ×2"| nGarden_Fields
  nGarden_Sources -->|"nourishes ×2"| nGarden_Fields
  nGarden_Welcome_md -->|"feeds"| nGarden_Inbox
  nGarden_Welcome_md -->|"feeds"| nGarden_Methods
  nGarden_Welcome_md -->|"feeds"| nGarden_Projects
  nGarden_Welcome_md -->|"feeds"| nGarden_Sources
  nGarden_Journal -->|"feeds"| nGarden_Inbox
Loading

The Knowledge Garden brain map, generated and rendered by Mermaid. Every arrow is a real relationship; labels name the kind. See the full Gallery.

The Fractal Brain view

The map is a view over your notes, never a stored drawing. The obsidbrain plugin renders your brain live: notes, folders as expandable clusters, and typed colored edges built from your wikilinks and connection notes.

  • click a note → opens it · click an edge → opens that relationship's connection note
  • double-click a folder → expand / collapse its children in place (dive)
  • ⛶ full screen stays inside Obsidian · parallel relationships render as separate labeled edges
  • nothing is saved: edit a note, reopen, the brain is current

Fractal Brain view

Diagrams that never break

Brain maps are generated per folder as _index.map.md (renders natively in Obsidian and on GitHub, like the diagram above) plus a fullscreen _index.map.html with pan/zoom. The diagram source follows locked rules (direction, short quoted labels, a ≤12-node budget per view, relation-typed classDefs), so layout quality is enforced by construction, not by hand.

Diagram rendering powered by Mermaid, the same engine behind our sibling project systembrief (strategy-first architecture briefs).

Every image in this README is rendered from a real generated map. See the full Gallery.

Why

Tool The problem obsidbrain's answer
Graph views nodes float on springs: the map you memorized is gone on every navigation the graph is the interface: typed relationships, folders as clusters, always current
Folder trees structure is invisible; you scroll, you don't see every folder becomes a map: files as cards, subfolders as pods with live embeds
Hand-drawn diagrams arrows drift, layouts rot, maintenance kills them maps are generated from your notes: zero maintenance, regenerate any time

The three scripts

Script What it does
Fractal Index Generates a folder's map: file cards, subfolder pods with live embeds of their own maps, breadcrumbs, and relationship-aware arrows
Fractal Sync One command regenerates the entire brain: every level, prompts once. This is your weekly review
Fractal Navigate Startup script: click a pod to dive into its embedded map, click again to surface, drag cards and arrows follow live

Install

From this repo (recommended)

Open the Excalidraw Script Store in Obsidian (Excalidraw settings → Scripts → Script store), or download the scripts directly into your vault's script folder:

Then in Obsidian: Settings → Excalidraw → Scripts → Startup script → Excalidraw/Scripts/Fractal Navigate.md (makes dive/arrow-tracking active in every drawing).

Try it with a demo brain first

git clone https://github.com/ActArtech/obsidbrain.git
cd obsidbrain
node examples/install-demo.mjs knowledge-garden "<path-to-your-vault>"

That installs a 51-note showcase brain with deliberate link topology: the READMEs predict which arrows you'll see, so you can verify everything works.

Rebuild maps without opening Obsidian

node scripts/build-index.mjs "<path-to-vault>"   # regenerates every _index map on disk

The 5-minute start

  1. In any folder, create an Excalidraw drawing named _index
  2. Open it → Excalidraw Scripts panel → Fractal Index → "folder + create sub-indexes" → "with note-link arrows" → pick a direction (TD = hierarchy, LR = journey)
  3. Click a pod: the canvas dives into that subfolder's own map. Click again: surface
  4. Weekly: open the root map and run Fractal Sync: every level regenerates in one command. Nothing you arranged by hand ever moves

What makes it different

Positions you can trust

Every node's position comes from a persistent slot identity. Regeneration adopts your manual arrangement instead of snapping back to a grid. Renamed folders keep their positions. New files append; deleted files vanish. The Fractal Index tests cover rename, move, delete, add, and reorder churn.

Relationship-aware curved arrows

Arrows come from your notes' actual wikilinks (metadataCache.resolvedLinks): never hand-drawn, never stale. Five relationship types are inferred from topology, each with its own visual signature:

Type Meaning Look
resonates mutual link (A→B and B→A) thick solid purple, double-headed, Bezier curve
peer same-folder link solid purple, single arrow
bridges pod↔pod cross-folder dependency dashed blue
nourishes pod→card dotted muted purple
feeds card→pod thin dotted light purple

Structural edges (spine, stubs) use orthogonal routing; relationship edges use Bezier curves; shape carries meaning.

Four projections of one hierarchy (bonus: dual-views)

For outcome-driven work management, the dual-views/ CLI turns one GitHub-backed work hierarchy into four synchronized views: treemap (where is the mass?), story map (does the journey hold?), timeline (how far along?), and workmap (fractal drill-downs). CI-friendly, zero dependencies:

node dual-views/cli.mjs --source gh:owner/repo --out views

Agent-callable (bonus: MCP)

mcp/ ships a zero-dependency Model Context Protocol server so AI agents can generate maps, sync brains, query link graphs, and drive dives as tool calls.

Documentation

  • Full guide: philosophy, quick start, feature reference, FAQ
  • The workflow: the daily/weekly operating loop
  • Use-case recipes: 5 personas with folder shapes and link etiquette
  • Changelog: release index; per-component history in fractal-index/ and dual-views/
  • Gallery: rendered maps with captions
  • Review and fixes: changes, verification, and upstream PR handoff
  • Examples: three installable brains, small → showcase scale

Requirements

  • Obsidian ≥ 1.8.7 with the Excalidraw plugin ≥ 2.0.0 (developed against 2.28.1)
  • dual-views / mcp: Node ≥ 20

Status & roadmap

Automated suites define 104 checks across Fractal Index (54), dual-views (46), and MCP (4). The original scripts were live-verified on Obsidian 1.14.4 + Excalidraw 2.28.1; see the latest verification report for the current changes.

Roadmap: ELK-layered first-run layout (code in place; activates when the CDN is reachable from Obsidian's renderer), coverage/age lens for dual-views.

License

MIT © 2026 obsidbrain contributors

About

Fractal Brain for Obsidian: a live graph over your notes — typed relationships, connection notes, folders as clusters; Mermaid brain maps included

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages