Skip to content

wahabzh/StudySync

Repository files navigation

StudySync 🧠✨

A Notion-style collaborative learning platform powered by AI
Real-time document editing β€’ AI-generated quizzes β€’ Smart flashcards β€’ Community knowledge sharing πŸ”— Live: studysync.site

Next.js TypeScript Supabase Vercel

StudySync

πŸš€ What Makes This Special

🀝 Real-time Collaboration - Like Google Docs, but for studying. Multiple users can edit simultaneously with live cursors and instant sync.

🧠 AI-Powered Learning - Upload documents, get instant quizzes. AI extracts key concepts and generates personalized study materials.

πŸ“š Smart Knowledge Base - Community-driven document sharing with semantic search powered by vector embeddings.

⚑ Blazing Fast - Built on Next.js 15 with serverless architecture. Sub-100ms response times.

πŸ› οΈ Tech Stack

  • Frontend: Next.js 15, TypeScript, Tailwind CSS, Tiptap Editor
  • Backend: Supabase (PostgreSQL), Vercel AI SDK
  • Real-time: Yjs for CRDT-based collaboration
  • AI: Google Gemini API, RAG pipeline, OCR processing
  • Authentication: Supabase Auth with social logins

πŸ“Έ Screenshots

StudySync Rich text editor with real-time collaboration and slash commands

StudySync AI-powered quiz generation from any document or notes

StudySync Community leaderboard showing top contributors and study streaks

⚑ Quick Start

1. Clone & Install

git clone https://github.com/wahabzh/StudySync.git
cd StudySync && pnpm install

2. Environment Setup

cp .env.example .env.local

Then grab your free API keys:

  • πŸ—„οΈ Supabase β†’ Database & Auth
  • πŸ€– Google AI β†’ Gemini API
  • ✍️ Tiptap β†’ Collaboration
  • πŸ“§ Resend β†’ Email service

3. Launch

pnpm dev

β†’ Open localhost:3000 and start building! πŸš€

🎯 Key Features

  • πŸ“ Rich Text Editor - Notion-like editing experience with slash commands
  • πŸ‘₯ Live Collaboration - See others type in real-time
  • πŸ€– AI Study Assistant - Generate quizzes from any document
  • 🧠 Smart Flashcards - Spaced repetition algorithm built-in
  • πŸ… Pomodoro Timer - Focus sessions with study tracking
  • πŸ“Š Progress Analytics - Track your learning journey
  • 🌐 Community Hub - Share and discover study materials

πŸ” Architecture

β”Œβ”€ Next.js App Router ─────────────────────┐
β”‚  β”œβ”€ Server Components (SSR)              β”‚
β”‚  β”œβ”€ API Routes (Edge Runtime)            β”‚
β”‚  └─ Real-time WebSocket handling         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€ Supabase Backend ───────────────────────┐
β”‚  β”œβ”€ PostgreSQL + Row Level Security      β”‚
β”‚  └─ File storage + CDN                   β”‚              
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€ AI Pipeline ────────────────────────────┐
β”‚  β”œβ”€ OCR β†’ Text Extraction                β”‚
β”‚  β”œβ”€ Gemini API β†’ Quiz Generation         β”‚
β”‚  └─ Vector Embeddings β†’ Semantic Search  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

About

🧠✨ AI-powered collaborative learning platform with real-time document editing, instant quiz generation, and smart flashcards. Built with Next.js 15, Supabase, and Gemini AI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages