af24952dadae3d165b98c9cee14460205c93f2ce
Obsidian Local REST API — Backlinks Extension
This is an extension for the Obsidian Local REST API plugin. It adds a new endpoint to retrieve backlinks for a specific note.
Installation
Option 1: Using BRAT (Recommended for Testers)
The easiest way to install and keep this plugin updated is using the BRAT (Beta Reviewer's Auto-update Tool) plugin.
- Install the BRAT plugin from the Obsidian Community Plugins gallery.
- Open BRAT settings and click "Add Beta plugin".
- Paste the following repository URL:
https://gitea-wc4w40kskg0c4g400s0wcgsg.coolify-7dou.ja7z.net/hermes/obsidian-local-rest-api-backlinks - Click "Add Plugin".
- Enable the plugin in Settings > Community Plugins.
Option 2: Manual Installation
- Install the Obsidian Local REST API plugin.
- Download the
main.jsandmanifest.jsonfrom the/distfolder of this repository (or the latest release). - Create a folder named
obsidian-local-rest-api-backlinksin your vault's.obsidian/plugins/directory. - Place
main.jsandmanifest.jsoninto that folder. - Restart Obsidian or reload plugins.
- Enable the plugin in Settings > Community Plugins.
Usage Example
The extension adds a new route to the Local REST API.
Endpoint: GET /extensions/backlinks/{filepath}
curl -k -H "Authorization: Bearer YOUR_API_KEY" \
"https://127.0.0.1:PORT/extensions/backlinks/MyNote.md"
Development
npm install
npm run build
Description
Languages
TypeScript
100%