No description
Find a file
Richard McCorkle 04e1190e7f Merge info-openrouter-spinner: service info icons, OpenRouter refresh, desktop spinner fix
- Info (i) icons with service URLs on the ScrapeCreators, Supadata,
  and OpenRouter settings.
- fetchOpenRouterModels: refresh the full OpenRouter model list from
  the public API, vendor-grouped dropdown, auto-stored token limits.
- Desktop processing no longer shows a blank popup: the modal closes
  on desktop (status-bar spinner only); mobile keeps the in-modal spinner.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 13:27:03 +02:00
.archon/workflows chore: add archon graph+superpowers workflows (local worktree, no PR) 2026-05-14 17:13:10 +02:00
.codex chore: add Codex agent configuration 2026-05-06 00:34:46 +02:00
.github ci: align release workflow with Obsidian docs (publish directly, canonical assets, tag/manifest check) 2026-05-16 21:34:52 +02:00
docs docs: implementation plan for info icons, OpenRouter refresh, desktop spinner fix 2026-05-18 12:12:02 +02:00
eslint-rules fix(lint): carve out window timer calls in prefer-active-doc rule 2026-05-17 07:48:09 +02:00
src feat: add collectUnder folder-walk helper 2026-05-17 21:08:52 +02:00
templates TubeSage 1.2.21 2026-05-01 15:30:50 +02:00
types TubeSage 1.2.21 2026-05-01 15:30:50 +02:00
.fallowrc.json chore: remove dead exports and unused dependencies (fallow audit) 2026-05-01 21:44:06 +02:00
.gitignore chore: ignore .worktrees/ directory 2026-05-17 06:41:48 +02:00
.mcp.json chore: remove dead exports and unused dependencies (fallow audit) 2026-05-01 21:44:06 +02:00
.npmrc TubeSage 1.2.21 2026-05-01 15:30:50 +02:00
AGENTS.md chore: add Codex agent configuration 2026-05-06 00:34:46 +02:00
check.sh TubeSage 1.2.21 2026-05-01 15:30:50 +02:00
CONTRIBUTING.md TubeSage 1.2.21 2026-05-01 15:30:50 +02:00
esbuild.config.mjs chore: stub LangChain tiktoken util, bump to 1.3.1 2026-05-17 20:33:50 +02:00
eslint.config.mjs fix(lint): clear remaining sentence-case errors 2026-05-17 08:05:55 +02:00
LICENSE fix: add trailing newline to LICENSE file 2026-05-16 21:23:27 +02:00
main.ts fix(ui): close create-note modal on desktop during processing (no blank popup) 2026-05-18 12:23:40 +02:00
manifest.json chore: bump to 1.3.3 2026-05-18 10:08:55 +02:00
MIT-license-tubesage.md TubeSage 1.2.21 2026-05-01 15:30:50 +02:00
package-lock.json chore: bump to 1.3.3 2026-05-18 10:08:55 +02:00
package.json chore: bump to 1.3.3 2026-05-18 10:08:55 +02:00
README.md docs: use absolute GitHub URLs in README, add demo video link 2026-05-18 09:58:43 +02:00
styles.css refactor(ui): convert icon buttons to ExtraButtonComponent 2026-05-18 10:38:42 +02:00
tsconfig.eslint.json TubeSage 1.2.21 2026-05-01 15:30:50 +02:00
tsconfig.json TubeSage 1.2.21 2026-05-01 15:30:50 +02:00

TubeSage

TubeSage is an Obsidian plugin that converts YouTube videos into structured notes using large language models. It extracts transcripts, generates summaries, and can add timestamped links back to specific moments in the video.

Demo: Watch the walkthrough video (MP4, hosted on GitHub).

Quick Start

Installation

Community Plugins: Install through Obsidian's Settings → Community plugins browser once TubeSage is listed in the directory.

Manual install from a GitHub release:

  1. Open the latest release page.
  2. From the Assets section, download main.js, manifest.json, and styles.css. Do not download "Source code (zip)" or "Source code (tar.gz)" — those are source archives and will not load as a plugin.
  3. In your vault, create the folder .obsidian/plugins/tubesage/.
  4. Move the three downloaded files into that tubesage/ folder.
  5. In Obsidian, go to Settings → Community plugins, toggle off "Restricted mode" if needed, refresh the installed-plugins list, and enable TubeSage.
  6. Accept the license terms in TubeSage's settings panel.
  7. Configure API keys for your preferred LLM provider.
  8. (For YouTube notes) Install the Templater plugin for template-driven formatting.

Requirements

  • Obsidian v1.11.4+ (TubeSage stores cloud API keys using Obsidian's secret storage, which was introduced in 1.11.4)
  • Templater plugin (required for template functionality)
  • An API key for at least one LLM provider:
    • OpenAI
    • Anthropic
    • Google (Gemini)
    • OpenRouter
    • Ollama (local models)
  • A YouTube Data API key (optional — required only for channel/playlist processing)

Features

  • Transcript extraction from YouTube videos with fallback methods
  • Summary generation using a configurable LLM provider
  • Optional timestamp links added to section headings, linking to the moment in the video
  • Works on desktop and mobile Obsidian
  • Batch processing of YouTube channels and playlists
  • Multi-provider support: OpenAI, Anthropic, Google Gemini, OpenRouter, and Ollama
  • A cross-platform fetch shim so all providers work on mobile without Node.js dependencies

Configuration

1. License acceptance

Accept the MIT license terms in the settings panel before using the plugin. Use the "View License" button to read the full text.

2. LLM provider setup

Choose and configure a provider in settings:

  • OpenAI — models such as GPT-4o, GPT-4, GPT-3.5-Turbo.
  • Anthropic — Claude 3 family models.
  • Google Gemini — Gemini Pro models.
  • OpenRouter — gateway access to models from multiple vendors.
  • Ollama — local open-source models; runs offline, requires Ollama installed and running.

Where API keys are stored: cloud-provider keys (OpenAI, Anthropic, Google, OpenRouter) are saved in Obsidian's native secret storage, not in the plugin's data.json. Type a key into its provider field and it is written to the secret store automatically — there is no separate setting to enable this, and it is not optional. The Ollama field holds a server URL rather than a secret, so it remains in plugin data.

3. Other settings

  • Summary modes: Fast (brief) or Extensive (detailed).
  • Timestamp processing: enable or disable automatic timestamp links.
  • Batch processing: sequential or parallel processing for collections.
  • Performance monitoring: optional logging of processing times.

Usage

Basic workflow

  1. Click the YouTube icon in the ribbon, or use the Command Palette.
  2. Paste a YouTube video URL.
  3. Choose a summary mode and folder location.
  4. Run processing.
  5. The resulting note appears in the chosen folder.

Batch processing (channels/playlists)

  1. Configure a YouTube Data API key in settings.
  2. Paste a channel or playlist URL.
  3. Set the number of videos to process.
  4. Choose sequential or parallel processing.

Timestamp navigation

When enabled, each section heading includes a link that opens the YouTube video at the corresponding moment.

Technical Architecture

  • Main plugin (main.ts): coordinator and UI.
  • Transcript extractor (src/youtube-transcript.ts): multi-method extraction with mobile fallbacks.
  • LLM factory (src/llm/llm-factory.ts): constructs the provider client.
  • Transcript summarizer (src/llm/transcript-summarizer.ts): orchestrates summarization.
  • LangChain client (src/llm/langchain-client.ts): unified interface for cloud providers.
  • Fetch shim (src/utils/fetch-shim.ts): cross-platform HTTP via Obsidian's requestUrl.
  • Timestamp processor (src/utils/timestamp-utils.ts): timestamp link generation.
  • Error utilities (src/utils/error-utils.ts): error categorization and retry logic.

Architecture diagrams are in the docs/ directory:

Privacy & Security

API keys

Cloud-provider API keys (OpenAI, Anthropic, Google, OpenRouter) are stored in Obsidian's native secret storage, never written to the plugin's data.json. Keys saved by versions older than 1.3.0 are migrated into secret storage automatically the first time you open the plugin after upgrading.

Network requests

All requests use HTTPS. TubeSage contacts:

  • YouTube, to fetch video metadata and transcripts.
  • Your configured LLM provider (OpenAI, Anthropic, Google, or OpenRouter), to generate summaries. If you use Ollama, requests go only to your local Ollama server and nothing leaves your machine.

That is the complete list. LangChain's bundled tiktoken helper, which would otherwise fetch tokenizer data from a third-party CDN, is replaced with a network-free stub at build time, so TubeSage contacts no other hosts.

No user data is stored on servers operated by the plugin author.

The plugin also bundles langsmith as a transitive dependency of @langchain/core. langsmith is LangChain's optional tracing library and contains a background cache-refresh timer. TubeSage never enables LangSmith tracing and never sets a LangSmith API key, so this code stays dormant and performs no background network transmission.

Vault and system access

  • Vault files: TubeSage lists the folders and Markdown files in your vault so you can choose where notes are saved and pick template files. It reads and writes only the note and template files involved in processing.
  • Clipboard: the "Copy template" button in the template viewer writes template text to your system clipboard. TubeSage never reads the clipboard.

Troubleshooting

  • API key errors: verify keys are configured correctly in settings.
  • Mobile processing issues: ensure a stable connection, or use Ollama for offline processing.
  • Timestamp link failures: check video availability and URL format.
  • Batch processing limits: monitor YouTube API quota usage.

License

This project is licensed under the MIT License — see the LICENSE file. A YouTube content-usage disclaimer is included in MIT-license-tubesage.md.

Support & Contribution

  • GitHub Issues: bug reports and feature requests.
  • Code contributions: fork the repository and open a pull request.

GitHub Repository: https://github.com/rmccorkl/TubeSage