A powerful Chrome extension that lets you save, manage, and summarize text highlights from any webpage.
- Text Highlighting: Select and save important text from any webpage
- Organized Storage: All highlights are saved with source URL and timestamp
- AI-Powered Summaries: Generate concise summaries of your highlights using Groq's LLM API
- Clean Interface: Intuitive UI to manage and review your saved highlights
- Cross-Page Persistence: Access your highlights from any webpage
Make sure you have Node.js (version 18+ or 20+) installed on your machine.
-
Clone or fork the repository:
# To clone git clone https://github.com/mian312/highlight-saver-extension.git cd highlight-saver-extension
-
Install the dependencies:
npm install
-
Create a
.envfile in the root directory with your Groq API credentials:GROQ_API_KEY=your_api_key_here GROQ_MODEL=llama3-70b-8192 GROQ_API_URL=https://api.groq.com/openai/v1
To start the development server:
npm run devThis will start the Vite development server and open your default browser.
To create a production build:
npm run buildThis will generate the build files in the build directory.
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" using the toggle switch in the top right corner
- Click "Load unpacked" and select the
builddirectory
Your Text Highlighter extension should now be loaded in Chrome!
public/: Contains static files and themanifest.jsonsrc/: Contains the React app source codeApp.tsx: Main popup UI componentbackground.ts: Background script for extension functionalitycontent.ts: Content script that enables highlighting on webpages
- Browse to any webpage
- Select text you want to save
- Click the "Save" button that appears
- Open the extension popup to view your saved highlights
- Click "Summarize" on any highlight to generate an AI summary
This project is licensed under the MIT License.