Skip to content

imstillashish/orthex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orthex Banner

AI Powered Chrome Extension LeetCode Free

Tetris Orthex

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


What it does

Orthex runs three sequential analysis passes on your submission, then generates a personalized learning path.

Pass Feature What you get
01 AI Approach Analysis Identifies your algorithmic technique (DFS, DP, Two Pointers…), compares it to the optimal, and leaves you with one sharp follow-up question.
02 Chart Complexity Visualization Estimates your current time & space complexity and the theoretical optimum, plotting both on an animated SVG graph — O(1) → O(2ⁿ).
03 Code Code Style Review Rates readability and structure: Excellent / Good / Fair / Poor — with concise, actionable critique.
04 Path Learning Path Recommends 2–3 specific LeetCode problems and the concepts behind them based on what the analysis found.
Solutions Solutions Generates Intern · L5 Engineer · Staff Architect approaches, streamed with step-by-step Mermaid flowchart explanations.

Supported verdicts: LeetCode Accepted  ·  Wrong Answer  ·  TLE  ·  MLE  ·  Runtime Error  ·  Compile Error


Themes & Customization

Orthex ships with two distinct design languages out of the box.

Editorial Theme (Glassmorphism) Neubrutalism Theme (Bold & Raw)
Editorial Theme Neubrutalism Theme

How it works

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)

Requirements

  • Chrome Browser: Google Chrome or any Chromium-based browser
  • Groq API Key: A free Groq API key — the free tier is more than enough for daily practice

Installation

Orthex is not yet published to the Chrome Web Store. Load it as an unpacked extension:

  1. Download or clone this repository.
  2. Open Chrome → chrome://extensions/
  3. Enable Developer mode (toggle, top-right).
  4. Click Load unpacked → select the project folder.
  5. The Orthex icon appears in your toolbar.

Configure your API key:

  1. Click the Orthex icon.
  2. Paste your Groq API key → click Save.
  3. The status indicator turns 🟢 green when stored. The key lives in chrome.storage.sync and never leaves your browser.

Usage

Navigate to any LeetCode problem, write a solution, and submit.

Mode How to trigger Behavior
Extension Auto (default) Submit a solution Panel appears automatically for Accepted, WA, and TLE. Configurable in settings.
Extension Manual Click Analysis button Trigger on demand. Click again to dismiss.
LeetCode Solutions Click Solutions button Streams 2–3 approaches with Mermaid flowcharts.

Privacy

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.


File Structure

├── 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

Model & API

Property Value
OpenAI Model openai/gpt-oss-120b via Groq
Tokens / analysis ~800 (prompt + response)
Tokens / solution Up to 4,000 per approach
Groq Rate limit handling Exponential backoff in service worker

Permissions

Permission Reason
Chrome storage Store your API key and analysis cache
Chrome unlimitedStorage Cache results across many submissions
Chrome activeTab Read the current LeetCode submission page
Chrome scripting Inject the analysis panel into the page
LeetCode https://leetcode.com/* Run on LeetCode problem and submission pages
Groq https://api.groq.com/* Send requests to Groq's API

Limitations

  • 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.

About

Most developers memorize LeetCode solutions instead of understanding their code. Orthex is a browser extension that injects a real-time AI code reviewer right into their LeetCode workspace, instantly analyzing and visualizing time and space complexity.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors