Transform Your Learning Experience with AI-Powered Study Tools โ Master Knowledge, One Concept at a Time
- Overview
- Features
- Tech Stack
- Getting Started
- Backend Server Setup
- Project Structure
- Pages & Previews
- Deployment
- API Integration
- Contributing
- License
- Credits
StudySync AI is an AI-powered learning platform designed to revolutionize how students learn, practice, and master complex concepts. By leveraging cutting-edge AI technology, the platform provides personalized learning experiences that adapt to each user's unique learning style and pace.
- ๐ค AI-Powered Learning: Gemini AI integration for intelligent content analysis and generation
- ๐ Interactive Tools: Flashcards, quizzes, and interactive learning modules
- ๐ฅ Video Learning: Smart video player with transcript integration
- ๐บ๏ธ Roadmap Generator: Personalized learning paths based on your goals
- ๐ฑ Real-time Sync: Supabase-powered real-time data synchronization
- ๐จ Modern UI: Beautiful, responsive interface with smooth animations
- ๐ฅ Social Learning: Collaborative features for group learning experiences
๐ Mission: Make high-quality, personalized education accessible to everyone through intelligent AI assistance
๐ Vision: Create the world's most effective AI-powered learning ecosystem that adapts to every learner's unique needs
| Feature | Description |
|---|---|
| ๐ง AI Content Analysis | Automatically analyze documents, videos, and content to generate study materials |
| ๐ฏ Interactive Flashcards | Create, review, and practice with AI-generated flashcards |
| ๐งฉ Adaptive Quizzes | Personalized quizzes that adapt to your learning progress |
| ๐น Video Learning | Integrated video player with transcript and AI-powered summarization |
| ๐บ๏ธ Learning Roadmaps | Generate personalized study paths based on your goals |
| ๐ฌ AI Chat Assistant | Get instant answers to your questions with our AI tutor |
| ๐ Progress Tracking | Monitor your learning progress with detailed analytics |
| ๐ Dark Mode First | Beautiful dark theme by default with light mode toggle |
| ๐ฑ Fully Responsive | Seamless experience across desktop, tablet, and mobile devices |
| ๐ Secure Authentication | Supabase-powered user authentication and data security |
| Feature | Description |
|---|---|
| ๐ Document Upload | Upload PDFs, Word docs, and other formats for AI processing |
| ๐ง Transcript Integration | Automatic transcript generation and analysis for video content |
| ๐ Learning Gamification | Points, badges, and leaderboards to keep you motivated |
| ๐ Study Scheduling | Intelligent study schedule recommendations |
| ๐ค Collaborative Learning | Share flashcards and quizzes with peers |
| ๐ Performance Analytics | Detailed insights into your learning patterns and progress |
- Framework: React 18 with Vite
- Language: TypeScript 5.0+
- UI Library: React + Custom Components
- Styling: TailwindCSS + CSS Modules
- Animations: Custom CSS animations and transitions
- Icons: Lucide React + Custom SVG icons
- Forms: React Hook Form + Zod validation
- Theme: Custom dark/light mode implementation
- Database: Supabase (PostgreSQL + Authentication)
- Real-time: Supabase real-time updates
- Storage: Supabase Storage (for document uploads)
- Authentication: Supabase Auth
- AI Integration: Google Gemini API
- Build Tool: Vite
- Package Manager: npm
- Linting: ESLint + Prettier
- Deployment: Vercel / Netlify
- Version Control: Git & GitHub
{
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"@supabase/supabase-js": "^2.38.4",
"@google/generative-ai": "^0.1.3",
"tailwindcss": "^3.3.3",
"lucide-react": "^0.294.0"
}Your personalized learning hub with progress tracking, recent activity, and quick access to tools.

Integrated video player with transcript and AI-powered analysis.

Personalized learning paths based on your goals and current knowledge.

Interactive chat with AI tutor for instant help and explanations.

Before you begin, ensure you have the following installed:
- Node.js 18.x or higher (Download)
- npm or yarn package manager
- Git (Download)
- Supabase Account (Sign Up)
- Google Gemini API Key (Get API Key)
-
Clone the repository
git clone https://github.com/abhayclasher/StudySync-AI.git cd StudySync-AI -
Install dependencies
npm install
-
Set up Supabase
- Create a new Supabase project at Supabase Console
- Enable authentication and create required tables
- Copy your Supabase URL and Anon Key
- Create a
.env.localfile in the root directory:
VITE_SUPABASE_URL=your_supabase_url VITE_SUPABASE_ANON_KEY=your_supabase_anon_key VITE_GEMINI_API_KEY=your_gemini_api_key YOUTUBE_API_KEY=your_youtube_api_key # Optional but recommended for enhanced functionality
Important Security Note:
- Never commit actual API keys to version control
- Always use
.env.localfor local development - For production deployment, add these variables in your hosting platform's environment settings (Vercel, Netlify, etc.)
Important Supabase Configuration:
- After creating your Supabase project, go to Authentication โ Settings
- Add these URLs to "Redirect URLs":
- For local development:
http://localhost:3000 - For deployed app: your deployed URL (e.g.,
https://your-app-name.vercel.app)
- For local development:
- Enable the authentication providers you want to use (Google, GitHub, etc.)
For Production Deployment (Vercel): Add these environment variables in your Vercel project settings:
VITE_SUPABASE_URLVITE_SUPABASE_ANON_KEYVITE_GEMINI_API_KEY
-
Run the development server
npm run dev
-
Open your browser Navigate to http://localhost:5173
npm run build
npm run previewStudySync AI now uses Vercel serverless functions instead of a traditional backend server. This provides better scalability and easier deployment.
The serverless functions are located in the api/ directory and handle:
- YouTube transcript extraction
- Video and playlist processing
- All API endpoints previously handled by the separate backend
| Endpoint | Method | Description | Request Body |
|---|---|---|---|
/api/transcript |
POST | Fetch YouTube video transcript | { "url": "youtube_video_url" } |
/api/video |
POST | Process YouTube videos/playlist | { "url": "youtube_video_url" } |
/api/playlist |
POST | Fetch YouTube playlist videos | { "url": "youtube_playlist_url" } |
For Vercel deployment, ensure these environment variables are set in your Vercel project settings:
YOUTUBE_API_KEY: YouTube API key for enhanced functionality (optional, as functions have fallback methods)
StudySync-AI/
โ
โโโ api/ # API endpoints and transcript handling
โ โโโ playlist.js # YouTube playlist processing
โ โโโ transcript.js # Transcript generation and processing
โ
โโโ components/ # React components
โ โโโ ui/ # Reusable UI components
โ โ โโโ 3d-card.tsx
โ โ โโโ apple-cards-carousel.tsx
โ โ โโโ bento-grid.tsx
โ โ โโโ colourfull-text.tsx
โ โ โโโ container-scroll-animation.tsx
โ โ โโโ evervault-card.tsx
โ โ โโโ particles.tsx
โ โ โโโ sidebar.tsx
โ โ โโโ sticky-scroll-reveal.tsx
โ โ โโโ tabs.tsx
โ โ โโโ text-generate-effect.tsx
โ โ โโโ wobble-card.tsx
โ โโโ AuthModal.tsx # Authentication modal
โ โโโ ChatInterface.tsx # AI chat interface
โ โโโ Dashboard.tsx # Main dashboard
โ โโโ DocumentUpload.tsx # Document upload component
โ โโโ FlashcardDeck.tsx # Flashcard system
โ โโโ LandingPage.tsx # Landing page
โ โโโ QuizArena.tsx # Quiz system
โ โโโ RightSidebar.tsx # Right sidebar
โ โโโ RoadmapGenerator.tsx # Learning roadmap generator
โ โโโ Sidebar.tsx # Main sidebar
โ โโโ VideoPlayer.tsx # Video player with transcript
โ
โโโ hooks/ # Custom React hooks
โ โโโ use-outside-click.tsx
โ
โโโ lib/ # Utility functions & configs
โ โโโ supabase.ts # Supabase client initialization
โ โโโ utils.ts # Helper functions
โ
โโโ server/ # Server-side code
โ โโโ index.js # Server entry point
โ โโโ package.json
โ โโโ package-lock.json
โ
โโโ services/ # Business logic services
โ โโโ db.ts # Database service
โ โโโ geminiService.ts # Gemini AI service
โ
โโโ public/ # Static assets
โ โโโ *.svg # Icons and images
โ
โโโ .env.example # Environment variables template
โโโ .gitignore # Git ignore configuration
โโโ App.tsx # Main application component
โโโ index.html # HTML entry point
โโโ index.tsx # React entry point
โโโ package.json # Project dependencies
โโโ setup-database.js # Database setup script
โโโ supabase_init.sql # Database initialization SQL
โโโ tsconfig.json # TypeScript configuration
โโโ vite.config.ts # Vite configuration
โโโ README.md # Project documentationStudySync AI leverages Google's Gemini API for intelligent content analysis and generation:
- Document Analysis: Automatically analyze uploaded documents to extract key concepts
- Quiz Generation: Create personalized quizzes based on learning materials
- Explanation Generation: Provide detailed explanations for complex topics
- Content Summarization: Generate concise summaries of lengthy content
- Authentication: Secure user authentication and authorization
- Database: Real-time data synchronization and storage
- Storage: Document and media file storage
- Real-time: Live updates for collaborative features
- Video Processing: Analyze YouTube videos for educational content
- Transcript Extraction: Automatically extract and process video transcripts
- Playlist Management: Handle entire YouTube playlists for comprehensive learning
The application is deployed on Vercel for optimal performance and reliability.
๐ Visit: studysync-ai.vercel.app
- Click the button above
- Connect your GitHub account
- Add environment variables (Supabase, Gemini API, and YouTube API config)
- Set Build Command:
npm run build(Vercel will auto-detect this but you can verify) - Set Output Directory:
dist(Vercel will auto-detect this but you can verify) - Add Node.js version: 18.x or higher
- Deploy!
Required Environment Variables for Vercel:
VITE_SUPABASE_URL: Your Supabase project URLVITE_SUPABASE_ANON_KEY: Your Supabase anon keyVITE_GEMINI_API_KEY: Your Google Gemini API keyYOUTUBE_API_KEY: Your YouTube Data API key (optional, but recommended for full functionality)
Important: After deployment, make sure to configure Supabase authentication:
- Go to your Supabase dashboard
- Navigate to Authentication โ Settings (or URL Configuration in older versions)
- Add your deployed URL (e.g.,
https://your-app-name.vercel.app) to the "Redirect URLs" field - For local development, make sure to include
http://localhost:5173in the "Redirect URLs" field - For social logins (Google, GitHub), these redirect URLs must match exactly what you're using in your application
Install Dependencies:
npm installBuild for Production:
npm run buildDeploy with Vercel CLI:
# Install Vercel CLI globally
npm install -g vercel
# Deploy to production
vercel --prodPreview locally:
npm run preview- Netlify: Use the included build configuration (Build command:
npm run build, Publish directory:dist) - Docker: Build a container with your preferred setup
- Self-hosted: Deploy on any Node.js server with the required dependencies
We welcome contributions from the community! Here's how you can help:
- ๐ Report Bugs: Open an issue describing the problem
- ๐ก Suggest Features: Share your ideas for improvements
- ๐ง Submit Pull Requests: Fix bugs or add new features
- ๐ Improve Documentation: Help make the docs better
- ๐ Spread the Word: Share StudySync AI with others
- 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
- Follow the existing code style
- Write meaningful commit messages
- Add comments for complex logic
- Test your changes thoroughly
- Update documentation as needed
This project is licensed under the MIT License.
โ
Permitted: Personal use, modifications, commercial use
โ
Required: Include copyright notice and license in all copies
See the LICENSE file for complete terms.
- Supabase for providing robust real-time database infrastructure
- Vercel for seamless deployment and hosting
- Google Gemini for powerful AI capabilities
- React Team for the incredible component framework
- Open Source Community for inspiration and support
- YouTube API for video content integration
1. Login not working after deployment:
- Make sure you've properly set the environment variables in your deployment platform
- Check that your Supabase project has the correct redirect URLs configured in Authentication settings
- Verify that the deployed URL is added to both "Redirect URLs" and "Additional URLs" in Supabase
2. Supabase client not initialized:
- Ensure
VITE_SUPABASE_URLandVITE_SUPABASE_ANON_KEYare correctly set - Check that the environment variables are properly prefixed with
VITE_for Vite to expose them
3. Social login not working:
- For Google/GitHub OAuth, make sure to configure the providers in your Supabase Authentication settings
- Add the correct redirect URLs for your deployed application
- Example redirect URLs:
https://your-app-name.vercel.app,http://localhost:5173
4. After successful login, page doesn't update:
- This might be due to a missing auth state listener
- Make sure the Supabase client is properly initialized with correct credentials
- Check browser console for any error messages
5. Social login redirects to wrong URL (e.g., localhost:3000 instead of localhost:5173):
- This is caused by incorrect redirect URL configuration in your Supabase authentication settings
- Go to your Supabase dashboard โ Authentication โ Settings
- Update the "Redirect URLs" to match your application's URL (e.g.,
http://localhost:5173for local development, your deployed URL for production) - Make sure to include all possible URLs where your app runs
Need help or have questions?
- ๐ง Email: abhaypro.cloud@gmail.com
- ๐ Issues: GitHub Issues
- ๐ฌ Discussions: GitHub Discussions
๐ง Full Stack Web Developer | 21 | Kolkata, India ๐ฎ๐ณ
Building technology that transforms learning through AI and innovation
- ๐ป Passionate about creating impactful solutions with modern web technologies
- ๐ฏ Focused on education technology and AI-powered learning
- ๐ Self-taught developer with expertise in React, TypeScript, and AI integration
- โ๏ธ Hobbies: Chess, Cricket, and Open Source Contribution
"Every concept mastered, every milestone achieved."
This project was born from a simple belief: technology should enhance learning.
In today's world, everyone deserves access to personalized, effective learning tools.
StudySync AI eliminates barriers between complex concepts and understanding.
No limits. No boundaries. Just learning unleashed.
โญ If this project helped you or someone you know, please star it! โญ
Your support motivates continued development and helps others discover this resource.
โค๏ธ Made with passion in India ๐ฎ๐ณ
Dedicated to everyone working to make education accessible and effective
