FastDigest is a Chrome extension designed to summarize Hacker News comments using OpenAI's GPT-4 model. The extension provides a "Summarize" button for individual comments and a "Summarize All" button to summarize all comments on a page. The summaries are generated in real-time and displayed in the Chrome side panel.
- Adds a "Summarize" button to each comment on Hacker News.
- Adds a "Summarize All" button to summarize all comments on a page.
- Supports both OpenAI and Ollama.
- Displays summaries in the Chrome side panel.
-
Clone the repository:
git clone https://github.com/yourusername/fastdigest.git cd fastdigest
-
Configure LLM Provider
- Go to background.js. At the top, you will see a variable to set your OpenAI API Key.
- FastDigest also supports Ollama(llama3.1) for using local LLMs. To use Ollama, you will need to do the following:
- shut down Ollama if it is currently running
- run
launchctl setenv OLLAMA_ORIGINS "*"
- restart Ollama
-
Load the extension in Chrome:
- Open Chrome and navigate to chrome://extensions/.
- Enable "Developer mode" by toggling the switch in the top right corner.
- Click on "Load unpacked" and select the directory where you cloned the repository.
Visit any Hacker News item page (e.g., https://news.ycombinator.com/item?id=123456). The extension will add "Summarize" and "Summarize All" buttons to the comments. Click the "Summarize" button:
Click the "Summarize" button next to a comment to generate a summary for that comment. Click the "Summarize All" button:
Click the "Summarize All" button to generate summaries for all comments on the page.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.