dsa-learning-coach

DSA Learning Coach

A Chrome extension for practicing Data Structures & Algorithms. Generates original interview-style questions and intuition-first explanations via either OpenAI GPT or Anthropic Claude — bring your own API key and switch providers any time.

Manifest V3 · no build step · vanilla JS.

Install

From the Chrome Web Store

Coming soon — link will be added after first review approval.

From source (load unpacked)

  1. Clone or download this repo.
  2. Open chrome://extensions and toggle Developer mode on.
  3. Click Load unpacked → select the project root (the folder with manifest.json).
  4. Pin the extension, click the icon, then open the settings page (gear icon) and paste your API key.

If no key is configured the popup still works against a small offline question bank.

API keys

Keys are stored in chrome.storage.sync. Only the active provider’s key is ever sent, and only to that provider’s API.

Project layout

manifest.json
background/service-worker.js   all API traffic goes through here
popup/                         400x600 popup UI
options/                       settings page (provider + keys + defaults)
lib/
  ai-provider.js               routes to the active provider
  gpt-client.js                OpenAI wrapper
  claude-client.js             Anthropic wrapper
  question-bank.js             offline fallback questions + intuitions
utils/
  constants.js                 topics, models, endpoints, temperatures
  prompts.js                   single source of truth for prompts
  storage.js                   chrome.storage helpers
assets/
  icons/                       extension icons (16, 48, 128 px)
  styles/global.css            shared CSS tokens + dark-mode

Privacy

No servers, no analytics, no telemetry. Settings and keys live in your browser. Prompt content goes directly from your browser to the provider you selected. Full detail in PRIVACY.md.

Development notes

License

MIT.