The ultimate "Socratic" mentor for your coding journey.
Student Buddy doesn't just give you the answer—it guides you to the solution, helping you master Data Structures and Algorithms.
Student Buddy seamlessly integrates with the top coding platforms to help you wherever you practice:
| Platform | Support Status |
|---|---|
| LeetCode | ✅ Full Support |
| GeeksforGeeks | ✅ Full Support |
| HackerRank | ✅ Full Support |
| Codeforces | ✅ Full Support |
| Naukri.com | ✅ Full Support |
Visualize your new coding workflow:
| Intelligent Hinting | Problem Context Awareness |
|---|---|
Get progressive hints without spoilers. |
Smart detection on LeetCode. |
| Seamless Integration | Premium Chat Interface |
|---|---|
Works perfectly on GeeksForGeeks. |
Modern, dark-themed UI. |
- 🚫 Anti-Spoonfeeding: Strictly follows a "Hint Escalation Ladder" to prevent giving easy answers.
- 🧠 Automatic Context: Instantly detects the problem title, description, and platform you are currently viewing.
- 💡 Progressive Hints:
- Nudge: A gentle push in the right direction.
- Clue: A more specific pointer about the logic.
- Strategy: High-level approach without code.
- 🛠️ Pro Tools:
- Debug Mode: Paste your code for a bug analysis without revealing the full fix.
- Big-O Analysis: Instantly check time/space complexity.
- Similar Problems: Get recommendations for pattern matching.
- 🎨 Premium Experience: A sleek, dark-themed, glassmorphism interface that feels like a native part of your browser.
How does Student Buddy work under the hood?
graph TD
User[User on LeetCode/GFG] -->|Opens| Extension[Extension Side Panel]
Extension -->|Content Script| Page[Web Page DOM]
Page -->|Scrapes| Context[Problem Title & Desc]
Context -->|Sent back| Extension
User -->|Asks Question| Extension
Extension -->|Injects| SystemPrompt[Strict System Prompt]
Extension -->|Includes| Context
Extension -->|Sends Request| OpenAI[OpenAI API]
OpenAI -->|Returns Hint| Extension
Extension -->|Displays| UI[Premium UI]
Since this extension uses your personal API key, you need to set it up locally.
git clone https://github.com/yourusername/student-buddy.git
cd student-buddyTo keep your key safe, we use a local secrets file that is ignored by Git.
- Find the file named
secrets.example.jsin the folder. - Duplicate it (Copy/Paste) and rename the copy to
secrets.js. - Open
secrets.jsin a text editor. - Paste your OpenAI API Key inside:
// secrets.js
const SECRETS = {
OPENAI_API_KEY: "sk-proj-xxxxxxxxxxxxxxxxxxxxxxxx"
};IMPORTANT: Never commit
secrets.jsto GitHub! (It is already in.gitignore).
- Open Chrome and navigate to
chrome://extensions. - Toggle Developer Mode (top right corner) to ON.
- Click the Load Unpacked button (top left).
- Select the
student-buddyfolder. - Pin the 🧠 icon to your browser toolbar!
- Navigate to a Problem: Go to any supported platform (e.g., LeetCode).
- Open Student Buddy: Click the pin icon in your toolbar to open the side panel.
- Check Status: The top bar should show the problem name (e.g., "LeetCode: Two Sum").
- Interact:
- Click 💡 Hint for a small nudge.
- Click ⚡ Big-O to understand complexity.
- Type a specific question like "Why is my loop failing?".
- Frontend: HTML5, CSS3 (Glassmorphism), JavaScript (ES6+).
- Platform: Chrome Extension Manifest V3 (Side Panel API).
- AI Backend: OpenAI GPT-4o / GPT-4-turbo (configurable).
| Issue | Solution |
|---|---|
| "Missing API Key" error | Ensure you renamed secrets.example.js to secrets.js and added your actual key. |
| "No supported problem detected" | Refresh the web page and then click the "Refresh" icon in the extension header. |
| Extension UI looks broken | Go to chrome://extensions and click the "Refresh" (circular arrow) icon on the card to reload the code. |
We welcome contributions!
- Fork the repo.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Made with ❤️ by the Student Buddy Team



