How sohail-ali-khwazada/yousummarizer works
YouSummarizer takes a YouTube URL through a React learning app and Express API, then a Flask/LangChain service obtains video material and generates summaries and chapters. Users can explore transcripts and chapters, chat against transcript context, and save notes; accounts use password or Google sign-in. The graph separates the UI, API/auth and persistence, and AI service stages. Some UI-to-API wiring and route details are unsampled; documented capabilities are included, with uncertain links omitted.
Main entry points: LearningPage.tsx Learning view · app.py Flask API · video.controller.ts Video handlers · App.tsx App routing
Components 21
Web experience
- App routing
frontend/src/App.tsx - Video search
frontend/src/pages/SearchPage.tsx - Learning view
frontend/src/pages/LearningPage.tsx - Transcript and chapters
frontend/src/components/LearningPage/LeftPanel/TranscriptsChapters.tsx - Video chat
frontend/src/components/LearningPage/RightPanel/ChatScreen.tsx - Summary view
frontend/src/components/LearningPage/RightPanel/SummaryScreen.tsx - Notes editor
frontend/src/components/LearningPage/RightPanel/Editor/index.tsx
API and identity
- Auth routes
backend/src/routes/auth.route.ts - Auth handlers
backend/src/controllers/auth.controller.ts - Google OAuth
backend/src/config/passport.ts - Video handlers
backend/src/controllers/video.controller.ts - Express server
backend/src/index.ts
Application data
- User records
backend/src/models/user.model.ts - Video records
backend/src/models/video.model.ts - User video data
backend/src/models/uservideodata.model.ts
AI processing
- Flask API
services/app.py - Transcript retrieval
services/getVideoDetails.py - Transcript summary
services/sumTranscript.py - Chapter generation
services/getChapters.py - RAG chat and vectors
services/chat.py
Other components
- Learner
Connections 24
- Learner → App routing: uses
- App routing → Video search: routes to
frontend/src/App.tsx - App routing → Learning view: routes to
frontend/src/App.tsx - Learner → Auth routes: authenticates
- App routing → Learning view: guards access
frontend/src/App.tsx - Learning view → Transcript and chapters: presents
- Learning view → Video chat: presents
- Learning view → Summary view: presents
- Learning view → Notes editor: presents
- Express server → Auth routes: mounts
backend/src/index.ts - Express server → Video handlers: mounts
backend/src/index.ts - Auth routes → Auth handlers: dispatches
backend/src/routes/auth.route.ts - Auth routes → Google OAuth: authenticates with
backend/src/routes/auth.route.ts - Auth handlers → User records: reads and writes
backend/src/controllers/auth.controller.ts - Google OAuth → User records: reads and writes
backend/src/config/passport.ts - Video handlers → Video records: reads and writes
backend/src/controllers/video.controller.ts - Video handlers → User video data: reads and writes
backend/src/controllers/video.controller.ts - Video handlers → Flask API: requests video details
backend/src/controllers/video.controller.ts - Video handlers → Flask API: requests chat answer
backend/src/controllers/video.controller.ts - Flask API → Transcript retrieval: loads transcript
services/app.py - Flask API → Transcript summary: generates summary
services/app.py - Flask API → Chapter generation: generates chapters
services/app.py - Flask API → RAG chat and vectors: dispatches chat
services/app.py - RAG chat and vectors → Learner: answers from context