Highlight any code on the web → get a plain-English explanation. Powered by Claude.
Decode is a Chrome extension built for people learning to code. Highlight a confusing snippet on GitHub, Stack Overflow, MDN, a blog — anywhere — right-click, and a side panel slides in with a plain-English explanation streamed from Claude.
- Right-click any selected code → "Decode this code"
- Keyboard shortcut: ⌘⇧E (Mac) / Ctrl+⇧+E (Windows)
- Streaming responses — no waiting for a wall of text
- ELI5 mode — explanations using everyday analogies
- Language auto-detection from page markup (works on GitHub, Stack Overflow, MDN, Prism, highlight.js)
- Two providers — Anthropic Claude (paid) or Groq Llama 3.3 70B (free tier)
- Your API key, your bill — stored locally, never sent anywhere except the provider you pick
- Tiny cost — ~$0.001 per explanation on Claude Haiku 4.5, or $0 on Groq's free tier
Decode supports two LLM providers — pick one in the options page.
| Anthropic (Claude) | Groq (Llama) | |
|---|---|---|
| Cost | Paid — ~$0.001 / explanation | Free tier |
| Sign up | console.anthropic.com (card required) | console.groq.com (no card) |
| Quality | Highest — best at code explanation | Strong, especially Llama 3.3 70B |
| Speed | Fast | Very fast (Groq's specialty) |
The README and screenshots use Claude. Groq is there so you can develop and demo the extension at zero cost.
You'll need Node.js 20+ and pnpm.
git clone https://github.com/makdia/Decode.git
cd Decode
pnpm install
pnpm buildThen in Chrome:
- Open
chrome://extensions - Enable Developer mode (top right)
- Click Load unpacked → select the
dist/folder - The Decode options page opens automatically — paste your Anthropic API key
- Highlight a code snippet anywhere on the web
- Right-click → Decode this code
- The side panel opens with a plain-English explanation
Or press ⌘⇧E with text selected.
src/
├── background/ Service worker — Claude API, context menu, storage
├── content/ Selection capture + language detection
├── sidepanel/ React UI that displays the explanation
├── options/ API key + model setup page
└── shared/ Types and prompt templates
- Manifest V3 Chrome extension
- TypeScript end-to-end
- React 18 for the UI
- Tailwind CSS for styling
- Vite +
@crxjs/vite-pluginfor dev/build - Anthropic SDK with streaming + prompt caching
v0.1 (current)
- Right-click → explain via streaming
- Side panel UI with markdown rendering
- Options page for API key and model
- Language detection from page markup
v0.2
- Re-trigger when ELI5 toggle changes
- Follow-up chat ("what's a closure?")
- Save explanations to a personal notebook
- "Explain this line" sub-selection
v0.3
- Export notebook to Anki / markdown
- Quiz mode from saved snippets
- Firefox build
MIT
