Skip to content

glaforge/chrome-gemini-summarize-extension

Repository files navigation

Gemini Page Summarizer Chrome Extension

This is a custom Chrome extension that uses the Google Gemini API to summarize the content of web pages. It provides a quick and easy way to get the key points from articles, blog posts, and other text-heavy pages directly in your browser.

Features

  • Smart Content Extraction: Automatically finds and summarizes the main article content on a page, ignoring sidebars, ads, and other clutter.
  • Selected Text Summarization: If you highlight a specific portion of text on a page, the extension will summarize only your selection.
  • Streaming Summaries: The summary appears word-by-word in real-time as it's being generated by the AI model.
  • Shrink Functionality: Further condense an already generated summary to make it even more concise.
  • Bilingual Support: Generate summaries in either English or French with a convenient toggle.
  • Rich Text Copy: Copy the formatted summary (including bolding, bullet points, etc.) to your clipboard.
  • Polished UI: A clean and intuitive interface with helpful tooltips and a dedicated setup screen for new users.

Installation

Since this extension is not yet on the Chrome Web Store, you can install it manually using the following steps:

  1. Download or Clone the Repository:
    • Download the project files as a ZIP and unzip them, or
    • Clone the repository to your local machine using git clone.
  2. Open Chrome Extensions:
    • Open Google Chrome and navigate to chrome://extensions.
  3. Enable Developer Mode:
    • In the top-right corner of the extensions page, turn on the "Developer mode" toggle.
  4. Load the Extension:
    • Click the "Load unpacked" button that appears.
    • In the file selection dialog, navigate to and select the directory where you unzipped or cloned the project files.
  5. Set Your API Key:
    • The extension's icon will appear in your Chrome toolbar. Click it.
    • You will be prompted to set your API key. Click the button to go to the options page and paste in your key.

The extension is now installed and ready to use.

API Key Requirement

This extension requires a Google AI Gemini API key to function.

  • Secure Storage: Your API key is stored safely and securely in your browser's local storage using the chrome.storage.sync API. It is never transmitted anywhere except to the official Google AI API endpoints.
  • Get Your Key: You can create a free Gemini API key at Google AI Studio.

Libraries Used

This project leverages the following open-source libraries:

  • Readability.js: For intelligently extracting the primary readable content from a webpage.
  • Showdown.js: For converting the Markdown-formatted summary from the API into clean HTML.

Assets

The icons used in the extension's interface are from Heroicons.


License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Disclaimer

This is a personal project and is not an official Google product.

About

Chrome extension to summarize the text in the current tab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published