How zarazhangrui/youtube-digest works
YouTube Digest is a Chrome side-panel study tool for YouTube videos. The main workflow is: open a video, retrieve its native captions, then read/search or translate the transcript, generate an AI overview, and save timestamped notes or explanations. The graph also shows settings, local persistence, and page-level controls. Relationships are included where the excerpts or README support them; unsampled implementation details are not inferred.
Main entry points: sidepanel.js Side panel · background.js Background worker · content.js Video page controls · options.js Settings page
Components 17
Study experience
- Side panel
sidepanel.js - Transcript and search
sidepanel.js - Translation views
sidepanel.js - AI overview
sidepanel.js - Timestamped notes
sidepanel.js - Video page controls
content.js
Extension services
- Background worker
background.js - Caption retrieval
background.js - AI requests
background.js - Local extension data
Settings and prompts
- Settings page
options.js - Settings helpers
settings.js - Prompt text
prompts
External systems
- Supadata API
- DeepSeek API
Other components
- Learner
- YouTube video
Connections 20
- Learner → Side panel: opens and uses
README.md - YouTube video → Video page controls: provides video context
README.md - Video page controls → Background worker: requests actions
content.js - Background worker → Video page controls: requests video info
background.js - Side panel → Background worker: sends actions
sidepanel.js - Background worker → Caption retrieval: handles retrieval
background.js - Caption retrieval → Supadata API: fetches captions
background.js - Transcript and search → Side panel: renders results
README.md - Side panel → Translation views: requests translation
sidepanel.js - Side panel → AI overview: requests analysis
sidepanel.js - Side panel → Timestamped notes: manages notes
README.md - Background worker → AI requests: handles AI actions
background.js - AI requests → DeepSeek API: sends AI requests
README.md - AI requests → Prompt text: loads prompt sections
background.js - Caption retrieval → Local extension data: reads and writes cache
- Timestamped notes → Local extension data: stores notes
- Settings page → Settings helpers: uses settings helpers
options.js - Settings page → Local extension data: saves settings
options.js - Background worker → Settings helpers: normalizes settings
background.js - Transcript and search → YouTube video: seeks timestamps
README.md