BriefTorch is a Chrome extension that uses AI to generate concise, structured summaries of web pages. It leverages OpenAI's GPT models to analyze page content and provide key insights in an easy-to-read format.
- 🚀 One-click page summarization
- 📝 Structured summaries with main points, key findings, and implications
- 💾 Automatic caching of summaries for previously visited pages
- ⚙️ Configurable settings including:
- Custom OpenAI API key
- Model selection (GPT-3.5-Turbo, GPT-4)
- Custom API endpoint support
- 🎯 Smart text extraction from various page layouts
- 📱 Clean, responsive popup interface
- Clone this repository or download the source code
- Open Chrome and navigate to
chrome://extensions/
- Enable "Developer mode" in the top right
- Click "Load unpacked" and select the extension directory
- Click the extension icon and select "Options" (or right-click and choose "Options")
- Enter your OpenAI API key
- Select your preferred model
- (Optional) Configure a custom API endpoint
- Click "Save"
- Navigate to any webpage you want to summarize
- Click the BriefTorch icon in your browser toolbar
- Click "Summarize Page"
- View the structured summary with:
- Main Points
- Key Findings
- Implications
- Built with vanilla JavaScript
- Uses the OpenAI Chat Completions API
- Implements intelligent text chunking for long pages
- Supports Markdown rendering for formatted output
- Handles various webpage layouts through multiple selector strategies
- API keys are stored locally in Chrome storage
- No data is collected or stored externally
- All processing happens through your personal OpenAI API key
The extension consists of several key components:
background.js
: Handles API communication and text processingcontent.js
: Manages webpage text extractionpopup.js
: Controls the user interfaceoptions.js
: Handles extension configuration
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.