{"id":28471542,"url":"https://github.com/labib2002/briefly","last_synced_at":"2025-07-01T22:31:07.138Z","repository":{"id":293863411,"uuid":"985343936","full_name":"labib2002/Briefly","owner":"labib2002","description":"One-click Youtube summarizer for the shortest, hassle-free data-packed summary.","archived":false,"fork":false,"pushed_at":"2025-05-17T15:18:30.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-17T16:24:54.339Z","etag":null,"topics":["automation","summarization","summary","transcript","transcription","youtube","youtube-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labib2002.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-17T15:07:01.000Z","updated_at":"2025-05-17T15:21:38.000Z","dependencies_parsed_at":"2025-05-17T16:35:02.560Z","dependency_job_id":null,"html_url":"https://github.com/labib2002/Briefly","commit_stats":null,"previous_names":["labib2002/briefly"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/labib2002/Briefly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labib2002%2FBriefly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labib2002%2FBriefly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labib2002%2FBriefly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labib2002%2FBriefly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labib2002","download_url":"https://codeload.github.com/labib2002/Briefly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labib2002%2FBriefly/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263046114,"owners_count":23405137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","summarization","summary","transcript","transcription","youtube","youtube-api"],"created_at":"2025-06-07T11:01:20.721Z","updated_at":"2025-07-01T22:31:07.098Z","avatar_url":"https://github.com/labib2002.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"icons/briefly-128.png\" alt=\"Briefly logo\" width=\"128\"\u003e\n\u003c/p\u003e\n\n# Briefly ⚡️\n\nSummarize YouTube videos instantly — right from your browser.\n\nSkip the video, keep the value. With one right-click or through the extension popup, Briefly pulls the transcript for the current YouTube video. It can copy the transcript to your clipboard or auto-summarize it using Google’s Gemini in AI Studio. Perfect for research, note-taking, or just staying informed — without the watch time.\n\n[![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.md)\n\n---\n\n## Features\n\n| Action | What happens |\n| ------ | ------------ |\n| **Get \u0026 Copy Transcript** | Uses a bundled JavaScript library (based on `youtube-transcript-api`) directly in the extension → fetches the full transcript (with preferred language logic) → copies it to your clipboard via Chrome’s Offscreen API. |\n| **Summarise in AI Studio** | Same transcript fetching method → opens `aistudio.google.com` → pastes a pre-defined prompt + transcript → attempts to selects preferred model → disables/enables preferred “Thinking mode” → clicks **Run**. |\n\n---\n\n| Feature | info         |\n| ------  | ------------ |\n| **Popup Interface** | Access core actions (copy, summarize) for the active YouTube tab directly from the extension icon. |\n| **Robust notifications** | API / network / automation errors bubble up clearly. |\n| **Cross-platform** | works on Chrome, Edge, Brave, etc. (Manifest v3). |\n\n---\n\n## Quick Start\n\n### 1 ▪ Clone\n\n```bash\ngit clone https://github.com/labib2002/briefly.git\ncd briefly\n```\n\n### 2 ▪ Load the extension\n\n1. Open `chrome://extensions` (or the equivalent for your browser, e.g., `edge://extensions`).\n2. Turn on **Developer mode**.\n3. Click **Load unpacked** → select the `briefly` project folder (the one containing `manifest.json`).\n\n---\n\n## Usage\n\n1.  Navigate to a YouTube video page (`youtube.com/watch?...`, `youtu.be/...`, `youtube.com/shorts/...`).\n2.  **Option 1: Context Menu**\n    *   Right-click any YouTube video link on a webpage.\n    *   Choose:\n        *   **Briefly: Get \u0026 Copy Transcript Text**\n        *   **Briefly: Automate Summary in AI Studio**\n3.  **Option 2: Extension Popup**\n    *   While on a YouTube video page, click the Briefly extension icon in your browser toolbar.\n    *   Click either **Copy Transcript** or **Summarize in AI Studio**.\n4.  Read the notification that appears. If you picked AI Studio, switch to the new tab and watch Gemini work its magic.\n\n---\n\n## Configuration\n\n| File                             | What to tweak                                                                 |\n| -------------------------------- | ----------------------------------------------------------------------------- |\n| **`background.js`**              | `PREFERRED_LANGUAGES` array, `promptText` template for AI Studio, AI Studio automation time-outs. |\n| **`content_script_aistudio.js`** | CSS selectors for AI Studio elements \u0026 default model name string (e.g., \"Gemini 2.5 Flash Preview\"). |\n\n---\n\n## Troubleshooting 🛠️\n\n| Symptom                                                | Likely cause / fix                                                                                              |\n| ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- |\n| **Transcript unavailable / error fetching transcript** | Uploader disabled transcripts, no transcripts in your `PREFERRED_LANGUAGES` (see `background.js`), or a temporary YouTube issue. Check the Service Worker console. |\n| **Automation stalls or fails in AI Studio**            | Google’s AI Studio UI might have changed – adjust selectors in `content_script_aistudio.js`. Use DevTools console in the AI Studio tab to inspect errors. The target model (\"Gemini 2.5 Flash Preview\") might also be unavailable or renamed. |\n| **Clipboard error**                                    | Rare; open the extension’s *Service worker* console in `chrome://extensions` for details.                       |\n| **Buttons in popup are disabled**                      | Ensure you are on an active YouTube video page (`youtube.com/watch`, `youtu.be`, `youtube.com/shorts`).        |\n\n---\n\n* **Service worker logs (for background tasks, transcript fetching)** → `chrome://extensions` → find Briefly → click *Service worker*.\n* **Content-script logs (for AI Studio automation)** → Open DevTools (F12) console in the AI Studio tab.\n* **Popup logs (for popup UI issues)** → Right-click the extension icon → *Inspect popup* → Console tab.\n\n---\n\n## Roadmap / Future Ideas\n\n* [ ] **Direct Gemini API Integration** – Add option for Google’s public Gemini API (or Vertex AI) directly, bypassing AI Studio UI automation for a faster and more reliable summarization.\n* [ ] **Enhanced Popup / Options UI** – Allow users to customize preferred languages, edit the AI Studio prompt, select different summarization models, and toggle other features through a dedicated options page or an enhanced popup.\n* [X] **Process Current Video via Popup** – One-click actions in the extension popup to process the video in the active tab (Implemented in v1.4).\n* [ ] **Standalone Application** – Package Briefly as a desktop application, removing the need for a browser extension (e.g., using Electron or similar).\n* [ ] **Local LLM Support** – Send transcripts to a locally running LLM (e.g., via Ollama / GGUF models) for offline summaries.\n* [ ] **Internationalisation (i18n)** – Translate extension UI text and default prompts into multiple languages.\n* [ ] **Customizable Summarization Profiles** – Allow users to define and switch between different summarization styles or lengths (e.g., \"brief overview,\" \"detailed points,\" \"key takeaways\").\n* [ ] **Support for more video platforms** – Extend transcript and summarization capabilities to other platforms beyond YouTube.\n\n*Pull-requests welcome – open an issue first so we don’t duplicate work!*\n\n---\n\n## Contributing\n\n1. **Fork** → branch → PR (use [Conventional Commits](https://www.conventionalcommits.org)).\n2. First-timers welcome – check **good-first-issue**.\n\n---\n\n## License\n\nReleased under the **MIT License** – see [`LICENSE.md`](LICENSE.md).\n\n\u003e The core logic for fetching YouTube transcripts is derived from the excellent\n[youtube-transcript-api](https://pypi.org/project/youtube-transcript-api/) Py library, adapted for direct use within the browser extension.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabib2002%2Fbriefly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabib2002%2Fbriefly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabib2002%2Fbriefly/lists"}