Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Backlink Cache

Michael NaumovMichael Naumov30k downloads

Store backlink cache to speed up `app.metadataCache.getBacklinksForFile`.

Add to Obsidian
Backlink Cache screenshot
Backlink Cache screenshot
Backlink Cache screenshot
Backlink Cache screenshot
Backlink Cache screenshot
Backlink Cache screenshot
  • Overview
  • Scorecard
  • Updates106

Asking Obsidian which notes link to this one means scanning every note in the vault. On a large vault that is slow enough to be felt — the Backlinks pane lags, and every plugin that needs backlinks pays the same cost, repeatedly.

This plugin keeps a backlink index and answers from it instead. The Backlinks pane gets faster, and so does anything else that asks. On a small vault you will not notice; that is the point at which you do not need it.

All 120 backlinks, in a vault of thousands

More screenshots
From an index, not a scan of every note Same answer as Obsidian, arrived at faster Every backlink of this note, in one list From an index, not a scan of every note Same answer as Obsidian, arrived at faster

Demo vault

The documentation is an interactive demo vault. Every feature has a note that explains what it does and why you would want it, with buttons that measure the difference for real.

Start reading here — it is plain markdown, so it works on GitHub with nothing installed.

A copy of the vault ships with every release. You can access it via any of the following:

  1. Running the Backlink Cache: Open demo vault command.
  2. Downloading backlink-cache-demo-vault.zip from the Releases. It unzips into a single backlink-cache-demo-vault-<version> folder.
  3. Browsing its source in demo-vault/ in this repository.

What it does

  • A backlink index that keeps itself current, so the Backlinks pane and every plugin that asks for backlinks stop rescanning the vault. 01 Backlink cache
  • Three ways to ask — fast from the cache, safe after pending changes settle, or the original built-in implementation for comparison. 02 Fast, safe, and original backlinks
  • Canvas files are indexed too, and their links are exposed through getCache(), which Obsidian leaves empty for canvases. 03 Canvas backlinks
  • Frontmatter markdown links count as backlinks when the Frontmatter Markdown Links plugin is installed. 03 Canvas backlinks
  • Refresh behavior is configurable. 04 Settings

For plugin developers

This plugin replaces app.metadataCache.getBacklinksForFile() with a faster implementation, adds an overload accepting a vault path as well as a TFile, and keeps the original reachable:

const fast = app.metadataCache.getBacklinksForFile(pathOrFile);
const safe = await app.metadataCache.getBacklinksForFile.safe(pathOrFile);
const original = app.metadataCache.getBacklinksForFile.originalFn(file);

To use the updated signatures from your own plugin, copy types.d.ts into your code. 02 Fast, safe, and original backlinks runs all three side by side.

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Debugging

By default, debug messages for this plugin are hidden.

To show them, run the following command:

window.DEBUG.enable('backlink-cache');

For more details, refer to the documentation.

Changelog

All notable changes to this project will be documented in the CHANGELOG.

Contributing

Contributions are welcome — see CONTRIBUTING to get set up.

Support

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov

HealthExcellent
ReviewSatisfactory
About
Speed up backlink queries and the Backlinks pane by maintaining a persistent backlink cache to improve performance in large vaults. Include Canvas and frontmatter markdown links and offer fast and safe app.metadataCache.getBacklinksForFile wrappers, with access to the original function.
LinksDevelopersIntegrations
Details
Current version
2.16.5
Last updated
Last week
Created
3 years ago
Updates
106 releases
Downloads
30k
Compatible with
Obsidian 1.13.7+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
Michael NaumovMichael Naumovmnaoumov
mnaoumov.dev
GitHubmnaoumov
Xmnaoumov
  1. Community
  2. Plugins
  3. Links
  4. Backlink Cache

Related plugins

BRAT

Easily install a beta version of a plugin for testing.

Local REST API with MCP

Unlock your automation needs by interacting with your notes over a secure REST API.

Terminal

Integrate consoles, shells, and terminals.

Sync Engine

The extensible vault synchronization engine: Fast · Free · Reliable. Supports WebDAV, S3, and Google Drive.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Advanced URI

Control everything with URI.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.