Skip to content

sanidhyexe/algomaster-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ AlgoMaster AI

An AI-Powered Interactive Learning Platform for Mastering Data Structures & Algorithms

TypeScript React Vite License

Features โ€ข Demo โ€ข Installation โ€ข Tech Stack โ€ข Contributing


๐Ÿ“‹ Overview

AlgoMaster AI is a next-generation educational platform that combines interactive coding, AI-powered tutoring, and comprehensive progress tracking to help developers master Data Structures and Algorithms. Whether you're preparing for FAANG interviews or strengthening your fundamentals, AlgoMaster AI provides an engaging, hands-on learning experience.

๐ŸŽฏ Key Highlights

  • ๐Ÿค– AI-Powered Assistant - Get contextual hints and guidance using Gemini 2.5 Flash
  • ๐Ÿ’ป Multi-Language Support - Code in JavaScript, TypeScript, Python, Java, and C++
  • ๐Ÿƒ In-Browser Execution - Run code instantly without any backend setup
  • ๐Ÿ“Š Progress Analytics - Track your learning journey with detailed metrics
  • ๐ŸŽ“ Interview Prep - FAANG-focused problem sets and mock scenarios
  • ๐Ÿ‘ฅ Community Features - Share solutions and learn from peers

โœจ Features

1. Interactive Code Editor

  • Monaco Editor integration with syntax highlighting
  • Auto-indentation, bracket matching, and code completion
  • Per-language code persistence using localStorage
  • Support for 5 programming languages

2. Code Execution Engine

  • JavaScript/TypeScript: Sandboxed iframe execution
  • Python: Pyodide-based WASM interpreter
  • Real-time output console with error handling
  • No server required - runs entirely in the browser

3. AI Coding Assistant

  • Powered by Google Gemini 2.5 Flash
  • Context-aware hints based on your current problem
  • Socratic teaching method - guides without spoiling
  • Complexity analysis and optimization suggestions

4. Comprehensive DSA Curriculum

  • 10+ algorithm topics (Arrays, Trees, Graphs, DP, etc.)
  • 100+ curated problems with difficulty ratings
  • Detailed explanations and example test cases
  • Language-specific starter templates

5. Learning Analytics Dashboard

  • Problems solved tracker
  • Current streak and activity heatmap
  • Skill distribution charts (using Recharts)
  • Topic-wise progress breakdown

6. Community & Discussion

  • Share solutions and coding approaches
  • Like, comment, and follow other learners
  • Build your coding reputation

7. FAANG Interview Preparation

  • Company-specific problem banks
  • Timed mock interview sessions
  • Interview constraint simulations

๐ŸŽฌ Demo

image

๐Ÿš€ Installation

Prerequisites

Steps

  1. Clone the repository

    git clone https://github.com/yourusername/algomaster-ai.git
    cd algomaster-ai
  2. Install dependencies

    npm install
  3. Set up environment variables

    Create a .env.local file in the root directory:

    VITE_GEMINI_API_KEY=your_gemini_api_key_here
  4. Run the development server

    npm run dev
  5. Open your browser

    Navigate to http://localhost:5173


๐Ÿ› ๏ธ Tech Stack

Frontend

  • React 19.2 - UI framework
  • TypeScript 5.8 - Type-safe JavaScript
  • Vite 6.2 - Lightning-fast build tool
  • Monaco Editor - VS Code-powered code editor
  • Recharts - Data visualization for analytics

AI & Execution

  • Google Gemini 2.5 Flash - AI assistant backend
  • Pyodide - Python WASM runtime
  • Sandboxed iframes - JavaScript execution

Storage

  • localStorage - Client-side data persistence (no backend required)

๐Ÿ“‚ Project Structure

algomaster-ai/
โ”œโ”€โ”€ components/           # React components
โ”‚   โ”œโ”€โ”€ About.tsx
โ”‚   โ”œโ”€โ”€ Community.tsx
โ”‚   โ”œโ”€โ”€ Curriculum.tsx
โ”‚   โ”œโ”€โ”€ FAANGPrep.tsx
โ”‚   โ”œโ”€โ”€ ProblemSolver.tsx
โ”‚   โ””โ”€โ”€ Profile.tsx
โ”œโ”€โ”€ services/
โ”‚   โ””โ”€โ”€ geminiService.ts  # AI service integration
โ”œโ”€โ”€ App.tsx               # Main application component
โ”œโ”€โ”€ types.ts              # TypeScript type definitions
โ”œโ”€โ”€ constants.ts          # App constants and data
โ”œโ”€โ”€ index.tsx             # Application entry point
โ”œโ”€โ”€ vite.config.ts        # Vite configuration
โ””โ”€โ”€ package.json          # Dependencies and scripts

๐ŸŽฎ Usage

Solving Problems

  1. Browse Curriculum - Select a topic (Arrays, Trees, etc.)
  2. Choose a Problem - Pick based on difficulty (Easy/Medium/Hard)
  3. Write Code - Use the multi-language editor
  4. Run & Test - Execute your code in the browser
  5. Get AI Help - Ask the assistant for hints if stuck
  6. Track Progress - See your stats update in real-time

Using the AI Assistant

  • Click the chat icon while solving a problem
  • Ask questions like:
    • "What approach should I use for this problem?"
    • "Can you explain the optimal solution?"
    • "How can I optimize my time complexity?"
  • The AI provides hints without giving away the full solution

๐Ÿค Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ Scripts

npm run dev      # Start development server
npm run build    # Build for production
npm run preview  # Preview production build

๐ŸŒ Deployment

This app can be deployed to any static hosting platform:

Vercel

npm install -g vercel
vercel

Netlify

npm run build
# Deploy the `dist` folder

GitHub Pages

npm run build
# Deploy the `dist` folder to gh-pages branch

Important: Don't forget to set your VITE_GEMINI_API_KEY in the hosting platform's environment variables.


๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments


๐Ÿ“ง Contact

For questions or feedback, please open an issue or reach out to the maintainers.


Made with โค๏ธ for developers preparing for their dream jobs

โญ Star this repo if you find it helpful!

About

๐Ÿš€ AI-powered DSA learning platform with multi-language code editor, in-browser execution, and Gemini-powered tutoring. Vibe coded to help you master algorithms and crush FAANG interviews.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors