A comprehensive, AI-powered learning platform that creates personalized study plans and provides interactive lessons with real-time AI assistance. Built with Next.js, TypeScript, and multiple AI provider integrations.
- DeepSeek: Fast and efficient AI with strong reasoning capabilities
- OpenAI: Industry-leading GPT models (GPT-4o, GPT-3.5-turbo)
- Anthropic Claude: Thoughtful and nuanced AI assistant
- Google Gemini: Multimodal AI for comprehensive understanding
- Groq: Ultra-fast inference for quick learning sessions
- Topic Selection: Choose from popular topics or enter custom subjects
- Learning Preferences: Customize daily time commitment, teaching style, and difficulty level
- AI-Generated Study Plans: Comprehensive curricula tailored to your preferences
- Progress Tracking: Visual progress indicators and completion statistics
- Dynamic Lesson Content: AI-generated lessons based on your study plan
- Real-time Chat Assistant: Ask questions and get instant AI help during lessons
- Auto-Timer: Automatic lesson timing based on estimated duration
- Quiz System: AI-generated quizzes to test understanding
- Markdown Support: Beautiful formatting for lesson content and chat messages
- Home Dashboard: Overview of learning progress and quick actions
- Chapter Management: Detailed view of all chapters and lessons
- Progress Statistics: Completion rates, time tracking, and achievements
- Continue Learning: Easy access to resume where you left off
- Node.js 18+
- An API key from at least one supported AI provider
-
Clone or download the project
git clone https://github.com/MEClouds/ai-learning cd ai-learning-platform -
Install dependencies
npm install
-
Start the development server
npm run dev
-
Open your browser Navigate to
http://localhost:3000
- Choose your AI provider from the configuration page
- Enter your API key for the selected provider
- Test the connection to ensure everything works
- Start learning!
- Visit DeepSeek Platform
- Create an account and generate an API key
- API keys start with
sk-
- Visit OpenAI Platform
- Create an account and generate an API key
- API keys start with
sk-
- Visit Anthropic Console
- Create an account and generate an API key
- API keys start with
sk-ant-
- Visit Google AI Studio
- Create an API key
- API keys start with
AIza
- Visit Groq Console
- Create an account and generate an API key
- API keys start with
gsk_
- Configure your preferred AI provider
- Test the connection to ensure it works
- Select a topic from popular options or enter a custom topic
- Set your learning preferences (time commitment, style, level)
- Let AI generate a personalized study plan
- Use the dashboard to track your progress
- Continue lessons from where you left off
- Ask the AI assistant questions during lessons
- Take quizzes to test your understanding
- Monitor completion rates on the dashboard
- View detailed chapter and lesson progress
- See time estimates and achievements
- Framework: Next.js 14 with App Router
- Language: TypeScript
- Styling: Tailwind CSS v4
- UI Components: shadcn/ui
- AI Integration: Multiple providers with unified API
- Markdown: ReactMarkdown with GitHub Flavored Markdown
- State Management: React hooks and context
βββ app/ # Next.js app directory
β βββ layout.tsx # Root layout
β βββ page.tsx # Main application flow
β βββ globals.css # Global styles
βββ components/ # React components
β βββ ui/ # shadcn/ui components
β βββ api-configuration-page.tsx
β βββ topic-selection-dashboard.tsx
β βββ learning-preferences-wizard.tsx
β βββ study-plan-generator.tsx
β βββ home-dashboard.tsx
β βββ chapter-management.tsx
β βββ interactive-lesson.tsx
β βββ lesson-quiz.tsx
βββ lib/ # Utility libraries
β βββ api-service.ts # AI provider integrations
β βββ utils.ts # Helper functions
βββ hooks/ # Custom React hooks
β βββ use-api-credentials.ts
βββ types/ # TypeScript type definitions
β βββ index.ts
βββ contexts/ # React contexts
βββ learning-context.tsx
The platform supports multiple AI providers through a unified interface. Each provider has specific configurations and authentication methods, but the user experience remains consistent.
AI generates comprehensive study plans based on:
- Selected topic and focus areas
- Daily time commitment preferences
- Learning level (Beginner/Intermediate/Advanced)
- Teaching style preferences (Visual/Hands-on/Theoretical/Mixed)
- Lesson Content: AI-generated, comprehensive lessons with proper markdown formatting
- Timer System: Automatic timing based on estimated lesson duration
- Chat Assistant: Real-time AI help with context awareness of current lesson
- Progress Tracking: Scroll-based progress indicators and completion tracking
- AI-generated questions based on lesson content
- Multiple choice and true/false question types
- Immediate feedback with detailed explanations
- Retry functionality for improved understanding
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions:
- Check the troubleshooting section below
- Review the API provider documentation
- Create an issue in the repository
API Connection Failed
- Verify your API key is correct and has sufficient credits
- Check if the API key format matches the provider requirements
- Ensure you have internet connectivity
Lesson Content Not Loading
- Check your API provider's rate limits
- Verify the API key has the necessary permissions
- Try switching to a different AI provider
Chat Not Working
- Ensure the AI provider supports chat completions
- Check if you've exceeded API rate limits
- Verify the API key is still valid
- Use Groq for fastest response times
- DeepSeek offers good balance of speed and quality
- OpenAI GPT-4o provides the highest quality responses
- Consider your API costs when choosing providers
- User authentication and profiles
- Progress persistence across sessions
- Social learning features
- Mobile app development
- Advanced analytics and insights
- Integration with external learning platforms
- Collaborative learning features
- Offline mode support