Bring AI directly into your browsing experience.
A Chrome extension that adds a smart, context-aware chatbot to any web page using Google’s Gemini API.
Gemini Chatbot is a lightweight yet powerful Chrome extension that allows you to chat with an AI that understands the page you're on. Whether you're reading an article, researching a topic, or just browsing, the chatbot provides intelligent, contextual responses in real time.
Powered by Gemini API, and built for developers, researchers, and everyday users alike.
-
💬 Context-Aware Chat
Ask questions and get answers based on the content of the current web page. -
🧠 Smart Content Extraction
Uses a custom implementation of the Readability library to focus only on meaningful text (no ads, footers, or clutter). -
🖼️ Minimal, Intuitive UI
Clean popup interface for chat. Simple options page for API key setup. -
🛠️ Privacy-First Design
Content stays on your browser—only your prompts and extracted text are sent to Gemini.
-
Clone or download this repository:
git clone <repository-url> cd gemini-chatbot-extension
-
Open Chrome and go to chrome://extensions.
-
Enable Developer Mode (top-right toggle).
-
Click Load Unpacked and select the folder where you cloned the extension.
-
You’ll now see the Gemini Chatbot icon in your Chrome toolbar 🎉
-
Open any web page.
-
Click the Gemini Chatbot icon in your Chrome toolbar.
-
Click the three-dot menu and enter your free Gemini API key.
-
Ask your question in the popup.
-
Get instant, smart answers based on the page you’re viewing
📁 gemini-chatbot-extension/
├── background.js # Handles background logic and Gemini API calls
├── content.js # Injects into pages to extract content
├── popup.html # Chat interface UI
├── popup.js # Chat logic & frontend behavior
├── options.html # API key and user settings
├── options.js # Save/load settings
├── Readability.js # Clean content extraction
├── style.css # Styling for popup and options page
├── manifest.json # Chrome extension config
└── .gitignore # Ignore unneeded files
Node.js (optional, for build tools or linting)
Google Chrome browser
git clone https://github.com/MetaVAI/chat-box-extension.git
cd gemini-chatbot-extensionThen follow the installation steps above to load it into Chrome.
Contributions are not only welcome—they're encouraged! If you’ve got ideas, bug fixes, or improvements, feel free to:
-
Fork the repo
-
Create a new branch
git checkout -b feature/your-feature- Commit your changes
git commit -am 'Add some feature'- Push to your branch
git push origin feature/your-feature- Open a Pull Request!
MIT — feel free to use, modify, and distribute this project under the terms of the license.
Built with 💬, ☕, and a sprinkle of Gemini intelligence.
