Maang.in AI Assistant is a Chrome Extension that embeds an intelligent AI tutor directly into the Maang.in competitive programming platform.
Powered by Google Gemini, this tool provides real-time, context-aware assistance. Unlike generic chatbots, this extension automatically reads the problem statement, constraints, and your current code, offering specific hints and logic explanations without the need to manually copy-paste context.
- Context-Aware AI: Automatically detects the current problem and feeds the details to the AI for accurate, specific help.
- Persistent Chat History: Saves your conversation for each specific problem. You can leave a problem and come back later; your chat will still be there.
- Smart UI:
- Draggable & Resizable: Move the chat window anywhere on your screen.
- Theme Adaptation: Automatically syncs with Maang.in's Dark or Light mode.
- Productivity Tools:
- One-Click Copy: Copy code snippets from the AI response instantly.
- Markdown Support: Responses are formatted with syntax highlighting.
- Export Chat: Download your entire study session for offline review.
- Core: JavaScript (ES6+), HTML5, CSS3
- AI Engine: Google Gemini API (LLM)
- Browser API: Chrome Manifest V3, Storage API, Shadow DOM
- Libraries: marked.js (Markdown parsing)
Open your terminal and run:
git clone https://github.com/rahulpaul-07/AI-Help-Extension.git
- Open Google Chrome and type
chrome://extensions/in the address bar. - Toggle "Developer Mode" (top right corner) to ON.
- Click the "Load unpacked" button.
- Select the folder
AI-Help-chrome-extension(the folder you just cloned).
- Get your free API Key from Google AI Studio.
- Go to the Maang.in platform and open any problem.
- Click the AI Assistant Icon (it appears next to the "Ask Doubt" button).
- Paste your API key into the input field and click "Save".
- Note: Your API key is stored locally in your browser for security.
Contributions are welcome! If you want to improve the UI or add support for other platforms:
- Fork the repository.
- Create a feature branch (
git checkout -b feature/NewFeature). - Commit changes (
git commit -m 'Add NewFeature'). - Push to the branch (
git push origin feature/NewFeature). - Open a Pull Request.
Rahul Paul
This project is licensed under the MIT License - see the LICENSE file for details.