Skip to content

AI-powered learning platform with personalized voice tutors for mathematics, science, coding, history, economics and languages. Features real-time voice interactions, progress tracking, and transcript downloads for enhanced learning experiences.

Notifications You must be signed in to change notification settings

Sebastian-Rothe/learn-with-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

60 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ“ Learn with AI - Tutorly

AI-Powered Learning Companion Platform - Transform your learning experience with personalized AI tutors for various subjects.

Next.js TypeScript Tailwind CSS License

🌟 Features

πŸ€– AI-Powered Learning

  • Voice Interactions: Real-time conversations with AI tutors using VAPI
  • Multiple Subjects: Mathematics, Economics, Coding, Science, History, Language
  • Personalized Learning: Adaptive AI responses based on your learning style
  • Session History: Track your learning progress over time

πŸ“š Learning Management

  • Custom Companions: Create personalized AI tutors for specific topics
  • Session Tracking: Monitor learning time and progress
  • Transcript Downloads: Export learning sessions as professional PDFs
  • Bookmarking: Save favorite learning companions

🎯 User Experience

  • Responsive Design: Optimized for desktop, tablet, and mobile
  • Real-time Feedback: Live transcription during voice sessions
  • Progress Analytics: Detailed learning journey tracking
  • Plan-based Features: Tiered access to premium functionalities

πŸš€ Tech Stack

Frontend

  • Next.js 15.3.4 - React framework with App Router
  • TypeScript - Type-safe development
  • Tailwind CSS - Utility-first styling
  • React Hooks - Modern state management
  • Lottie React - Animated interactions

Backend & Services

  • Supabase - Database and authentication backend
  • Clerk - User authentication and management
  • VAPI - AI-powered voice interactions
  • Sentry - Error monitoring and performance tracking

Development Tools

  • ESLint - Code linting
  • PostCSS - CSS processing
  • Zod - Schema validation
  • React Hook Form - Form management

πŸ› οΈ Installation

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Git

1. Clone the Repository

git clone https://github.com/Sebastian-Rothe/learn-with-ai.git
cd learn-with-ai

2. Install Dependencies

npm install

3. Environment Setup

Create a .env.local file in the root directory:

# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key

# Clerk Custom Routes
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_FALLBACK_REDIRECT_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_FALLBACK_REDIRECT_URL=/

# Supabase Database
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key

# VAPI Voice AI
NEXT_PUBLIC_VAPI_WEB_TOKEN=your_vapi_token

# Sentry (Optional)
SENTRY_AUTH_TOKEN=your_sentry_token

4. Run Development Server

npm run dev

Open http://localhost:3000 to view the application.

πŸ“ Project Structure

learn-with-ai/
β”œβ”€β”€ app/                    # Next.js App Router pages
β”‚   β”œβ”€β”€ companions/         # AI companion management
β”‚   β”œβ”€β”€ my-journey/         # Learning progress tracking
β”‚   β”œβ”€β”€ datenschutz/        # Privacy policy (German)
β”‚   β”œβ”€β”€ impressum/          # Legal notice (German)
β”‚   └── api/               # API routes
β”œβ”€β”€ components/             # Reusable React components
β”‚   β”œβ”€β”€ ui/                # UI component library
β”‚   └── ...                # Feature components
β”œβ”€β”€ lib/                   # Utility libraries
β”‚   β”œβ”€β”€ actions/           # Server actions
β”‚   └── utils/             # Helper functions
β”œβ”€β”€ types/                 # TypeScript type definitions
β”œβ”€β”€ constants/             # Application constants
└── public/                # Static assets

πŸ”§ Available Scripts

# Development
npm run dev          # Start development server
npm run build        # Build for production
npm run start        # Start production server
npm run lint         # Run ESLint

# Deployment
vercel deploy        # Deploy to Vercel

🌐 Deployment

Vercel (Recommended)

  1. Connect your GitHub repository to Vercel
  2. Configure environment variables in Vercel dashboard
  3. Deploy automatically on every push

Environment Variables for Production

Ensure all environment variables from .env.local are set in your deployment platform.

πŸ” Authentication & Security

  • Clerk Integration: Secure user authentication with social logins
  • Protected Routes: Middleware-based route protection
  • Data Encryption: Secure API communication
  • Privacy Compliance: GDPR-compliant data handling

πŸ“± Features by Plan

Free Plan

  • βœ… Basic AI companions
  • βœ… Limited voice sessions
  • βœ… Basic progress tracking

Core Plan

  • βœ… Extended voice sessions
  • βœ… Transcript downloads
  • βœ… Advanced progress analytics

Pro Plan

  • βœ… Unlimited voice sessions
  • βœ… Premium transcript features
  • βœ… Priority support
  • βœ… Advanced customization

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ›‘οΈ Privacy & Legal

  • Privacy Policy: /datenschutz (German)
  • Legal Notice: /impressum (German)
  • GDPR Compliant: Full data protection compliance

πŸ“ž Support

πŸ™ Acknowledgments

  • Next.js Team - Amazing React framework
  • Vercel - Deployment platform
  • Clerk - Authentication service
  • Supabase - Backend infrastructure
  • VAPI - Voice AI technology

Made with ❀️ by Sebastian Rothe

About

AI-powered learning platform with personalized voice tutors for mathematics, science, coding, history, economics and languages. Features real-time voice interactions, progress tracking, and transcript downloads for enhanced learning experiences.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published