by Chizmo
Extends the Bases Relation and Lookup properties into a visual diagram view, laying out notes as table-style nodes connected by relationship lines.
Base Diagram
Turn any folder of notes into a relationship diagram — powered entirely by Bases and your own frontmatter. No proprietary file format, no separate database. Your notes are the data; Base Diagram just draws them.
Your notes stay the single source of truth. Base Diagram never stores your content anywhere else — it only reads what's already in your frontmatter.
What it does
Point Base Diagram at a folder, and it will:
- Read every note's frontmatter and treat any link-type property
(e.g.
related: "[[Other Note]]") as a relationship - Draw each note as a table-style box: title, then its other properties
- Draw an arrow from the note that holds the link (the source) to the note it points to (the target)
- Let you drag boxes into whatever layout makes sense to you — positions are saved per folder, so they're still there next time you open the diagram
- Let a note open in a new tab with one click, right from its box
This is not a full ER-diagram tool with formal cardinality notation — it's a lightweight way to see how the notes in one folder relate to each other, using data you were probably already writing.
Use cases
Base Diagram doesn't care what your notes are about — anything you can express as "this note relates to that note" works:
- Character relationship maps for fiction writing
- Project structure: planning notes, research, tasks, and ideas
- Worldbuilding: locations, factions, and events
- Lightweight data or system design sketches
Why not just use the graph view?
Obsidian's built-in graph view shows your entire vault, all the time, with no control over layout. Base Diagram is scoped and intentional instead:
| Graph view | Base Diagram | |
|---|---|---|
| Scope | Whole vault | One folder |
| Layout | Automatic | Manual, saved |
| Shows | Links exist | What's inside each note |
| Best for | Discovery, browsing | Designing, structuring |
Getting started
-
In a folder, add a link-type frontmatter property to a note, e.g.:
--- related: - "[[Some Other Note]]" type: table status: draft ---Tip — adding properties in Live Preview: In Live Preview (Obsidian's default mode), typing
---or-by hand is treated as Markdown (a horizontal rule or a list), so the YAML won't come out right. Use one of these instead:- Paste the whole YAML block above at the top of a note — it turns into properties automatically
- Or run Add file property, then type
[[in the value to pick a note
-
With a note in that folder open, run Open relation diagram from the command palette.
-
Drag boxes around to arrange them. Your layout is remembered.
-
Click Open note on any box to jump straight to it.
-
After restarting Obsidian, click the refresh button in the view's header to redraw the diagram — no need to rerun the command.
Tips for readable diagrams
- Keep property names and values short — long values are truncated to fit the box (hover a truncated value to see the full text)
- One note, one concept — split ideas across notes and link them, rather than cramming everything into one note
- Pick a consistent direction for your links (e.g. always link from a derivative note to its source) so arrows stay easy to read over time
related(or whatever property you use for links) is not itself shown as a property row — it becomes the arrow instead
Optional: color-coding
Add a color property to tint a note's box background:
color: blue
Supported values: red, blue, green, yellow, purple. Any other
value, or no value at all, falls back to the default background.
Requirements
- Obsidian 1.8.7 or later (for the Bases feature and language detection)
Installation
From Community Plugins (recommended)
- Open Settings → Community plugins in Obsidian
- If Restricted mode is on, click Turn on community plugins
- Click Browse and search for Base Diagram
- Click Install, then Enable
Manual installation
- Download
main.js,manifest.json, andstyles.cssfrom the latest release - Create a folder
YourVault/.obsidian/plugins/bases-relation-diagram/ - Copy the three files into it
- Reload Obsidian and enable Base Diagram in Community plugins
Manual layout by design
Base Diagram intentionally does not run an automatic graph layout. Once you place a note, it stays there — positions are saved per folder, so a layout you've arranged with meaning (a timeline, a hierarchy, groups of related notes) won't be reshuffled as your notes change.
Think of it less as a graph view and more as a relation board you build and maintain yourself.
Known limitations
- One diagram shows one folder at a time
- Relationship lines are straight and can cross or pass behind boxes; rearrange boxes to keep dense diagrams readable
- No formal cardinality notation (1-to-many, etc.) — just directional arrows
License
See LICENSE.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.