Vault Link Health · Obsidian plugin documentation

Vault Link Health documentation

Vault Link Health Obsidian plugin preview

Vault Link Health scans Markdown notes and attachments locally inside Obsidian to find broken wikilinks, broken heading anchors, broken block references, and unreferenced images or PDFs. It runs with zero network calls during scanning and skips fenced code blocks and inline code spans so code examples do not trigger false positives.

Version 1.0.0. Requires Obsidian 1.13.4 or later. Works on desktop and mobile.

1 Installation

From Obsidian Community Plugins

  1. Open Settings and go to Community plugins.
  2. Turn off Restricted mode if needed.
  3. Select Browse, search for Vault Link Health, and select Install.
  4. Select Enable to turn the plugin on.

Manual installation

  1. Download main.js, manifest.json, and styles.css from the latest GitHub release.
  2. Create the folder <vault>/.obsidian/plugins/vault-link-health/.
  3. Copy the three files into that folder.
  4. Reload Obsidian and enable Vault Link Health under Settings > Community plugins.

2 Getting started

Scan your vault and jump to broken links (Free)

  1. Run "Vault Link Health: Open health report" from the command palette or select the heart-pulse ribbon icon.
  2. Review the health score badge and summary counts at the top of the modal.
  3. Filter broken links by Missing notes, Missing headings, or Missing blocks, or switch to the Unreferenced attachments tab.
  4. Select "Jump to line" on any issue to open that note at the exact line.

Run batch repair, attachment trash, or audit export (Pro)

  1. In the health report modal, select "Batch repair" to open the dry-run fuzzy-match preview.
  2. Review the before -> after diffs and confidence percentages, uncheck any link you want to skip, and select "Apply selected repairs".
  3. Select "Undo last batch repair" (or run the command) to restore unmodified notes to their pre-repair state.
  4. Select "Trash unreferenced" to preview unprotected images and PDFs before moving them to trash via fileManager.trashFile.
  5. Select "Export Markdown" or "Export CSV" to save a deterministic audit file in your configured export folder.

3 Features

Local vault link and attachment health scanner

Open "Open health report" from the command palette or select the ribbon icon to scan your vault in pure TypeScript. The report modal shows a 0-100 vault health score, total notes and links scanned, and filterable lists for missing notes ([[Missing]]), missing heading anchors ([[Note#Missing Heading]]), missing block references ([[Note#^missing]]), and unreferenced images or PDFs. Select "Jump to line" on any broken link row to open the source note directly at the exact line. Fenced code blocks (``` and ~~~), inline code spans, and YAML frontmatter are skipped cleanly.

Batch fuzzy-match link repair with dry-run preview and 1-click undo (Pro)

Pro ranks the closest existing note or heading for each broken link using normalized edit distance and token overlap. Review every proposed before -> after rewrite in the dry-run preview, select the fixes you want, and apply them atomically via vault.process while preserving |alias labels, ! embeds, and original CRLF or LF line endings. If you change your mind, select "Undo last batch repair" to restore modified notes safely. Any note edited manually after the repair is skipped during undo so your later edits stay safe.

Allowlisted attachment cleanup, duplicate basenames, and audit exports (Pro)

Move unreferenced images and PDFs to trash in batch using Obsidian's fileManager.trashFile while automatically skipping allowlisted asset folders such as Templates or Assets/Brand. Inspect duplicate-basename note collisions across folders along with ambiguous short-link counts, and export deterministic Markdown or RFC-4180 CSV audit reports to your vault.

Interactive What Pro adds demos

Open "What Pro adds" from Settings or the command palette to try batch fuzzy-match repair with undo, allowlisted attachment trash, duplicate-basename detection, and Markdown or CSV export on in-memory sample data. Each demo runs locally in the modal and never reads or changes your vault files.

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 health report vault-link-health:open-health-report
Batch fuzzy-match repair broken links (Pro) vault-link-health:batch-repair-links
Undo last batch link repair (Pro) vault-link-health:undo-last-link-repair
Move unreferenced attachments to trash (Pro) vault-link-health:trash-unreferenced-attachments
Export link health audit as Markdown (Pro) vault-link-health:export-health-audit-markdown
Export link health audit as CSV (Pro) vault-link-health:export-health-audit-csv
What Pro adds vault-link-health:what-pro-adds

5 Settings

Setting Default Description
Excluded folders Empty Comma-separated vault folders to skip when scanning notes for broken links. Leave blank to scan the entire vault.
Show confirmation notices On Show a short status notice after repairing links, trashing attachments, or exporting audit reports.
Minimum fuzzy-match confidence (%) (Pro) 55 Minimum similarity score (45 to 95%) required to suggest a note or heading repair.
Protected attachment allowlist folders (Pro) Templates, Assets/Brand Comma-separated folders whose unreferenced images and PDFs are never moved to trash in batch.
Audit export folder (Pro) Link-Health-Reports Vault folder where Markdown and CSV link health audit reports are saved.

6 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://notemods.com/pro/go?p=vault-link-health&s=readme. 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, Vault Link Health makes no network requests. Sign in uses the GitHub device flow. Vault Link Health 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, Vault Link Health 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.

7 Questions and answers

Does Vault Link Health send my notes or file paths to any server?

No. All Markdown parsing, link resolution, attachment scanning, fuzzy matching, rewriting, and report exports run locally in pure TypeScript inside Obsidian.

Are code examples inside fenced code blocks or inline code flagged as broken links?

No. The scanner skips fenced code blocks (``` and ~~~), inline code spans, and YAML frontmatter so syntax examples do not create false positives.

Can batch attachment trash permanently delete my files?

No. Batch cleanup uses Obsidian's fileManager.trashFile to move files to your configured trash, and it automatically skips any file inside your protected allowlist folders.

8 Support

Report bugs or request features in the GitHub issue tracker. Learn more about Pro across the NoteMods catalog at NoteMods Pro.

Vault Link Health · Obsidian plugin documentation