Skip to content

ByteBrief is a Chrome extension that leverages AI to generate quick and accurate summaries of online articles. Whether you need a brief overview, a detailed summary, or key bullet points, ByteBrief extracts and condenses the main content of any web page directly in your browser.

License

Notifications You must be signed in to change notification settings

Jostar-Foundation/ByteBrief

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

ByteBrief — An AI-powered News Summarizer

ByteBrief is a Chrome extension that uses AI to generate summaries of online articles. It provides quick and accurate overviews, detailed summaries, or key bullet points directly in your browser.

Source Code Badge Gemini API Badge HTML Badge JavaScript Badge Chrome Extension Badge
Section Details
🚀 Features - Summarize articles in brief, detailed, or bullet point formats.
- Works on most websites with article content.
- Copy summaries to clipboard with one click.
- Powered by Google Gemini AI for intelligent text summarization.
💻 Installation - Clone or download this repository.
- Open Chrome and navigate to chrome://extensions/.
- Enable Developer mode (top right).
- Click Load unpacked and select this repository folder.
- Pin the ByteBrief extension to your Chrome toolbar.
📝 Usage - Open any article or webpage.
- Click the ByteBrief extension icon.
- Select the summary type: Brief, Detailed, or Bullets.
- Click Summarize to generate the summary.
- Copy the summary using the Copy button if needed.
⚙️ Configuration - Go to the Options page to enter your Google Gemini API key.
- Your key is securely stored using Chrome’s storage.sync.

⚠️ Notes

  • Some websites (like chrome:// pages) do not support content extraction.
  • Summaries are truncated for very long articles to avoid API limits.

Important

Error:

  • Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.

Cause:

  • The popup tried to send a message to the content script (content.js) before it was injected or on unsupported pages like chrome:// or chrome-extension://.

Solution:

  • Ensured the content script is injected dynamically if missing using chrome.scripting.executeScript.
  • Checked for chrome.runtime.lastError before using the response.
  • Confirmed messages are sent to active tabs using chrome.tabs.query.
  • ByteBrief Official Website -> https://bytebriefs.netlify.app/

🛠 Key Fixes Implemented

  • Dynamic Content Script Injection: Ensures the message can always reach a content script.
  • Runtime Error Handling: Catches runtime.lastError to prevent unhandled exceptions.
  • Updated Gemini API Call: Uses a supported model and correct request format.
  • API Key Validation: Checks for presence of API key and guides the user to enter it in options.
  • Truncation of Long Articles: Prevents request failures due to API limits.
  • Improved User Feedback: Loader animation and meaningful error messages in popup.

📄 Overview


⚠️ This README is uniquely designed by Joshua Thadi.

About

ByteBrief is a Chrome extension that leverages AI to generate quick and accurate summaries of online articles. Whether you need a brief overview, a detailed summary, or key bullet points, ByteBrief extracts and condenses the main content of any web page directly in your browser.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published