Skip to content

Dutta2005/leetcode-whisper

Repository files navigation

🧠 LeetCode Whisper – Your Companion to Beat LeetCode!

LeetCode Whisper is a Chrome extension designed to help you solve LeetCode problems efficiently with the power of AI models (OpenAI, Gemini) like GPT-3.5 Turbo. Simply choose a model, enter your API key, and receive contextual help directly on LeetCode.


🚀 Features

  • Model selection (e.g., GPT-3.5 Turbo)
  • Secure API key input
  • Contextual AI help while solving problems on LeetCode
  • Seamless UI embedded into LeetCode problem page

🛠️ Getting Started Locally

Follow these steps to run the extension locally on your machine:

1. Clone the Repository

git clone https://github.com/Dutta2005/leetcode-whisper.git
cd leetcode-whisper

2. Install Dependencies

npm install

3. Start the Development Build

npm run dev

This will generate a dist/ folder inside your project directory.

4. Load the Extension in Chrome

  1. Open Chrome and go to chrome://extensions/

  2. Enable Developer Mode (top right)

  3. Click on Load unpacked

  4. Select the dist/ folder inside your project directory

✅ The extension is now installed in Chrome.


✨ How to Use the Extension

. Click the Extension Icon
After installing the extension, click the LeetCode Whisper icon in your Chrome toolbar.

  1. Select Model & Enter API Key
    A popup will appear as shown below:

    • Select your preferred model (e.g., GPT-3.5 Turbo)
    • Enter your OpenAI API Key
    • Click Save API Key

    Model and API Key Popup

  2. Open Any LeetCode Problem
    Navigate to LeetCode and open any problem.
    You’ll now see the AI assistant panel integrated on the right-hand side of the screen.

    Extension in Action

  3. Start Asking Questions
    Use the AI assistant to get contextual help:

    • "Tell me how can I solve it?"
    • "What’s the time complexity?"
    • "Explain the edge cases"

📌 Notes

  • Ensure your API key has access to the selected model.

  • All conversations stay on your localstorage. Your API key is stored securely on your chrome local storage.

  • Only works on leetcode.com domain.


🧑‍💻 Contributing

Feel free to open issues or submit pull requests for improvements or new features.

About

LeetCode Whisper is a Chrome extension designed to help you solve LeetCode problems efficiently with the power of AI models (OpenAI, Gemini)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages