https://github.com/jayeshvegda/leetsimplify
AI-powered problem simplification for leetcode problems
https://github.com/jayeshvegda/leetsimplify
ai chrome chrome-extension dsa dsa-practice leetcode
Last synced: about 1 month ago
JSON representation
AI-powered problem simplification for leetcode problems
- Host: GitHub
- URL: https://github.com/jayeshvegda/leetsimplify
- Owner: JayeshVegda
- License: mit
- Created: 2025-11-11T13:19:11.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-11-20T12:32:39.000Z (7 months ago)
- Last Synced: 2025-11-23T05:02:33.248Z (7 months ago)
- Topics: ai, chrome, chrome-extension, dsa, dsa-practice, leetcode
- Language: JavaScript
- Homepage:
- Size: 67.2 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
#
LeetSimplify
Turn dense LeetCode statements into clear, friendly briefs.
AI-powered simplification that keeps every detail intact.
github.com/JayeshVegda/LeetSimplify
## Project Overview
LeetSimplify is a Manifest V3 Chrome extension that rewrites any LeetCode problem description into concise, easy-to-digest language without dropping constraints, formats, or edge cases. It plugs directly into problem pages, speaks to multiple AI providers (Gemini, GPT-4o, Claude, Cohere, Mistral, or a local Ollama endpoint), and gives you a toggleable hint mode whenever you need strategic nudges.
## Key Features
- β¨ **One-click simplification** β Injects a contextual button directly inside every LeetCode problem view.
- π§ **Multi-provider intelligence** β Gemini by default, with instant switching to OpenAI, Anthropic, Cohere, Mistral, or self-hosted models.
- π§ **Mode-aware prompts** β Choose between detail-only summaries or hint-enriched rewrites powered by curated prompt templates.
- β»οΈ **Regenerate & retry** β Keeps request history so you can tweak providers or prompts and regenerate instantly.
- βοΈ **Rich popup controls** β Minimal UI for toggling features, updating API keys, swapping models, or pointing to custom endpoints.
- π‘οΈ **Context-safe storage** β Guards against Chrome context invalidation and guides you whenever a page refresh is required.
## Screenshots & Demo
https://github.com/user-attachments/assets/7ebf1577-bb2d-4110-80f5-4b4ba3397bba
## Installation
1. Download or clone the repository:
```bash
git clone https://github.com/JayeshVegda/LeetSimplify.git
cd LeetSimplify
```
2. Open `chrome://extensions` in Chrome (or Arc, Brave, Edge with Chromium).
3. Toggle **Developer mode**.
4. Choose **Load unpacked** and select the `LeetSimplify` folder.
5. Pin the extension for quick access if desired.
## How to Run / Usage
1. Visit any LeetCode problem page (`/problems/...`).
2. Click the **Simplify** button that appears near the difficulty/tags row or description header.
3. Manage preferences from the popup (`Extensions toolbar β LeetSimplify`):
- Toggle simplification on/off.
- Switch between *No Hint* and *With Hint* modes.
- Select your preferred AI provider and paste the corresponding API key (use `"local"` for Ollama-style endpoints).
4. Regenerate responses or change providers on the flyβno page refresh needed unless Chrome invalidates the extension context (LeetSimplify warns you when that happens).
## Folder Structure
```
LeetSimplify/
ββ manifest.json # Chrome MV3 configuration
ββ content.js # In-page injector & AI orchestration
ββ providers.js # Provider-specific request helpers
ββ styles.css # In-problem UI styles
ββ prompts.json # Structured prompt templates & defaults
ββ ui/
β ββ popup.html
β ββ popup.css
β ββ popup.js # Extension action UI logic
ββ icons/ # App icons & demo media
ββ docs/ # Static assets or marketing preview
```
## Contributing
Contributions, bug reports, and feature ideas are welcome! To keep everything smooth:
1. Read `CONTRIBUTING.md` for coding standards and security guidance.
2. Fork, branch, and open a pull request describing your changes.
3. If youβre adding a provider or prompt variation, update `prompts.json` and any relevant documentation.
## License
Distributed under the **MIT License**. See `LICENSE` for details.
## Contact
- **Author:** Jayesh Vegda
- **GitHub:** [@JayeshVegda](https://github.com/JayeshVegda)
- **Issues & Support:** Use the [GitHub issue tracker](https://github.com/JayeshVegda/LeetSimplify/issues)
_Built for problem solvers who want clarity without compromise._