A Chrome extension that uses Datasaur's LLM Labs to summarize selected text on any webpage.
- Summarize any selected text with right-click context menu
- Clean and modern popup interface for settings
- Real-time text summarization using Datasaur's LLM Labs
- Configurable API settings
- Error handling and validation
- Loading indicators and status messages
-
Clone the repository:
git clone https://github.com/datasaur-ai/chrome-extension-text-summarizer.git
-
Install dependencies:
npm install
-
Build the extension:
npm run build
-
Load the extension in Chrome:
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right
- Click "Load unpacked" and select the
distfolder from the project
- Open Chrome and navigate to
Before using the extension, you need to configure your Datasaur LLM Labs API settings:
- Create and deploy your LLM application in Datasaur LLM Labs
- In the deployment details page:
- Click "Create API Key" to generate your API key
- Copy the API endpoint URL
- In the Chrome extension:
- Click the extension icon in the toolbar
- Enter the API URL and API key from Datasaur LLM Labs
- Click "Save Settings"
Note: Make sure your deployed application is active and not suspended to use the summarization feature.
- Select any text on a webpage
- Right-click and select "Summarize Selection" from the context menu
- Wait for the summary to appear in a popup
- Click the "×" button to close the summary popup
- Node.js (v14 or higher)
- npm (v6 or higher)
- Datasaur LLM Labs account
npm run dev- Start development mode with hot reloadnpm run build- Build the extension for productionnpm run test- Run testsnpm run lint- Run lintingnpm run format- Format code with Prettier
This project is licensed under the MIT License - see the LICENSE file for details.