AI LeetCode Tutor Extension With Auto-Generated Diagrams
AI products · Creator, sole engineer · shipped
Getting help on a coding problem usually means leaving the page and pasting into a chatbot that hands you the finished answer, which teaches nothing.
Code: https://github.com/vasu-devs/LeetBot
The detail
This injects into the problem page itself with three deliberately different modes: Hint nudges you toward the next step, Tutor explains a concept, and Planner helps you structure an approach. None of them dump a solution.
AI explanations are automatically rendered as diagrams, and because a generated diagram in a narrow sidebar is unreadable, they are pannable and zoomable.
API keys stay in local extension storage and never transit any server.
TypeScript, React, Vite, Chrome Manifest V3, Google Gemini, Mermaid.
What I did
- Built a browser extension that injects directly into an existing site rather than requiring a separate tool
- Designed three distinct teaching modes with different pedagogy - hint, explain, and plan
- Auto-generated algorithm diagrams from AI output and made them pannable and zoomable in a narrow sidebar
- Kept API keys in local extension storage so they never transit a server
Stack
TypeScript, React, Chrome Extension, Gemini, Mermaid, Vite
Case study: https://www.siddhvasudev.com/projects/ai-leetcode-tutor-extension-with-auto