An AI-powered text summarizer that allows you to condense large amounts of text directly from your browser using the Llama-3.2-1B-Instruct-q4f16_1-MLC model.
- AI Summarization: Utilize state-of-the-art AI technology to summarize large texts quickly and efficiently.
- Flexible Summary Length: Choose between brief, medium, and long summaries according to your needs.
- User-Friendly Interface: Simple and easy-to-use interface integrated into the browser for seamless text summarization.
- Clipboard Copy: Easily copy the summarized content to your clipboard for quick use.
- Google Chrome or any Chromium-based browser.
-
Clone or download this repository.
git clone https://github.com/yourusername/summarizer-extension.git
-
Run npm install and npm run build
npm i npm run build
-
Open Chrome and navigate to
chrome://extensions/
. -
Enable Developer Mode in the top right corner.
-
Click Load unpacked and select the folder containing the dist folder.
-
The extension should now appear in your browser's toolbar.
- Click on the AI Text Summarizer icon in your browser’s toolbar.
- Enter the text you wish to summarize in the input box.
- Select the summary length: Brief, Medium, or Long.
- Click the Summarize button and wait for the AI to generate the summary.
- Copy the summarized text using the copy button if needed.
This extension requires the following permissions:
- Storage: To save user preferences such as summary length and historical data.
- Tabs: To access active browser tabs and execute the summarization functionality based on the content visible to the user.
- WebNavigation: To detect page changes and ensure the summarization functionality adapts accordingly.
The extension uses external resources, such as fonts and scripts from trusted sources like cdnjs.cloudflare.com
. The policy is set to ensure security while loading these resources.
"content_security_policy": {
"extension_pages": "style-src-elem 'self' https://cdnjs.cloudflare.com; font-src 'self' https://cdnjs.cloudflare.com; script-src 'self' 'wasm-unsafe-eval'; default-src 'self' data:; connect-src 'self' data: https://huggingface.co https://cdn-lfs.huggingface.co https://cdn-lfs-us-1.huggingface.co https://cdn-lfs-us-1.hf.co https://raw.githubusercontent.com"
}
We welcome contributions to improve the AI Text Summarizer. If you'd like to contribute, please fork the repository and submit a pull request.
This extension leverages WebGPU to efficiently process AI models directly in the browser. The summarization model is cached for enhanced performance, reducing load times and improving user experience during consecutive uses.
The underlying AI technology is powered by web-llm, an open-source project that allows machine learning inference using WebGPU.
- Fork this repository.
- Create a branch for your feature.
- Make your changes.
- Submit a pull request, detailing what you've changed or added.
This project is licensed under the MIT License. See the LICENSE file for more details.
- AI summarization powered by Hugging Face.
- Special thanks to all open-source contributors who helped build the libraries and tools used in this extension.
For any inquiries or issues, please reach out to Arthur G. Breguez.