An intelligent AI study companion that personalizes learning, creates flashcards, generates quizzes, and helps students learn faster and smarter.
TutorBot is a production-ready MVP that serves as an AI-powered study coach designed for students who lack access to private tutors. Using advanced AI technology, it transforms study materials into interactive learning experiences with summaries, flashcards, quizzes, and personalized study plans.
- Multiple Input Methods: Support for PDF files, plain text, and topic-based learning
- Drag & Drop Interface: Intuitive file upload with visual feedback
- AI Content Processing: Automatically parses and understands uploaded material
- Clean Text Extraction: Converts various formats into structured study content
- Intelligent Summarization: GPT-powered content analysis and summarization
- Structured Output: Bullet points, key takeaways, and TL;DR sections
- Student-Friendly Format: Content adapted for 14+ year old students
- Reading Time Estimation: Provides estimated study time for materials
- AI-Generated Cards: Automatically creates question-answer pairs from content
- Spaced Repetition: Tracks mastery level and review frequency
- 3D Card Animations: Smooth flip animations with CSS transforms
- Difficulty Levels: Easy, medium, and hard categorization
- Progress Tracking: Visual progress indicators and completion statistics
- Multiple Question Types: Multiple choice and true/false questions
- Varied Difficulty: AI generates questions at different complexity levels
- Instant Feedback: Immediate results with correct answer explanations
- Score Tracking: Performance analytics and improvement suggestions
- Retake Functionality: Unlimited quiz attempts with reset options
- Personalized Schedules: AI generates custom study plans (3-30 days)
- Time Management: Optimized daily study sessions (30-90 minutes)
- Topic Breakdown: Logical progression from basic to advanced concepts
- Activity Suggestions: Specific, actionable study tasks
- Progress Monitoring: Track completion and adjust plans accordingly
- 24/7 Availability: Always-on AI tutor for questions and guidance
- Daily Questions: Proactive review questions to reinforce learning
- Weakness Detection: Identifies areas needing additional practice
- Encouragement System: Motivational support and study tips
- Contextual Responses: Maintains conversation history for relevant help
- Animated Star Background: Dynamic particle system with twinkling stars
- Nebula Effects: Gradient backgrounds with floating particle animations
- Glassmorphism Design: Modern blur effects and translucent elements
- Responsive Layout: Mobile-first design that adapts to all screen sizes
- Purple-Pink Gradient Accents: Consistent color scheme throughout
- Smooth Animations: Framer Motion powered transitions and micro-interactions
- Dark Mode Default: Space-themed dark interface with light mode toggle
- Interactive Components: Hover effects, button animations, and visual feedback
- Clean Typography: Readable fonts with proper hierarchy and spacing
- Tabbed Navigation: Easy switching between different study modes
- Progress Indicators: Visual feedback for all activities and completion status
- Loading States: Smooth loading animations during AI processing
- Error Handling: User-friendly error messages and recovery options
- Accessibility Features: Keyboard navigation and screen reader support
- React 18: Modern React with hooks and functional components
- TypeScript: Full type safety and better developer experience
- Vite: Fast development server and optimized builds
- Tailwind CSS: Utility-first styling with custom components
- Framer Motion: Advanced animations and transitions
- Groq Cloud API: Fast and reliable AI processing
- Llama 3: Advanced language model for content generation
- Custom Prompts: Specialized prompts for educational content
- Error Handling: Robust error handling with fallback responses
- Rate Limiting: Efficient API usage with proper request management
- Local Storage: Persistent session data across browser sessions
- React State: Efficient state management with hooks
- Session Tracking: Comprehensive progress tracking and analytics
- Data Persistence: Automatic saving of all user progress
- Code Splitting: Lazy loading of components for faster initial load
- Optimized Images: Efficient image handling and compression
- Caching Strategy: Smart caching of AI responses and user data
- Bundle Optimization: Minimized bundle size with tree shaking
- Node.js 18+ and npm
- Modern web browser with ES2020 support
- Groq Cloud API key (provided in implementation)
- Clone the repository
- Install dependencies:
npm install - Start development server:
npm run dev - Access the application at
http://localhost:5173
The application comes pre-configured with the Groq API key. No additional setup required for immediate use.
- Visit the application in your browser
- Upload study material or enter a topic
- Navigate through different study modes using the header tabs
- Track your progress across all activities
src/
βββ components/ # React components
β βββ Header.tsx # Navigation and theme toggle
β βββ StarBackground.tsx # Animated space background
β βββ StudyMaterialUpload.tsx # File upload interface
β βββ Summary.tsx # AI summary display
β βββ Flashcards.tsx # Interactive flashcard system
β βββ Quiz.tsx # Quiz generation and testing
β βββ StudyPlan.tsx # Personalized study planning
β βββ ChatCoach.tsx # AI chat interface
βββ types/ # TypeScript type definitions
β βββ index.ts # Core data structures
βββ utils/ # Utility functions
β βββ api.ts # AI API integration
βββ App.tsx # Main application component
βββ main.tsx # Application entry point
βββ index.css # Global styles and animations
The application accepts multiple input formats:
- PDF Files: Automatically extracts text content
- Plain Text: Direct text input with rich formatting
- Topic Input: AI generates comprehensive study guides
Each AI feature uses specialized prompts:
- Summaries: Structured, student-friendly content breakdown
- Flashcards: Varied difficulty questions with clear answers
- Quizzes: Multiple choice questions with plausible distractors
- Study Plans: Time-optimized learning schedules
- Chat Responses: Contextual, educational interactions
Comprehensive analytics across all features:
- Flashcard Mastery: Tracks which cards are mastered
- Quiz Scores: Historical performance data
- Study Plan Completion: Daily progress monitoring
- Chat History: Maintains conversation context
All user data is automatically saved:
- Session Storage: Study materials and generated content
- Progress Data: Completion status and scores
- Chat History: Complete conversation logs
- Preferences: Theme settings and user configurations
- Particle System: 150+ animated stars with twinkling effects
- Floating Elements: Subtle particle movements for depth
- Gradient Transitions: Smooth color changes based on theme
- Responsive Animation: Adapts to screen size and performance
- Page Transitions: Smooth fade and slide effects
- Card Flips: 3D CSS transforms for flashcard interactions
- Progress Bars: Animated filling effects
- Loading States: Spinning indicators and skeleton screens
- Hover Effects: Subtle scale and color changes
- Button Feedback: Visual response to user actions
- Form Validation: Real-time feedback and error states
- Navigation Highlights: Active state indicators
- Local Storage: All data stays in user's browser
- No Server Storage: No personal data stored on external servers
- API Security: Secure API key management
- Privacy First: No tracking or analytics collection
- Content Filtering: Appropriate educational content only
- Error Boundaries: Graceful handling of AI failures
- Rate Limiting: Prevents API abuse
- Fallback Responses: Backup content when AI fails
- Spaced Repetition: Scientifically-backed memory techniques
- Active Recall: Question-based learning reinforcement
- Varied Practice: Multiple learning modalities
- Progress Feedback: Immediate performance indicators
- Adaptive Difficulty: AI adjusts based on performance
- Custom Study Plans: Tailored to individual schedules
- Weakness Detection: Identifies areas needing focus
- Encouraging Feedback: Positive reinforcement system
- Voice Input: Whisper API integration for audio notes
- Collaboration: Study groups and shared sessions
- Advanced Analytics: Detailed learning insights
- Mobile App: Native mobile applications
- Offline Mode: Service worker for offline functionality
- Performance Optimization: Further speed improvements
- Advanced AI: More sophisticated content generation
- Integration Options: LMS and educational platform connections
- Initial Load: < 2 seconds on average connection
- AI Processing: 2-5 seconds per request
- File Upload: Near-instantaneous processing
- Navigation: < 100ms between sections
- Responsive Design: Works on all devices 320px+
- Accessibility: WCAG 2.1 AA compliance
- Browser Support: Modern browsers (Chrome, Firefox, Safari, Edge)
- Performance: Smooth 60fps animations
- Fork the repository
- Create feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open Pull Request
- TypeScript: Strict typing required
- ESLint: Follow project linting rules
- Component Structure: Functional components with hooks
- Testing: Unit tests for core functionality
This project is licensed under the MIT License - see the LICENSE file for details.
- Groq Cloud: For providing fast and reliable AI processing
- Framer Motion: For beautiful animation capabilities
- Tailwind CSS: For efficient and maintainable styling
- React Community: For excellent development tools and resources
TutorBot - Democratizing access to personalized education through AI technology. Built with for students everywhere who deserve quality educational support.