Skip to content

assassinaj602/study-buddy-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ“ Study Buddy AI - Your Personal Academic Assistant

License: MIT JavaScript HTML5 CSS3

Study Buddy AI is an intelligent, multi-modal academic assistant powered by advanced AI technology. It helps students learn more effectively by providing personalized explanations, processing various file formats, and offering interactive learning experiences.

๐ŸŒ Live Demo

Try it now: https://assassinaj602.github.io/study-buddy-ai/

Study Buddy AI Interface

โœจ Features

๐Ÿค– AI-Powered Learning

  • Intelligent Responses: Get personalized explanations tailored to your learning style
  • Multi-Subject Support: Covers Math, Science, English, History, Computer Science, and more
  • Grade-Level Adaptation: Adjusts complexity from Elementary to College level
  • Multiple Learning Styles: Detailed, Summary, Funny, and Step-by-step explanations

AI Chat Interface

๐Ÿ“ Multi-Modal File Processing

  • PDF Processing: Extract and analyze text from PDF documents
  • Word Document Support: Process .docx files seamlessly
  • Image OCR: Extract text from images using advanced OCR technology
  • Voice Input: Record and transcribe speech to text

File Upload Features

๐ŸŽจ Modern User Interface

  • Responsive Design: Works perfectly on desktop, tablet, and mobile devices
  • Dark/Light Mode: Toggle between themes for comfortable viewing
  • Interactive Elements: Smooth animations and hover effects
  • Real-time Streaming: See AI responses as they're generated

Dark Mode Interface

๐Ÿš€ Getting Started

Prerequisites

  • A modern web browser (Chrome, Firefox, Safari, Edge)
  • Internet connection for AI API calls
  • API key from OpenRouter AI (or compatible AI service)

Installation

  1. Clone the repository

    git clone https://github.com/assassinaj602/study-buddy-ai.git
    cd study-buddy-ai
  2. Open the project

    • Simply open index.html in your web browser
    • No build process required - it's a pure HTML/CSS/JavaScript application
  3. Configure API Key

    • Open index.html in a text editor
    • Find the API_KEY variable and replace it with your OpenRouter AI API key
    const API_KEY = 'your-api-key-here';

๐Ÿ”ง Configuration

The application uses OpenRouter AI by default, but you can configure it to use other AI services:

// API Configuration
const API_KEY = 'your-api-key-here';
const API_URL = 'https://openrouter.ai/api/v1/chat/completions';

๐Ÿ“– Usage

Basic Chat

  1. Select your subject, grade level, and preferred learning style
  2. Type your question in the text area
  3. Click "Send" or press Enter to get an AI response
  4. Use "Stop" to interrupt generation or "Remake" to get a different response

Basic Chat Usage

File Upload

  1. PDF/Word Documents: Click "Upload File" and select your document
  2. Images: Click "Upload Photo" to process images with OCR
  3. Voice: Click "Record Voice" to convert speech to text

File Processing

Advanced Features

  • Stop Generation: Interrupt long responses mid-stream
  • Remake Answers: Get alternative explanations for the same question
  • Theme Toggle: Switch between light and dark modes
  • Responsive Design: Use on any device size

๐Ÿ› ๏ธ Technical Details

Built With

  • Frontend: HTML5, CSS3, Vanilla JavaScript
  • AI Integration: OpenRouter AI API
  • File Processing:
    • PDF.js for PDF processing
    • Mammoth.js for Word documents
    • Tesseract.js for OCR
  • Speech Processing: Web Speech API & AssemblyAI

Architecture

study-buddy-ai/
โ”œโ”€โ”€ index.html          # Main application file
โ”œโ”€โ”€ README.md          # This file
โ””โ”€โ”€ screenshots/       # Interface screenshots
    โ”œโ”€โ”€ main-interface.png
    โ”œโ”€โ”€ chat-interface.png
    โ”œโ”€โ”€ file-upload.png
    โ”œโ”€โ”€ dark-mode.png
    โ”œโ”€โ”€ basic-chat.png
    โ””โ”€โ”€ file-processing.png

Key Features Implementation

  • Streaming Responses: Real-time AI response display
  • File Processing: Multi-format document analysis
  • OCR Integration: Image-to-text conversion
  • Responsive Design: Mobile-first approach
  • Dark Mode: CSS custom properties for theming

๐ŸŽฏ Use Cases

For Students

  • Homework Help: Get explanations for difficult concepts
  • Document Analysis: Process study materials and textbooks
  • Note Taking: Convert handwritten notes to digital text
  • Quick Quizzes: Generate practice questions from uploaded content

For Educators

  • Content Creation: Generate educational materials
  • Student Assessment: Analyze student work and provide feedback
  • Lesson Planning: Create structured learning content
  • Accessibility: Convert various formats to accessible text

Use Cases

๐Ÿ”’ Privacy & Security

  • No Data Storage: All processing happens in real-time
  • Client-Side Processing: File processing occurs in your browser
  • API Security: Uses secure HTTPS connections
  • No Personal Data: Only chat content is sent to AI services

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

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

Development Guidelines

  • Follow existing code style and formatting
  • Test on multiple browsers and devices
  • Update documentation for new features
  • Keep the single-file architecture when possible

๐Ÿ“ License

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

๐Ÿ™ Acknowledgments

  • OpenRouter AI for providing the AI API
  • PDF.js for PDF processing capabilities
  • Tesseract.js for OCR functionality
  • Mammoth.js for Word document processing
  • AssemblyAI for speech-to-text services
  • Material Icons for the beautiful icons

๐Ÿ“ž Support

If you encounter any issues or have questions:

  1. Check the Issues: Look for existing solutions
  2. Create an Issue: Report bugs or request features
  3. Email Support: [email protected]
  4. Documentation: Check this README for detailed information

๐Ÿ”ฎ Future Enhancements

  • Real-time collaboration features
  • Extended file format support
  • Custom AI model integration
  • Progress tracking and analytics
  • Mobile app development
  • Multi-language support
  • Advanced quiz generation
  • Study session management

Made with โค๏ธ for students and educators worldwide

๐Ÿ“Š Project Stats

GitHub stars GitHub forks GitHub issues GitHub pull requests

Last updated: July 2025

About

Multi-modal AI academic assistant with file processing capabilities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages