🚀 Live Site: smart-study-assistant-taupe.vercel.app
Smart Study Assistant is a modern, AI-powered study companion designed to optimize your learning workflow. Instead of studying harder, study smarter by instantly turning your notes, PDFs, or documents into structured study plans, quizzes, and customized explanations.
Simple, clean, and secure signup and login pages powered by Supabase Auth, featuring live form validation and password visibility toggles:
The workspace is designed for maximum study efficiency, featuring auto-saves, dynamic generation panels, and a contextual study chat.
Paste text or upload files (PDFs, TXT, DOCX) to instantly generate structured summaries, key bullet points, and simplified explanations.
Test your knowledge by generating custom multiple-choice and short-answer quizzes from your materials, featuring real-time grading and feedback.
| Feature | Description |
|---|---|
| 📝 Smart Summaries | Condense extensive notes or documents into structured markdown summaries and key bullet points. |
| ❓ Interactive Quizzes | Generate dynamic Multiple Choice / Short Answer practice questions with real-time feedback and validation. |
| 💡 Feynman Explainer | Simplify complex terms, physics equations, or academic concepts using clear, intuitive analogies. |
| 💬 Contextual Sidebar Chat | Chat directly with your notes to query, clarify, or expand on any topic within your study material. |
| 🏷️ Auto-Tagging | Automatically categorize your files into academic subjects (Biology, Physics, Chemistry, Math, History, CS, etc.). |
| 📁 Document Parser | Extract text from PDF, TXT, DOC, and DOCX documents with robust binary stream parsing. |
| 🛡️ Hardened Security | Keep your data private with Supabase Row-Level Security (RLS) and secure password-verified account deletion. |
🛠️ Technology Stack & Architecture
- Frontend: Next.js 15 (App Router, React 19), Tailwind CSS
- Database & Authentication: Supabase (PostgreSQL, GoTrue, Row Level Security)
- AI Cognitive Processing: OpenRouter API (utilizing free-tier LLM models)
- File Processing:
pdf-parse
🚀 Local Development Setup
Ensure you have Node.js installed (v18.x or higher is recommended).
Create a .env.local file in the root of the project with the following configuration:
# Supabase Configuration
NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
SUPABASE_SERVICE_ROLE_KEY=your-supabase-service-role-key
# AI Provider Configuration
OPENROUTER_API_KEY=your-openrouter-free-api-keyExecute the SQL scripts inside supabase/schema.sql within your Supabase project's SQL editor to set up the necessary tables, policies, triggers, and RPC functions.
npm installnpm run devOpen http://localhost:3000 in your browser to view the application.
📦 Production Build & Deployment
To compile and optimize the application for production deployment, run:
npm run buildTo preview the built production site locally, run:
npm run startThe application is fully compatible with Vercel out of the box:
- Push the code repository to GitHub, GitLab, or Bitbucket.
- Go to the Vercel Dashboard and click Add New Project.
- Import the repository.
- Input the environment variables (from
.env.local) in Vercel's Environment Variables configuration. - Click Deploy. Vercel will bundle the codebase and host it on HTTPS.
This project is open-source and available under the MIT License.



