ggbro Plugins

Youtube Search

com.ggbro.plugin.youtube-search · v1.0.1 · ui.panel, ui.toast, ui.sound, storage

Search YouTube with thumbnails, duration, and paging. Play or download from results; Search buttons in Player and Downloader.

This is NOT the full app source. plugin.js below is only the sandboxed Settings / Apps companion (~help text + open button).

Search UI + results modal run in the host; this pack only registers the Settings / Apps entry.

Desktop host modules (shipped inside ggbro, not this zip):

Sandbox packs cannot run Electron, yt-dlp, or pdf.js — that is why the real UI stays in the host. Install the pack → Apps grid to use the full feature.

manifest.json

Raw
{
  "id": "com.ggbro.plugin.youtube-search",
  "name": "Youtube Search",
  "version": "1.0.1",
  "author": "ggbro",
  "description": "Search YouTube with thumbnails, duration, and paging. Play or download from results; Search buttons in Player and Downloader.",
  "main": "plugin.js",
  "permissions": ["ui.panel", "ui.toast", "ui.sound", "storage"]
}

plugin.js

Raw
/**
 * Youtube Search — companion stub.
 * Search UI lives in the desktop/web host (shared modal + yt-dlp / API).
 */
(async function () {
  try {
    ggbro.log('youtube-search companion ready');
  } catch (e) {
    ggbro.log('youtube-search init', e && e.message);
  }
})();

README.md

Raw
# Youtube Search (official)

**This pack is NOT the full search UI.** `plugin.js` only registers the Settings / Apps entry.
Search results, paging, Play, and Download live in the **desktop host**.

Host modules:
- `YoutubeSearchHostApp.tsx`
- `YoutubeSearchModal.tsx`
- `youtubeSearchStore.ts`

## Open

- **Apps → Youtube Search**
- Other plugins can dispatch `ggbro:youtube-search-open`

Desktop preferred (yt-dlp search); web may use Piped / YouTube Data API when configured.