A powerful Chrome extension that automatically crawls and summarizes entire documentation sites using AI. No more reading through dozens of pagesβget comprehensive summaries in seconds!
- π€ Multi-AI Support - Use Claude, OpenAI, or OpenRouter (with automatic fallback)
- π Smart Web Crawling - Automatically crawls entire documentation sites up to configurable depth and page limits
- π Comprehensive Summaries - Generates detailed summaries covering all major aspects
- π― Focus Areas - Optionally emphasize specific topics (API, Setup, Examples, etc.)
- π One-Click URL Capture - Grab the current browser tab's URL with a single button click
- πΎ Multiple Export Options - Download as text, copy to clipboard, or generate shareable links
- π Your Own API Keys - Use your own API credentials for full control and privacy
- β‘ Automatic Fallback - If one AI provider fails, automatically tries the next one
-
Clone or download this repository
git clone https://github.com/yourusername/documentation-summarizer.git cd documentation-summarizer -
Open Chrome Extensions
- Go to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the extension folder
- Go to
-
Configure API Keys
- Click the extension icon
- Click on βοΈ API Configuration to expand
- Add your API key(s) from one or more providers:
- Claude (Anthropic) - Get key from api.anthropic.com
- OpenAI - Get key from platform.openai.com
- OpenRouter - Get key from openrouter.ai
-
Start Summarizing!
- Click the extension icon
- Click "π Current" to capture your current page, or paste a documentation URL
- (Optional) Add focus areas like "API, Setup, Examples"
- Click "Generate Full Summary"
Choose between:
- π Current Button - Auto-captures your active browser tab's URL
- Manual Input - Paste any documentation URL
The extension intelligently crawls:
- The entire documentation site (configurable max pages)
- Multiple levels deep (configurable max depth)
- Only same-domain links to stay focused
- Extracts clean, readable content from each page
Generates comprehensive summaries covering:
- Main purpose and overview
- Key features and capabilities
- Installation/setup instructions
- Core concepts and terminology
- API reference and methods
- Common use cases and examples
- Best practices and tips
- Important warnings or notes
- π Download - Save as plain text file
- π Share - Generate shareable link with encoded summary
- π Copy - Copy summary to clipboard
The extension supports three AI providers. You can use one or all three:
- Model: Claude 3.5 Sonnet
- Best for: Detailed, nuanced summaries
- Get API Key
- Models: GPT-4o, GPT-4 Turbo, GPT-3.5 Turbo
- Best for: Fast, accurate summaries
- Get API Key
- Models: 5+ models including Claude, GPT, Llama, Mistral
- Best for: Choice and flexibility
- Get API Key
In the βοΈ API Configuration section, customize:
-
Max Pages to Crawl (default: 50)
- Limits the number of pages crawled from the documentation
- Lower = faster but less comprehensive
- Higher = more thorough but slower
-
Max Depth Level (default: 3)
- How many link levels to follow
- Depth 1: only main page
- Depth 3: main β sub pages β sub-sub pages
- Higher depths take longer
- Click "π Current" while on nextjs.org/docs
- Leave focus areas blank for comprehensive summary
- Click "Generate Full Summary"
- Get a complete overview of Next.js in minutes!
- Paste documentation URL
- Add focus areas: "Installation, API, Examples"
- Click "Generate Full Summary"
- Summary prioritizes these topics
- Capture URL with "π Current"
- Click "Generate Full Summary"
- Copy with "π Copy"
- Paste into your notes or documents
documentation-summarizer/
βββ manifest.json # Chrome extension config
βββ popup.html # UI layout and styles
βββ popup.js # Frontend logic and UI interactions
βββ background.js # Backend logic, crawling, AI calls
βββ README.md # This file
- Frontend: HTML, CSS, Vanilla JavaScript
- Backend: Chrome Service Worker (background.js)
- APIs: Anthropic, OpenAI, OpenRouter REST APIs
- Storage: Chrome Local Storage API
- β Chrome 88+
- β Chromium-based browsers (Brave, Edge, Opera)
β οΈ Firefox (requires manifest adaptation)
- Event listener setup
- API key management
- Settings management
- UI state management
- Export functionality
crawlDocumentation()- Intelligent web crawlingextractTextFromHtml()- HTML parsing and text extractionextractLinksFromHtml()- Smart link extractioncallAI()- AI provider abstractioncallClaude(),callOpenRouter(),callOpenAI()- Provider-specific API calls
- Your API Keys: Stored locally in Chrome's storage, never sent to external servers except the respective API providers
- Content Processing: Documentation content is sent to your chosen AI provider for processing
- No Tracking: The extension contains no analytics, tracking, or telemetry
- Open Source: Code is transparent and auditable
- The website might require authentication
- Try adjusting max pages/depth in settings
- Check that the URL is valid and publicly accessible
- Verify the API key is correct
- Check that your API account has available credits/quota
- Ensure you're using the right API key for the provider
- Try a different provider to test
- Clear Chrome cache:
chrome://settings/clearBrowserData - Reload the extension from extensions page
- Check browser console for errors (Chrome DevTools)
- Reduce "Max Pages to Crawl" in settings
- Reduce "Max Depth Level" in settings
- Use a faster AI model (GPT-3.5 Turbo instead of GPT-4)
- Try a different AI provider
- Start with smaller crawls - Begin with max 20 pages and depth 2
- Use faster models - GPT-3.5 Turbo is faster than GPT-4
- Add focus areas - Focused summaries process faster than comprehensive ones
- Cache results - Export and save frequently-used summaries
Contributions are welcome! Feel free to:
- Report bugs by opening an issue
- Suggest features and improvements
- Submit pull requests
- Improve documentation
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Chrome Extensions API
- Powered by Claude, OpenAI, and OpenRouter
- Inspired by the need to quickly understand complex documentation
Have questions or issues?
- Open an issue on GitHub
- Check existing issues for solutions
- Review the Troubleshooting section above
- Firefox extension version
- Batch processing multiple URLs
- Summary scheduling/automation
- Integration with popular note-taking apps (Notion, Obsidian)
- Custom prompt templates
- Local AI model support (Ollama)
- Comparison summaries (before/after docs versions)
Made with β€οΈ to help developers save time and understand documentation faster.