Backlink Cache

by mnaoumov
5
4
3
2
1
Score: 71/100

Description

Category: File Management

The Backlink Cache plugin is a game-changer for Obsidian users with large vaults, as it significantly speeds up the performance of the Backlinks Pane and plugins that rely on backlinks. By maintaining a cache of backlinks, this plugin reduces the time it takes to retrieve link information, making navigation and discovery much faster. Whether you're a power user or a developer creating plugins, Backlink Cache is an excellent addition to your Obsidian setup, allowing you to work more efficiently and effectively with your notes.

Reviews

No reviews yet.

Stats

52
stars
28,002
downloads
1
forks
1,012
days
2
days
2
days
2
total PRs
0
open PRs
1
closed PRs
1
merged PRs
14
total issues
0
open issues
14
closed issues
110
commits

Latest Version

2 days ago

Changelog

  • docs: make the demo vault the documentation, in the standard layout
  • feat(demo-vault): migrate to obsidian-dev-utils 93.3.1 and adopt the authoring convention

Full Changelog: https://github.com/mnaoumov/obsidian-backlink-cache/compare/2.16.2...2.16.3

README file from

Github

Buy Me a Coffee GitHub release GitHub downloads Coverage: 100%

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.

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-<version>.zip (<version> is the release version) from the Releases.
  3. Browsing its source in demo-vault/ in this repository.

What it does

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

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
PDF++
3 months ago by ryotaushio
PDF++: the most Obsidian-native PDF annotation & viewing tool ever. Comes with optional Vim keybindings.
Digital Garden
17 days ago by oleeskild
Influx
4 years ago by Jens M Gleditsch
An alternative backlinks plugin, which displays relevant and formatted excerpts from notes with linked mentions, based on the position of mentions in the notes' hierarchical structure (bullet level indentation).
Daily Note Outline
4 years ago by iiz
Add a custom view which shows outline of multiple daily notes with headings, links, tags and list items
Project Browser
2 years ago by Dale de Silva
AutoMOC
4 years ago by Diego Alcantara
Frontmatter Markdown Links
2 years ago by mnaoumov
Obsidian Plugin that adds support for markdown links in frontmatter
Auto Keyword Linker
7 months ago by Daniel Rhodes
Stop manually typing [[brackets]] around recurring terms. Configure keywords with variations once, and automatically link them as you write or across your entire vault.
Link Tree
3 years ago by Joshua Tazman Reinier
A sidebar foldable list of Obsidian link hierarchies.
Rich Foot
2 years ago by Justin Parker
🦶 Obsidian plugin that adds backlink/outlink tags and created/modified dates to the footer of your notes
Default query in backlinks
2 years ago by Benature
Nav Link Header
2 years ago by ahts4962
Display navigation links at the top of the notes in Obsidian
Hierarchical Backlinks
2 years ago by Jason Motylinski
Plugin which displays backlinks as a tree structure based on file paths
Backlink Full Path
a year ago by mnaoumov
Obsidian plugin that shows the backlink's full path in the backlinks panel.
Attachment Organizer
18 days ago by kiteruunner
Automatically organize attachments into zone-based folders with conflict detection and batch operations
Coalesce
a year ago by Floyd
Coalesce is an Obsidian plugin that merges all your linked notes into a single, organized view for a cohesive research and writing experience.
Understory
2 months ago by Rosetta Zidian Guo
A connection-sustain plugin: find connections and conflicts, update them over time
UnLime
a year ago by shandyba
Obsidian Unmentioned Links toggle
Anki Helper
6 months ago by Dusk