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.
- ⚡ 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.
- 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:
localStoragePersistence,next-themes - Inference Strategy: System Prompting for "Academic Mentor" persona to prioritize guidance over direct answers.
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.
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.
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.
Detailed documentation on architecture, data flow, and technical implementation can be found in SYSTEM_DESIGN.md.
- Node.js 18+
- Groq API Key
- Clone the repository:
git clone https://github.com/Umair-IITD/Study-Buddy.git cd Study-Buddy - Install dependencies:
npm install
- Set up environment:
Create a
.env.localfile:SB_API_KEY=your_groq_api_key
- Start the engine:
npm run dev
- 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)