Skip to content

About

A production-ready AI chatbot for students that assists with assignments, academic queries, and study planning using modern LLM techniques, intuitive UI, and scalable architecture.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Study Buddy 🤖 | AI-Powered Academic Assistant

Next.js 15 Tailwind CSS 3.4 Groq Llama 3.1 Vercel

Study Buddy is a sophisticated, production-grade AI-powered study companion designed to help students optimize their academic workflow. Built with Next.js 15, it leverages the Groq API for ultra-fast Llama-3.1 inference to provide instant explanations, personalized study plans, and step-by-step solutions to complex problems.


🚀 Key Features

  • ⚡ Instant AI Tutoring: High-speed AI responses powered by Groq's Llama-3.1-8b-instant model.
  • 📅 Personalized Study Planning: Intelligent scheduling that adapts to class times, labs, and study goals.
  • 🎨 Modern Adaptive UI: A sleek, user-centric interface with seamless Light and Dark mode transition, designed for high-engagement sessions.
  • 🔒 Security First: Serverless architecture ensures API keys are never exposed on the client-side.
  • 📝 Markdown Support: Perfect rendering of academic formulas, code blocks, and structured notes using react-markdown.
  • 📂 Session Management: Local persistent history allows users to maintain multiple study sessions across device reloads.

🛠️ Technical Stack

  • Frontend: Next.js 15 (App Router), React 19
  • Styling: Tailwind CSS, CSS-in-JS Tokens
  • AI Engine: Groq SDK (Llama 3.1 8B Instant)
  • State & Theme: localStorage Persistence, next-themes
  • Inference Strategy: System Prompting for "Academic Mentor" persona to prioritize guidance over direct answers.

🏗️ Architecture & Core Decisions

1. Migrating to Groq for Low Latency

Originally prototyped with Google Gemini, the application was migrated to Groq to take advantage of its revolutionary low-latency inference. This provides a "real-time conversation" feel critical for non-disruptive study sessions.

2. Next.js Serverless API Routes

By utilizing Next.js Serverless Routes, we've implemented a secure backend bridge. This pattern keeps the SB_API_KEY entirely on the server-side, preventing exposure in the browser network tab.

3. Design System & UX

The UI uses Stitch Design System principles:

  • Consistency: Centralized CSS tokens for light/dark modes.
  • Responsibility: Fully responsive layout with an intuitive, ChatGPT-style sidebar mechanism.
  • Accessibility: High contrast, readable typography (Inter), and touch-friendly controls.

📜 System Design

Detailed documentation on architecture, data flow, and technical implementation can be found in SYSTEM_DESIGN.md.


🏁 Getting Started

Prerequisites

Installation & Run

  1. Clone the repository:
    git clone https://github.com/Umair-IITD/Study-Buddy.git
    cd Study-Buddy
  2. Install dependencies:
    npm install
  3. Set up environment: Create a .env.local file:
    SB_API_KEY=your_groq_api_key
  4. Start the engine:
    npm run dev

📈 Future Roadmap

  • RAG Integration: PDF/Note ingestion for contextual learning.
  • Cloud Persistence: Migration to Supabase/Postgres for multi-device sync.
  • Voice-to-Study: Integration of Whisper for hands-free queries.

Built with ❤️ by Md Umair Alam (IIT Delhi)

About

A production-ready AI chatbot for students that assists with assignments, academic queries, and study planning using modern LLM techniques, intuitive UI, and scalable architecture.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages