LeetCode AI Code Review & Big-O Checker
A multi-pass AI debrief that runs directly inside LeetCode.
Analyze your approach. Visualize complexity. Learn what to study next.
No account · No server · No cost
Orthex runs three sequential analysis passes on your submission, then generates a personalized learning path.
Supported verdicts:
Accepted · Wrong Answer · TLE · MLE · Runtime Error · Compile Error
Orthex ships with two distinct design languages out of the box.
| Editorial Theme (Glassmorphism) | Neubrutalism Theme (Bold & Raw) |
|---|---|
![]() |
![]() |
Submit on LeetCode
↓
content.js extracts problem title, difficulty,
language, verdict, runtime, memory, and code
↓
service-worker.js sends a structured prompt
to Groq → openai/gpt-oss-120b
↓
JSON response parsed into 4 analysis panels
↓
Result cached in chrome.storage.local
(repeat views cost zero API tokens)
Browser: Google Chrome or any Chromium-based browser
API Key: A free Groq API key — the free tier is more than enough for daily practice
Orthex is not yet published to the Chrome Web Store. Load it as an unpacked extension:
- Download or clone this repository.
- Open Chrome →
chrome://extensions/ - Enable Developer mode (toggle, top-right).
- Click Load unpacked → select the project folder.
- The Orthex icon appears in your toolbar.
Configure your API key:
- Click the Orthex icon.
- Paste your Groq API key → click Save.
- The status indicator turns
🟢 greenwhen stored. The key lives inchrome.storage.syncand never leaves your browser.
Navigate to any LeetCode problem, write a solution, and submit.
Your code goes directly from your browser → Groq's API. Orthex has:
- ✦ No backend server
- ✦ No database
- ✦ No telemetry
Your API key is stored locally in Chrome's sync storage. We never see your code.
The BYOK (Bring Your Own Key) model is not a workaround — it is the architecture. We will not offer a tier that routes your code through our servers.
├── manifest.json — Chrome Extension Manifest V3
├── DESIGN.md — Design system reference
├── BRAND.md — Brand guidelines and voice
├── background/
│ └── service-worker.js — Groq API calls, caching, response parsing
├── scripts/
│ ├── content.js — DOM injection, analysis panels, theme sync
│ └── extractor.js — Extracts submission data from LeetCode's DOM
├── styles/
│ ├── main.css — Design tokens: colors, typography, spacing
│ └── panel.css — Analysis panel component styles
├── popup/
│ ├── popup.html — Settings popup
│ ├── popup.js — API key storage, settings logic
│ └── popup.css — Popup styles
├── assets/
│ └── icon.svg — Premium Tetris brand icon
└── lib/
├── marked.min.js — Markdown renderer
└── mermaid.min.js — Flowchart renderer
| Property | Value |
|---|---|
openai/gpt-oss-120b via Groq |
|
| Tokens / analysis | ~800 (prompt + response) |
| Tokens / solution | Up to 4,000 per approach |
| Exponential backoff in service worker |
- DOM dependency — Orthex reads submitted code from the DOM. LeetCode UI updates may break the code extraction selector. If only stats appear without code, the selector likely changed.
- AI estimates — Complexity grades and approach suggestions reflect the model's pattern recognition. Treat them as a starting point, not absolute ground truth.
- Mermaid edge cases — Syntax errors in complex auto-generated diagrams are caught and suppressed. The step-by-step explanation text still renders.

