Transform lectures into study superpowers. Upload or record a lecture and get AI-generated notes, flashcards, quizzes, and an interactive Q&A chatbot β in under a minute.
- Upload a lecture recording (audio or video)
- Transcribe β OpenAI Whisper converts speech to text with high accuracy
- Generate Study Materials β GPT-4o creates:
- π Structured Notes β organized with headers, key terms, and takeaways
- π Flashcards β Anki-style cards for active recall practice
- β Practice Quiz β multiple choice with explanations
- Chat β ask questions about the lecture content and get AI-powered answers
Students spend hours rewatching lectures, taking incomplete notes, and creating study materials manually. Passive listening leads to poor retention. Active learning techniques (flashcards, self-testing) are proven to be far more effective, but creating these materials is time-consuming.
Lecto bridges the gap between passive lecture consumption and active studying. One upload gives you everything you need to master the material β notes to review, flashcards to drill, quizzes to test yourself, and a chatbot to clarify concepts.
| Layer | Technology |
|---|---|
| Frontend | Next.js 15 (App Router), Tailwind CSS v4, Motion (Framer Motion) |
| Backend | Next.js API Routes |
| Transcription | OpenAI Whisper API |
| AI Generation | OpenAI GPT-4o |
| UI Components | Custom components with Lucide icons |
# Clone the repo
git clone https://github.com/bennetttv/lecto.git
cd lecto
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env.local
# Add your OPENAI_API_KEY to .env.local
# Run the dev server
npm run devOpen http://localhost:3000 to start using Lecto.
src/
βββ app/
β βββ api/
β β βββ transcribe/ # Audio upload + Whisper + GPT-4o pipeline
β β βββ chat/ # Q&A chat endpoint
β β βββ session/[id]/ # Session retrieval
β β βββ sessions/ # Session listing
β βββ layout.tsx # App layout with fonts + metadata
β βββ page.tsx # Main app (landing, upload, processing, results)
β βββ globals.css # Design tokens, dark theme, markdown styles
βββ components/
β βββ lecture/
β β βββ upload-zone.tsx # Drag & drop file upload
β β βββ processing-screen.tsx # Animated processing stages
β β βββ results-dashboard.tsx # Tab-based results view
β β βββ notes-view.tsx # Rendered study notes
β β βββ flashcards-view.tsx # Interactive flashcard review
β β βββ quiz-view.tsx # Multiple choice quiz
β β βββ chat-view.tsx # Lecture Q&A chat
β βββ ui/
β βββ button.tsx # Animated button component
β βββ card.tsx # Glass-effect card component
βββ lib/
βββ openai.ts # OpenAI client
βββ prompts.ts # AI prompt templates
βββ store.ts # In-memory session store
βββ types.ts # TypeScript types
βββ utils.ts # Utility functions
- Dark mode β easy on the eyes for late-night study sessions
- Purple accent β distinctive and academic
- Animated transitions β smooth, orchestrated entrances with Motion
- Glass effects β backdrop blur, translucent surfaces, layered depth
- Responsive β works on desktop and mobile
HackNation: 5th Global AI Hackathon β April 2026
- $28,500 prize pool
- Theme: Build with AI
MIT