chrome-extension-web-distiller-ai

Chrome extension that summarizes web page contents using Gemini Nano. Features include secure in-browser summarization, markdown output, and translation options.

MIT License

Stars
8
Committers
4

Web Distiller AI - Chrome Extension

Chrome Extension Web Store

This Chrome extension provides a summary of web page contents using the built-in Gemini Nano model. It is implemented with React and offers secure in-browser summarization without sending content to external networks.

Features

  • Summarizes the content of the currently viewed web page.
  • Uses Gemini Nano for summarization.
  • Summarization options include translation into English or Japanese.
  • Provides a popup menu to execute summarization.
  • Extracts the main content of the web page using Readability.
  • Converts extracted content to markdown format using Turndown.
  • Calls Gemini Nano via window.ai for summarization.
  • Translates the summary into the selected language if the translate option is set to a language other than English.
  • Outputs the summary in a text area within the popup menu, including a markdown-formatted link with the title and URL, and a button to copy the summary to the clipboard.

Requirements

  • Using Chrome Canary Release.
  • Enabling the built-in Gemini Nano in Chrome.

Build and Install

  1. Clone this repository:

    git clone https://github.com/yourusername/web-distiller-ai.git
    cd web-distiller-ai
    
  2. Install dependencies and build the extension:

    npm install
    npm run build
    
  3. Alternatively, you can use the pre-built dist.zip from the releases:

    • Download it from here.
  4. Load the extension into Chrome:

    • Open Chrome and navigate to chrome://extensions/.
    • Enable "Developer mode" in the top right corner.
    • Click "Load unpacked" and select the dist directory from this repository or the extracted dist.zip.

Limitations

  • Summarization extracts content from the beginning of the page to avoid exceeding the context length limitation of Gemini Nano. Full-text summarization is not currently supported.
  • Future improvements will include chunking the full page content for multiple summarization passes and combining the results.

References

Related Projects