This project is a Chrome extension that uses AI to summarize web page content, with customizable reading age levels.
- Summarize entire web pages
- Summarize selected text via context menu
- Adjustable reading age level (8-60 years)
- Clean popup interface
- Real-time summaries using Groq's LLama3-70b model
src/background.js: Background script that handles events and messagessrc/content.js: Content script that interacts with web pagessrc/api.js: Handles API communication with Groqsrc/popup/popup.html: HTML structure for the popup interfacesrc/popup/popup.js: JavaScript for handling popup interactionssrc/popup/popup.css: Styles for the popupmanifest.json: Configuration file for the Chrome extension
- Locate src/config_sample.js in the project directory
- Create a copy named
config.jsin the same directory - Open
config.jsand replace'YOUR_API_KEY_HERE'with your Groq API key - Save the file
Note: The config.js file is ignored by git (via .gitignore) for security purposes
- Clone the repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the project directory
- Click the AI Summarizer icon in the Chrome toolbar to open the popup
- Adjust the reading age using the slider
- Click "Summarize Page" to get an AI-generated summary
- Select any text on a webpage
- Right-click to open the context menu
- Choose "Summarize Selection"
- Select the reading age in the popup
- View the generated summary in a floating window
This project is licensed under the MIT License.