Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ“ Lecto β€” AI Lecture Companion

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.

Lecto Next.js OpenAI

πŸš€ What It Does

  1. Upload a lecture recording (audio or video)
  2. Transcribe β€” OpenAI Whisper converts speech to text with high accuracy
  3. 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
  4. Chat β€” ask questions about the lecture content and get AI-powered answers

🎯 The Problem

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.

πŸ’‘ The Solution

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.

πŸ›  Tech Stack

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

πŸƒ Getting Started

# 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 dev

Open http://localhost:3000 to start using Lecto.

πŸ“ Project Structure

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

🎨 Design

  • 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

πŸ† Built For

HackNation: 5th Global AI Hackathon β€” April 2026

  • $28,500 prize pool
  • Theme: Build with AI

πŸ“„ License

MIT

About

πŸŽ“ Lecto β€” AI Lecture Companion. Transform lectures into study materials with AI-generated notes, flashcards, quizzes, and Q&A.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages