This project is a Chrome web extension that allows users to highlight text on any webpage and generate a concise summary using the OpenAI API. The extension provides an easy and efficient way to get the gist of long articles or complex information with a single click.
Text Highlighting: Users can select any portion of text on a webpage. Summarization: The selected text is summarized into approximately 150 words using the OpenAI API. User-Friendly Interface: Simple and intuitive design for seamless interaction.
- Clone or download the repository.
- Open Chrome and navigate to chrome://extensions/.
- Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the project folder.
- The extension icon will appear in your Chrome toolbar.
- Ensure notfication permissions are allowed in both the google chrome browser and allowed on your personal device. Otherwise the summaries will not be visible.
Navigate to any webpage and highlight the text you want to summarize. Right-Click on the mouse to bring up a list of options. Click 'Summarize' and a google chrome notification will appear with a summary of the highlighted text. If the summary is too long, there is an option within the notification to 'Show full message', selecting that will cause a new window to open with the complete summary.
Sign up for an OpenAI API key if you don’t have one. In the project folder, locate the background.js file and add your API key. const OPEN_AI_API_KEY = 'your-api-key-here';