# like-attract/video-to-note architecture

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

- Interactive diagram: https://gitdiagram.com/like-attract/video-to-note
- Repository: https://github.com/like-attract/video-to-note

## Overview

VideoToNo is a local-first video-to-notes application. Users submit a supported video URL or local media through the browser, then receive either a timestamped transcript or an LLM-generated Markdown note, with optional exports and screenshots. The documented pipeline covers platform captions with Bilibili AI-caption support, local ASR fallback, long-transcript note generation, and agent access via MCP or the Skill. The graph relies on README and indexed excerpts; unsampled integrations and export internals are represented only where documented.

Main entry points: [`backend/main.py`](https://github.com/like-attract/video-to-note/blob/main/backend/main.py) (FastAPI service), [`backend/video_processor.py`](https://github.com/like-attract/video-to-note/blob/main/backend/video_processor.py) (Media processor), [`backend/transcript.py`](https://github.com/like-attract/video-to-note/blob/main/backend/transcript.py) (Timestamped transcript), [`backend/asr_process.py`](https://github.com/like-attract/video-to-note/blob/main/backend/asr_process.py) (ASR worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User access"]
  node_browser["Web UI<br/>[script.js]"]
end

subgraph group_media["Media and transcription"]
  node_source["Video input"]
  node_processor["Media processor<br/>[video_processor.py]"]
  node_platform["Video platforms"]
  node_bili_login["Bilibili login<br/>[bili_login.py]"]
  node_douyin_login["Douyin login<br/>[douyin_login.py]"]
  node_captions["Platform captions<br/>[video_processor.py]"]
  node_asr_worker["ASR worker<br/>[asr_process.py]"]
  node_whisper["Whisper ASR<br/>[whisper_asr.py]"]
  node_paraformer["Paraformer ASR<br/>[paraformer_asr.py]"]
  node_model_download["Model downloads<br/>[download.py]"]
  node_transcript["Timestamped transcript<br/>[transcript.py]"]
end

subgraph group_notes["Notes and outputs"]
  node_summarizer["LLM note generation<br/>[llm_summarizer.py]"]
  node_llm["LLM provider"]
  node_exports["Note exports<br/>[main.py]"]
end

subgraph group_ops["Local service and configuration"]
  node_service["FastAPI service<br/>[main.py]"]
  node_launcher["Local launcher<br/>[launcher.py]"]
  node_task_store[("Task workspace<br/>[main.py]")]
  node_config[("Configuration store<br/>[config_store.py]")]
  node_secret_box["Secret protection<br/>[secret_box.py]"]
  node_updates["Update check<br/>[update_check.py]"]
end

subgraph group_agents["Agent interfaces"]
  node_mcp["MCP tools<br/>[mcp_server.py]"]
  node_skill["Agent Skill<br/>[SKILL.md]"]
end

node_user(("User"))
node_agent(("AI client"))

node_user -->|"submits media"| node_browser
node_browser -.->|"requests tasks"| node_service
node_service -->|"processes media"| node_processor
node_processor -->|"retrieves media"| node_platform
node_processor -.->|"uses credentials"| node_bili_login
node_processor -.->|"uses verification"| node_douyin_login
node_processor -->|"checks captions"| node_captions
node_processor -->|"requests transcription"| node_asr_worker
node_asr_worker -->|"runs engine"| node_whisper
node_asr_worker -.->|"runs engine"| node_paraformer
node_whisper -->|"downloads models"| node_model_download
node_paraformer -->|"downloads models"| node_model_download
node_captions -->|"parses subtitles"| node_transcript
node_asr_worker -->|"returns segments"| node_transcript
node_service -->|"writes transcript"| node_transcript
node_service -->|"generates notes"| node_summarizer
node_summarizer -->|"uses segments"| node_transcript
node_summarizer -.->|"calls model"| node_llm
node_service -->|"produces formats"| node_exports
node_service -->|"persists tasks"| node_task_store
node_service -->|"resolves settings"| node_config
node_config -->|"protects secrets"| node_secret_box
node_launcher -->|"starts server"| node_service
node_launcher -->|"checks releases"| node_updates
node_service -->|"checks releases"| node_updates
node_agent -->|"invokes tools"| node_mcp
node_mcp -->|"starts tasks"| node_service
node_mcp -.->|"returns transcript"| node_transcript
node_agent -->|"follows workflow"| node_skill
node_skill -.->|"uses local backend"| node_service

click node_browser "https://github.com/like-attract/video-to-note/blob/main/frontend/script.js"
click node_service "https://github.com/like-attract/video-to-note/blob/main/backend/main.py"
click node_launcher "https://github.com/like-attract/video-to-note/blob/main/launcher.py"
click node_processor "https://github.com/like-attract/video-to-note/blob/main/backend/video_processor.py"
click node_bili_login "https://github.com/like-attract/video-to-note/blob/main/backend/bili_login.py"
click node_douyin_login "https://github.com/like-attract/video-to-note/blob/main/backend/douyin_login.py"
click node_captions "https://github.com/like-attract/video-to-note/blob/main/backend/video_processor.py"
click node_asr_worker "https://github.com/like-attract/video-to-note/blob/main/backend/asr_process.py"
click node_whisper "https://github.com/like-attract/video-to-note/blob/main/backend/whisper_asr.py"
click node_paraformer "https://github.com/like-attract/video-to-note/blob/main/backend/paraformer_asr.py"
click node_model_download "https://github.com/like-attract/video-to-note/blob/main/backend/download.py"
click node_transcript "https://github.com/like-attract/video-to-note/blob/main/backend/transcript.py"
click node_summarizer "https://github.com/like-attract/video-to-note/blob/main/backend/llm_summarizer.py"
click node_exports "https://github.com/like-attract/video-to-note/blob/main/backend/main.py"
click node_task_store "https://github.com/like-attract/video-to-note/blob/main/backend/main.py"
click node_config "https://github.com/like-attract/video-to-note/blob/main/backend/config_store.py"
click node_secret_box "https://github.com/like-attract/video-to-note/blob/main/backend/secret_box.py"
click node_mcp "https://github.com/like-attract/video-to-note/blob/main/backend/mcp_server.py"
click node_skill "https://github.com/like-attract/video-to-note/blob/main/skills/video-to-note/SKILL.md"
click node_updates "https://github.com/like-attract/video-to-note/blob/main/backend/update_check.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_browser,node_user,node_agent toneBlue
class node_source,node_processor,node_platform,node_bili_login,node_douyin_login,node_captions,node_asr_worker,node_whisper,node_paraformer,node_model_download,node_transcript toneAmber
class node_summarizer,node_llm,node_exports toneMint
class node_service,node_launcher,node_task_store,node_config,node_secret_box,node_updates toneRose
class node_mcp,node_skill toneIndigo
```

## Components

### User access

- [Web UI](https://github.com/like-attract/video-to-note/blob/main/frontend/script.js): `frontend/script.js`

### Media and transcription

- **Video input**
- [Media processor](https://github.com/like-attract/video-to-note/blob/main/backend/video_processor.py): `backend/video_processor.py`
- **Video platforms**
- [Bilibili login](https://github.com/like-attract/video-to-note/blob/main/backend/bili_login.py): `backend/bili_login.py`
- [Douyin login](https://github.com/like-attract/video-to-note/blob/main/backend/douyin_login.py): `backend/douyin_login.py`
- [Platform captions](https://github.com/like-attract/video-to-note/blob/main/backend/video_processor.py): `backend/video_processor.py`
- [ASR worker](https://github.com/like-attract/video-to-note/blob/main/backend/asr_process.py): `backend/asr_process.py`
- [Whisper ASR](https://github.com/like-attract/video-to-note/blob/main/backend/whisper_asr.py): `backend/whisper_asr.py`
- [Paraformer ASR](https://github.com/like-attract/video-to-note/blob/main/backend/paraformer_asr.py): `backend/paraformer_asr.py`
- [Model downloads](https://github.com/like-attract/video-to-note/blob/main/backend/download.py): `backend/download.py`
- [Timestamped transcript](https://github.com/like-attract/video-to-note/blob/main/backend/transcript.py): `backend/transcript.py`

### Notes and outputs

- [LLM note generation](https://github.com/like-attract/video-to-note/blob/main/backend/llm_summarizer.py): `backend/llm_summarizer.py`
- **LLM provider**
- [Note exports](https://github.com/like-attract/video-to-note/blob/main/backend/main.py): `backend/main.py`

### Local service and configuration

- [FastAPI service](https://github.com/like-attract/video-to-note/blob/main/backend/main.py): `backend/main.py`
- [Local launcher](https://github.com/like-attract/video-to-note/blob/main/launcher.py): `launcher.py`
- [Task workspace](https://github.com/like-attract/video-to-note/blob/main/backend/main.py): `backend/main.py`
- [Configuration store](https://github.com/like-attract/video-to-note/blob/main/backend/config_store.py): `backend/config_store.py`
- [Secret protection](https://github.com/like-attract/video-to-note/blob/main/backend/secret_box.py): `backend/secret_box.py`
- [Update check](https://github.com/like-attract/video-to-note/blob/main/backend/update_check.py): `backend/update_check.py`

### Agent interfaces

- [MCP tools](https://github.com/like-attract/video-to-note/blob/main/backend/mcp_server.py): `backend/mcp_server.py`
- [Agent Skill](https://github.com/like-attract/video-to-note/blob/main/skills/video-to-note/SKILL.md): `skills/video-to-note/SKILL.md`

### Other components

- **User**
- **AI client**

## Connections

- User → Web UI: submits media (evidence: `README.md`)
- Web UI → FastAPI service: requests tasks (evidence: `README.md`)
- FastAPI service → Media processor: processes media (evidence: `backend/main.py`)
- Media processor → Video platforms: retrieves media (evidence: `README.md`)
- Media processor → Bilibili login: uses credentials (evidence: `README.md`)
- Media processor → Douyin login: uses verification (evidence: `README.md`)
- Media processor → Platform captions: checks captions (evidence: `README.md`)
- Media processor → ASR worker: requests transcription (evidence: `backend/main.py`)
- ASR worker → Whisper ASR: runs engine (evidence: `backend/asr_process.py`)
- ASR worker → Paraformer ASR: runs engine (evidence: `backend/main.py`)
- Whisper ASR → Model downloads: downloads models (evidence: `backend/whisper_asr.py`)
- Paraformer ASR → Model downloads: downloads models (evidence: `backend/paraformer_asr.py`)
- Platform captions → Timestamped transcript: parses subtitles (evidence: `backend/video_processor.py`)
- ASR worker → Timestamped transcript: returns segments (evidence: `backend/asr_process.py`)
- FastAPI service → Timestamped transcript: writes transcript (evidence: `backend/main.py`)
- FastAPI service → LLM note generation: generates notes (evidence: `backend/main.py`)
- LLM note generation → Timestamped transcript: uses segments (evidence: `backend/llm_summarizer.py`)
- LLM note generation → LLM provider: calls model (evidence: `README.md`)
- FastAPI service → Note exports: produces formats (evidence: `README.md`)
- FastAPI service → Task workspace: persists tasks (evidence: `backend/main.py`)
- FastAPI service → Configuration store: resolves settings (evidence: `backend/main.py`)
- Configuration store → Secret protection: protects secrets (evidence: `backend/config_store.py`)
- Local launcher → FastAPI service: starts server (evidence: `launcher.py`)
- Local launcher → Update check: checks releases (evidence: `launcher.py`)
- FastAPI service → Update check: checks releases (evidence: `backend/main.py`)
- AI client → MCP tools: invokes tools (evidence: `README.md`)
- MCP tools → FastAPI service: starts tasks (evidence: `backend/mcp_server.py`)
- MCP tools → Timestamped transcript: returns transcript (evidence: `README.md`)
- AI client → Agent Skill: follows workflow (evidence: `README.md`)
- Agent Skill → FastAPI service: uses local backend (evidence: `README.md`)
