Bases Nested YAML · Obsidian plugin documentation
Bases Nested YAML documentation

Bases Nested YAML lets you inspect and edit multi-level nested YAML frontmatter objects on the active note without corrupting Obsidian Properties, and project nested paths into flat top-level Properties and .base columns across your vault. Instead of editing raw YAML blocks by hand or flattening every note manually, browse nested keys such as author.name or client.billing.rate in a live tree view, or upgrade to Pro for dot-path projection rules, .base column updates, vault-wide dry-run previews, saved profiles, reverse-sync, and one-click undo.
Payment is required for full access. Pro costs $15 one time or $5 a month: Sponsor or $15 one-time offer.
Version 1.0.0. Requires Obsidian 1.13.4 or later. Works on desktop and mobile.
1 Installation
- Open "Settings -> Community plugins", select "Browse", and search for "Bases Nested YAML".
- Select "Install" and "Enable". Turn on the core "Bases" plugin if you want to project flat properties into
.baseviews.
For manual installation, copy main.js, manifest.json, and styles.css into <vault>/.obsidian/plugins/bases-nested-yaml/ and enable it from Settings. Obsidian 1.13.4 or later is required.
2 Getting started
Open any Markdown note with nested frontmatter, then run "Open nested YAML inspector" from the command palette or click the braces ribbon icon. Expand objects, edit values inline, or add a dot-path such as client.billing.rate. Every edit writes through vault.process without altering your Markdown body.
- Open a Markdown note with nested frontmatter (for example,
author: { name: Ada }orclient: { billing: { rate: 185 } }). - Select the braces ribbon icon or run "Open nested YAML inspector" to open the live side panel, or run "Inspect nested YAML in modal" for a focused popup.
- Expand or collapse nested objects, edit leaf values inline, delete obsolete keys, or add new multi-level paths with the form below the tree.
- With Pro active, run "Project nested YAML to Properties and Bases" to discover nested paths across a scope, adjust target property names, optionally pick a
.basefile, inspect the dry-run diff preview, and apply the batch. - After editing projected flat columns in Properties or a Base view, run "Reverse-sync flat Properties to nested YAML" to push updated values back into the nested structure. Run "Undo last projection batch" to restore previous file contents at any time during your session.
3 Features
Live side-panel tree inspector and inline editor
Obsidian Properties displays top-level scalars and lists, but hides multi-level YAML objects. The free side-panel tree inspector tracks your active note and renders every nested mapping as a collapsible tree with type badges for objects, text, numbers, booleans, lists, and nulls. Edit any leaf inline, press Enter or select "Save", or delete a key and prune empty parents automatically.
Quick modal editor for keyboard workflows
Run "Inspect nested YAML in modal" to open the collapsible tree inside a focused modal. Add deeply nested paths like project.budget.cap with explicit type selection (Auto, Text, Number, Boolean, List, Empty object, or Null). All writes pass through vault.process, preserving line endings, key order, and your note body.
Dot-path projection, .base columns, profiles, dry-run diffs, reverse-sync and undo (Pro)
Obsidian Bases reads top-level Properties as columns. Pro maps nested dot-paths like author.name and client.billing.rate into flat Properties (author_name, client_billing_rate) across a note, folder, or vault. Discover paths automatically, save projection profiles, preview dry-run diffs before writing, add note.<property> columns to .base files, reverse-sync edits back into nested YAML, and undo batches.
4 Commands
Open the command palette and type the plugin name to see these commands. You can give each one a hotkey in Settings, Hotkeys.
| Command | Command id |
|---|---|
| Open nested YAML inspector | bases-nested-yaml:open-nested-inspector |
| Inspect nested YAML in modal | bases-nested-yaml:open-nested-inspector-modal |
| Project nested YAML to Properties and Bases | bases-nested-yaml:project-nested-yaml |
| Reverse-sync flat Properties to nested YAML | bases-nested-yaml:reverse-sync-nested-yaml |
| Undo last projection batch | bases-nested-yaml:undo-last-projection |
5 Settings
After a minor or major update, this plugin opens one What's new tab in the background. The tab and settings card suggest other NoteMods plugins and Zovo Chat and link to notemods.com for feedback (privacy). The tab sends no data. Turn the tab off in Settings.
| Setting | Default | What it does |
|---|---|---|
| Show top-level flat properties in tree | Off | Includes scalar and list top-level properties alongside nested objects in the tree inspector. |
| Prune empty parent objects on delete | On | Removes an empty parent mapping automatically when its last nested child key is deleted. |
| Default projection separator | Underscore (_) |
Sets the default separator (_ or -) when generating flat property names from dot paths. |
| Undo stack history size | 20 | Controls how many recent Pro projection or reverse-sync batches stay in memory for one-click undo (5 to 20). |
6 Pro
The command "What Pro adds" shows each Pro feature with an interactive demo on sample notes.
- Flatten and project nested YAML paths into top-level Properties using dot-path mapping rules.
- Add projected flat properties directly as columns in any .base file views list.
- Run vault-wide batch projection with a dry-run diff preview and conflict checks before writing.
- Save and reuse named projection profiles with custom separators, prefixes, and rule sets.
- Reverse-sync flat Properties back into nested YAML and revert batches from the undo stack.
Sponsor $5 a month, or $15 once. When you have paid $15 in total, Pro stays on.
To activate Pro:
- Sponsor through GitHub Sponsors. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply.
- In Obsidian, open the settings of Bases Nested YAML and select "Sign in with GitHub".
- Paste the copied code at github.com/login/device and approve.
7 Privacy, payment and network
The core features are free. Pro features need a GitHub Sponsors sponsorship of theluckystrike: $5 a month or more, or $15 once. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply. Your notes stay readable and editable with or without Pro.
One payment turns on Pro in every NoteMods plugin.
GitHub handles the payment. Sponsor at https://github.com/sponsors/theluckystrike/sponsorships?tier_id=666162&frequency=one-time&metadata_source=bases-nested-yaml. You need no account for the free features. Pro needs the GitHub account that sponsors.
Until you select "Sign in with GitHub" in the settings, Bases Nested YAML makes no network requests. Sign in uses the GitHub device flow. Bases Nested YAML sends its public client ID and the scope read:user to https://github.com/login/device/code and shows you a code. While you enter the code at https://github.com/login/device, it asks https://github.com/login/oauth/access_token every few seconds to check the sign-in status. The scope permits profile reads only. GitHub needs this access to show the sponsorship tier. It grants no repository scope and no write access.
After sign in, Bases Nested YAML sends one query to https://api.github.com/graphql. It checks if the signed-in account sponsors theluckystrike. It asks for the tier and the total payment to theluckystrike. The plugin reuses a successful check for 7 days. Failed checks can retry after 6 hours. Select Refresh to request an earlier check. It sends no note content, file names or other vault data, and it has no telemetry.
After a successful check, Pro can work offline for up to 14 days. Sign out or a negative sponsorship answer turns Pro off. The plugin stores the GitHub token through the secret storage API of Obsidian. It does not put the token in its saved settings or its local sponsorship data. The local storage of this device keeps your GitHub login, the tier and the time of the last check. Sign out clears the token. You can also revoke the access in your GitHub settings, under Applications.
8 Questions and answers
Does editing nested YAML break top-level Obsidian Properties?
No. Every frontmatter write parses only the YAML header, mutates the targeted path, serializes valid block-style YAML with safe scalar quoting, and writes through vault.process. Top-level scalars, lists, tags, and the Markdown body stay intact. Rewritten frontmatter and .base files use block-style YAML and do not preserve inline YAML comments, flow style, or block scalar formatting.
Does dot-path projection delete my original nested YAML?
No. Projection copies values from nested paths into flat top-level Properties so Obsidian Bases can display, sort, and filter them. Your original nested mappings remain in place, and Pro reverse-sync lets you sync flat column edits back into the nested tree.
How does conflict protection work during vault-wide batches?
When overwrite is off, the dry-run planner flags any note where the target property already holds a different value and skips overwriting it. Enable overwrite in your projection profile only when you want nested values to replace existing flat fields.
What happens if I rename or remove a key safely?
Path validation rejects malformed or prototype-polluting segments (__proto__, constructor, prototype). When "Prune empty parent objects on delete" is enabled, removing the final leaf inside client.billing removes the empty billing and client objects cleanly.
Does the undo stack survive an Obsidian restart?
The undo stack is kept in memory for your active session (up to 20 batches) so you can revert a vault-wide projection or reverse-sync immediately. Restarting Obsidian clears the in-memory history.
9 Support
Report bugs or request improvements on GitHub Issues.