How adhavan13/interviewai works
DecodeAI is a Chrome extension for LeetCode interview practice. Its visible workflow is: a user invokes an injected LeetCode action, the page script scrapes problem data or code and asks the extension background to open the side panel, then the React chat UI sends requests to a local backend and displays responses. The README also describes timed interviews, local code execution, Gemini-generated test cases, and AI analysis, but the corresponding implementation is not present in the supplied tree; those capabilities are shown as documented, unsampled stages. The backend and its integrations are not in this repository.
Main entry points: src Timed interview · background.js Message and panel routing · App.jsx Panel app · chatPage.jsx Chat interface
Components 13
LeetCode Integration
- Page actions and scraping
public/content.js
Extension Runtime
- Message and panel routing
public/background.js
Side Panel UI
- React entry
src/main.jsx - Panel app
src/App.jsx - Chat interface
src/components/chatPage.jsx
Interview Services
- Chat API
- Timed interview
src - Dynamic test cases
src - Browser code runtime
src - AI code analysis
src
Other components
- LeetCode user
- LeetCode page
- Gemini API
Connections 15
- LeetCode user → LeetCode page: uses
README.md - LeetCode page → Page actions and scraping: invokes actions
public/content.js - Page actions and scraping → Message and panel routing: sends page data
public/content.js - Message and panel routing → Panel app: opens panel
public/background.js - React entry → Panel app: renders
src/main.jsx - Panel app → Chat interface: renders
src/App.jsx - Panel app → Message and panel routing: signals ready
src/App.jsx - Message and panel routing → Chat interface: dispatches queued data
public/background.js - Chat interface → Chat API: posts chat requests
src/components/chatPage.jsx - Chat API → Gemini API: uses AI
README.md - LeetCode user → Timed interview: starts session
README.md - Timed interview → Dynamic test cases: requests cases
README.md - Timed interview → Browser code runtime: runs solution
README.md - Timed interview → AI code analysis: gets feedback
README.md - AI code analysis → Gemini API: requests analysis
README.md