API Summarizer is a powerful Chrome extension designed to enhance your experience with API documentation. It uses Google's Gemini AI to summarize complex API documentation, making it easier to understand and navigate. The extension also provides a chat interface to ask questions about the documentation and a search feature to quickly find specific information.
Demo.mp4
- Search within API documentation pages
- Highlight matching text with context
- Navigate between search results with ease
- Select any text on an API documentation page
- Get concise, accurate summaries using Gemini AI
- Understand complex API concepts quickly
- Ask questions about the API documentation
- Get detailed explanations and examples powered by Gemini AI
- Maintain context throughout your conversation
- Frontend: TypeScript, React, TailwindCSS
- AI: Google Gemini API for summarization and chat
- Build Tools: Vite, PostCSS
-
Clone the repository:
git clone https://github.com/TharaneshA/API_Summarizer.git cd API_Summarizer
-
Install dependencies:
npm install
-
Create a
config.ts
file in the src directory with your Gemini API key:export const GEMINI_API_KEY = 'your_api_key_here';
-
Build the extension:
npm run build
-
Load the extension in Chrome:
- Open Chrome and navigate to
chrome://extensions/
- Enable "Developer mode"
- Click "Load unpacked" and select the
dist
folder from your project directory
- Open Chrome and navigate to
-
Navigate to any API documentation page
-
Use the extension popup to:
- Select text and generate summaries
- Search within the documentation
- Ask questions about the API
├── dist/ # Built extension files
├── icons/ # Extension icons
├── src/
│ ├── popup/ # React popup components
│ ├── styles/ # TailwindCSS styles
│ ├── background.ts # Extension background script
│ ├── content.ts # Content script for page interaction
│ └── config.ts # Configuration and API keys
├── manifest.json # Chrome extension manifest
├── popup.html # Popup HTML template
└── vite.config.ts # Vite configuration
- Content Script: Injects into web pages to handle text selection, search highlighting, and DOM manipulation
- Background Script: Manages API calls to Gemini AI and handles context menu operations
- Popup Interface: Provides a user-friendly interface for all extension features
- Gemini AI Integration: Processes text to generate summaries and answer questions
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini for providing the AI capabilities
- React for the frontend framework
- TailwindCSS for styling