This Chrome extension provides a convenient way to summarize the content of web pages directly from your browser. Utilizing a local API that simulates the OpenAI API through LM Studio, this extension fetches and displays summaries quickly, helping users to grasp the essential content without reading the entire text.
- Web Page Summarization: Extracts and summarizes the text from any webpage, excluding non-essential elements like ads, headers, and footers.
- Real-time Streaming: Handles JSON streams for real-time summarization responses from a local API.
To install this extension in your Chrome browser, follow these steps:
-
Clone the repository:
git clone https://github.com/eddieoz/lmstudio-webpage-summarizer.git
-
Load the extension in Chrome:
- Open Chrome and navigate to
chrome://extensions/
- Enable Developer Mode by toggling the switch in the upper right corner.
- Click on the "Load unpacked" button and select the directory where you cloned the repository.
- Open Chrome and navigate to
After installing the extension, follow these steps to use it:
- Navigate to any webpage in Chrome.
- Click the extension icon in the Chrome toolbar.
- Press the "Summarize" button in the popup to view the summary in the text area provided.
To simulate the OpenAI API:
- Set up your LM Studio, with a local server enabled
- Chrome Extension API for interacting with web content and browser tabs.
- LM Studio for handling local AI models and backend.
- JavaScript Fetch API for making network requests to the local API.
Contributions to this project are welcome! Please follow these steps:
- Fork the repository on GitHub.
- Create a new branch for your feature or bug fix.
- Develop and test your changes.
- Submit a pull request with a clear description of your changes.
This project is licensed under the MIT License - see the LICENSE file for details.
Did you like it? Buy me a coffee
Or drop me a tip through Lightning Network: ⚡ zbd.gg/eddieoz