laroy-sh44 downloadsRight-click links in the editor and summarize them with Gemini, OpenAI, or Claude.
Right-click a URL in the editor and run Summarize link. The plugin sends the URL to your selected provider (Gemini, OpenAI, or Claude), then inserts a concise summary into the current note on a new line before the detected link.
https://...)[label](https://...))@google/genai + urlContextopenai + web_search_preview@anthropic-ai/sdk (fetches page content locally via requestUrl)gemini-3.1-flash-lite-preview, gemini-3-flash-previewgpt-5.4-mini, gpt-5.3-chat-latestclaude-sonnet-4-6, claude-haiku-4-5200-600 (minimum 200)5000-120000clear-api-keys)npm install
npm run build
npm run dev
Run this before tagging a release or updating your Obsidian Community Plugins PR:
npm run preflight
This runs:
npm run check)npm run lint:obsidian)npm run build)If your submission PR in obsidianmd/obsidian-releases references this plugin, keep the PR body Repo URL aligned with the current repository:
https://github.com/laroy-sh/obsidian-ai-link-summarizerBuild the plugin so main.js exists.
Copy these files to your vault plugin folder:
manifest.jsonmain.jsstyles.css (empty here, but included for compatibility)Target folder:
<your-vault>/.obsidian/plugins/ai-link-summarizer/In Obsidian:
The plugin registers the official workspace event:
this.registerEvent(
this.app.workspace.on("editor-menu", (menu, editor) => {
// ...
})
);
When you right-click in an editor, Obsidian provides the current menu and editor.
The plugin extracts a URL from the selection or link under cursor. If found, it adds Summarize link to that menu.
localhost, *.local, and private/link-local IPs) are blocked by default.Pushing a version tag like 0.3.1 triggers a workflow that runs a security audit, builds the plugin, and uploads release assets:
main.jsmanifest.jsonversions.jsonstyles.cssobsidian-ai-link-summarizer-0.3.1.zipTo publish:
git tag 0.3.1
git push origin 0.3.1
obsidian-ai-link-summarizer-0.3.1.zip), ormain.js, manifest.json, styles.css, versions.json)<your-vault>/.obsidian/plugins/ai-link-summarizer/