Inspiration

From high school to college to professional certifications, I've consistently faced one frustrating problem: I couldn't find study materials that targeted my actual weak spots.

Recently, while preparing for an important exam, I kept making mistakes on one specific topic: "fixed prepositions." I knew exactly where I was struggling, so I searched online for targeted practice.

What did I find?

  • Long articles with 1000+ examples (passive reading that didn't stick)
  • Generic mock papers where only 2-3 out of 50 questions were relevant
  • Hours wasted reviewing topics I'd already mastered

I just wanted to tell someone: "I'm weak at fixed prepositions—quiz me on that, see where I mess up, and keep going until I master it."

I tried building a basic HTML quiz page myself, but it was time-consuming and clunky. That's when it hit me: this isn't just my problem—it's every student's problem.

We all know our weak spots—the hard part is actually fixing them efficiently.

What we actually need is a study coach who can:

  • Generate practice on our weak spots instantly
  • Adapt based on our performance
  • Give feedback that actually helps us improve

But personal tutors are expensive and rarely available when you need them most—like at 2 AM during exam week. That's when I realized: Chrome's built-in AI could be that coach—instant, private, powerful, and always available. No subscriptions, no data leaving your device, no limits.

That's when Exam Buddy was born — your 24/7 AI study coach that converts any content into adaptive quizzes, identifies your knowledge gaps, and guides you to mastery with intelligent feedback. All powered by on-device AI, completely private and offline.


Solution & Features

Exam Buddy is an offline AI study coach that turns any content—webpages, PDFs, or notes—into personalized quizzes targeting your weak spots. It runs entirely inside Chrome, powered by on-device AI, keeping learning private, fast, and distraction-free.

Key Features

  1. Instant Quiz Generation – Create adaptive quizzes from any text with customizable question types (MCQ, True/False, Fill-in-the-blank, Subjective)
  2. Smart AI Evaluation – Contextually evaluates subjective answers, not just keyword matching
  3. Adaptive Learning – Identifies knowledge gaps and suggests targeted practice areas
  4. Bookmark & Review – Save difficult questions for later practice
  5. Comprehensive Analytics – Track progress, identify trends, and measure improvement offline
  6. Pause & Resume – Continue from where you left off, even after browser restarts

API Integration & Technical Implementation

Chrome Extension & AI APIs Used

  • chrome.sidePanel - Persistent UI panel for quiz interface
  • chrome.contextMenus - "Start Quiz with Exam Buddy" right-click menu integration
  • chrome.runtime - Secure messaging between UI, content scripts, and background services
  • chrome.storage.local - On-device persistence for quizzes, bookmarks, and analytics
  • chrome.aiOriginTrial.languageModel - Core AI platform providing access to:
    • Prompt API - Generates quizzes, evaluates answers, and creates study recommendations with structured output
    • Summarizer API - Compresses long documents to focus on key educational concepts

Technical Architecture

  • Frontend: React + Vite + TailwindCSS for responsive UI
  • Content Processing: Readability.js for webpage cleanup, PDF.js for document parsing
  • AI Pipeline: Multi-stage processing with validation and repair systems
  • State Management: Custom React hooks with Chrome storage integration

AI Processing Pipeline

  1. Content Extraction - Content scripts and Readability.js extract clean text; PDF.js handles document parsing
  2. Intelligent Summarization - Chrome's Summarizer API condenses long documents while preserving educational value
  3. Structured Quiz Generation - Chrome's Prompt API with JSON schemas creates validated questions
  4. AI Answer Evaluation - Subjective answers evaluated contextually using Prompt API
  5. Auto-Repair System - Validates and fixes malformed AI output automatically

Quick Start

pre-build extension for ready to use

Download the latest release from Releases and install in Chrome:

  1. Extract the zip file
  2. Go to chrome://extensions
  3. Enable "Developer mode"
  4. Click "Load unpacked" and select the extracted folder

Build from Source

  1. Clone the repository:

    git clone https://github.com/AnchitSingh/exam-buddy.git
    cd exam-buddy
    
  2. Install dependencies:

    npm install
    
  3. Build the extension:

    npm run build
    
  4. Load in Chrome:

    • Navigate to chrome://extensions
    • Enable Developer mode (top right)
    • Click Load unpacked
    • Select the dist folder
    • Pin the extension and start learning! 🎉

Future Plans

  • AI-powered study plans and curriculum adaptation
  • Collaboration features for group learning

Vision: A completely private, always-available AI tutor that knows your learning patterns, adapts to your style, and runs entirely offline.

Built With

Share this project:

Updates