# vedikakute06/summarizer architecture

> Architecture diagram of the GitHub repository vedikakute06/summarizer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vedikakute06/summarizer
- Repository: https://github.com/vedikakute06/summarizer

## Overview

LazyWatch is a video-to-insights application. A user uploads a video in the web interface; the backend extracts audio, transcribes it, creates structured notes and a mindmap, and returns results for display. Users can also request a keyword-focused summary of the last transcription. The sampled backend uses Groq for transcription and text generation, despite the README mentioning local Whisper and Pegasus. The graph reflects sampled calls and documented product behavior; storage is local files, and no persistent database is shown.

Main entry points: [`backend/app/main.py`](https://github.com/vedikakute06/summarizer/blob/main/backend/app/main.py) (Video and search routes), [`frontend/src/components/Home.js`](https://github.com/vedikakute06/summarizer/blob/main/frontend/src/components/Home.js) (Upload and results), [`frontend/src/services/apiService.js`](https://github.com/vedikakute06/summarizer/blob/main/frontend/src/services/apiService.js) (API client), [`frontend/src/App.js`](https://github.com/vedikakute06/summarizer/blob/main/frontend/src/App.js) (App flow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_app["App flow<br/>[App.js]"]
  node_splash["Splash screen<br/>[SplashScreen.js]"]
  node_intro["Intro screen<br/>[IntroScreen.js]"]
  node_home["Upload and results<br/>[Home.js]"]
  node_api_client["API client<br/>[apiService.js]"]
  node_mindmap_view["Mindmap renderer<br/>[Mermaid.js]"]
end

subgraph group_api["Backend API"]
  node_api_routes["Video and search routes<br/>[main.py]"]
  node_local_files[("Local artifacts<br/>[main.py]")]
end

subgraph group_media["Media processing"]
  node_audio_extract["Audio extraction<br/>[utils.py]"]
  node_transcription["Audio transcription<br/>[utils.py]"]
end

subgraph group_insights["AI insights"]
  node_text_processor["Text processor<br/>[processor.py]"]
  node_keyword_summary["Keyword summary"]
end

node_user(("Video user"))
node_ffmpeg["FFmpeg"]
node_groq["Groq API"]

node_user -->|"uploads video"| node_home
node_app -->|"renders"| node_splash
node_app -->|"renders"| node_intro
node_app -->|"renders"| node_home
node_home -->|"requests summaries"| node_api_client
node_home -->|"searches keywords"| node_api_client
node_api_client -->|"posts video"| node_api_routes
node_api_client -->|"requests keyword summary"| node_api_routes
node_home -->|"renders mindmap"| node_mindmap_view
node_api_routes -->|"extracts audio"| node_audio_extract
node_api_routes -->|"transcribes audio"| node_transcription
node_audio_extract -->|"extracts audio with"| node_ffmpeg
node_transcription -->|"requests transcription"| node_groq
node_api_routes -->|"processes transcript"| node_text_processor
node_text_processor -->|"generates notes and map"| node_groq
node_api_routes -->|"saves and reads artifacts"| node_local_files
node_api_routes -->|"summarizes keyword query"| node_keyword_summary
node_api_routes -->|"reads last transcript"| node_local_files
node_keyword_summary -->|"generates focused summary"| node_groq

click node_app "https://github.com/vedikakute06/summarizer/blob/main/frontend/src/App.js"
click node_splash "https://github.com/vedikakute06/summarizer/blob/main/frontend/src/components/SplashScreen.js"
click node_intro "https://github.com/vedikakute06/summarizer/blob/main/frontend/src/components/IntroScreen.js"
click node_home "https://github.com/vedikakute06/summarizer/blob/main/frontend/src/components/Home.js"
click node_api_client "https://github.com/vedikakute06/summarizer/blob/main/frontend/src/services/apiService.js"
click node_mindmap_view "https://github.com/vedikakute06/summarizer/blob/main/frontend/src/components/Mermaid.js"
click node_api_routes "https://github.com/vedikakute06/summarizer/blob/main/backend/app/main.py"
click node_local_files "https://github.com/vedikakute06/summarizer/blob/main/backend/app/main.py"
click node_audio_extract "https://github.com/vedikakute06/summarizer/blob/main/backend/app/utils.py"
click node_transcription "https://github.com/vedikakute06/summarizer/blob/main/backend/app/utils.py"
click node_text_processor "https://github.com/vedikakute06/summarizer/blob/main/backend/app/processor.py"
click node_keyword_summary "https://github.com/vedikakute06/summarizer/blob/main/backend/app/summarizer_logic.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_splash,node_intro,node_home,node_api_client,node_mindmap_view,node_user toneBlue
class node_api_routes,node_local_files toneAmber
class node_audio_extract,node_transcription,node_groq toneMint
class node_text_processor,node_keyword_summary toneRose
class node_ffmpeg toneIndigo
```

## Components

### Web experience

- [App flow](https://github.com/vedikakute06/summarizer/blob/main/frontend/src/App.js): `frontend/src/App.js`
- [Splash screen](https://github.com/vedikakute06/summarizer/blob/main/frontend/src/components/SplashScreen.js): `frontend/src/components/SplashScreen.js`
- [Intro screen](https://github.com/vedikakute06/summarizer/blob/main/frontend/src/components/IntroScreen.js): `frontend/src/components/IntroScreen.js`
- [Upload and results](https://github.com/vedikakute06/summarizer/blob/main/frontend/src/components/Home.js): `frontend/src/components/Home.js`
- [API client](https://github.com/vedikakute06/summarizer/blob/main/frontend/src/services/apiService.js): `frontend/src/services/apiService.js`
- [Mindmap renderer](https://github.com/vedikakute06/summarizer/blob/main/frontend/src/components/Mermaid.js): `frontend/src/components/Mermaid.js`

### Backend API

- [Video and search routes](https://github.com/vedikakute06/summarizer/blob/main/backend/app/main.py): `backend/app/main.py`
- [Local artifacts](https://github.com/vedikakute06/summarizer/blob/main/backend/app/main.py): `backend/app/main.py`

### Media processing

- [Audio extraction](https://github.com/vedikakute06/summarizer/blob/main/backend/app/utils.py): `backend/app/utils.py`
- [Audio transcription](https://github.com/vedikakute06/summarizer/blob/main/backend/app/utils.py): `backend/app/utils.py`

### AI insights

- [Text processor](https://github.com/vedikakute06/summarizer/blob/main/backend/app/processor.py): `backend/app/processor.py`
- [Keyword summary](https://github.com/vedikakute06/summarizer/blob/main/backend/app/summarizer_logic.py): `backend/app/summarizer_logic.py`

### Other components

- **Video user**
- **FFmpeg**
- **Groq API**

## Connections

- Video user → Upload and results: uploads video (evidence: `frontend/src/components/Home.js`)
- App flow → Splash screen: renders (evidence: `frontend/src/App.js`)
- App flow → Intro screen: renders (evidence: `frontend/src/App.js`)
- App flow → Upload and results: renders (evidence: `frontend/src/App.js`)
- Upload and results → API client: requests summaries (evidence: `frontend/src/components/Home.js`)
- Upload and results → API client: searches keywords (evidence: `frontend/src/components/Home.js`)
- API client → Video and search routes: posts video (evidence: `frontend/src/services/apiService.js`)
- API client → Video and search routes: requests keyword summary (evidence: `frontend/src/services/apiService.js`)
- Upload and results → Mindmap renderer: renders mindmap (evidence: `frontend/src/components/Home.js`)
- Video and search routes → Audio extraction: extracts audio (evidence: `backend/app/main.py`)
- Video and search routes → Audio transcription: transcribes audio (evidence: `backend/app/main.py`)
- Audio extraction → FFmpeg: extracts audio with (evidence: `backend/app/utils.py`)
- Audio transcription → Groq API: requests transcription (evidence: `backend/app/utils.py`)
- Video and search routes → Text processor: processes transcript (evidence: `backend/app/main.py`)
- Text processor → Groq API: generates notes and map (evidence: `backend/app/processor.py`)
- Video and search routes → Local artifacts: saves and reads artifacts (evidence: `backend/app/main.py`)
- Video and search routes → Keyword summary: summarizes keyword query (evidence: `backend/app/main.py`)
- Video and search routes → Local artifacts: reads last transcript (evidence: `backend/app/main.py`)
- Keyword summary → Groq API: generates focused summary (evidence: `backend/app/summarizer_logic.py`)
