How jasminemo1110/x-digest works
X Digest is a local-first Chrome extension for turning a rendered X post or Article into bilingual reading, summaries, contextual language help, and saved learning material. Its main workflow starts with a reader opening Digest on an X post; the extension extracts the post, opens the side panel, and routes reading or learning requests through the background worker. Results can be saved to the local Library or Wordbook, searched, exported, or backed up. The graph includes the documented Article, excerpt-focus, backup, and reading-position capabilities; some internal routing is only documented, so those edges cite the README.
Main entry points: background.js Message and action worker · sidepanel.js Digest side panel · content.js Post extraction · reader-state.js Reader position
Components 16
X capture
- Rendered X page
- Post extraction
content.js - Excerpt source focus
content.js
Reading experience
- Digest side panel
sidepanel.js - Long Article reading
long-reading.js - Reader position
reader-state.js
Background and AI
- Message and action worker
background.js - AI action shaping
ai-actions.js - DeepSeek provider
ai-provider.js - API key settings
settings.js
Local learning data
- Learning data models
learning-data.js - Chrome local storage
- Library and Wordbook UI
sidepanel.js - Backup and restore
backup-data.js
Other components
- X reader
- DeepSeek API
Connections 21
- X reader → Rendered X page: opens post
README.md - Rendered X page → Post extraction: provides page
README.md - Post extraction → Message and action worker: opens Digest
content.js - Message and action worker → Digest side panel: stores active post
background.js - Digest side panel → Message and action worker: requests actions
sidepanel.js - Message and action worker → AI action shaping: builds AI actions
background.js - Message and action worker → DeepSeek provider: requests AI
- DeepSeek provider → DeepSeek API: calls API
- API key settings → Chrome local storage: stores API key
README.md - Digest side panel → Long Article reading: translates sections
sidepanel.js - Message and action worker → Long Article reading: summarizes Articles
background.js - Digest side panel → Reader position: updates position
sidepanel.js - Reader position → Chrome local storage: persists position
- Message and action worker → Learning data models: normalizes records
background.js - Message and action worker → Chrome local storage: reads and writes
background.js - Digest side panel → Library and Wordbook UI: renders collections
README.md - Library and Wordbook UI → Message and action worker: saves and searches
README.md - Message and action worker → Backup and restore: creates and merges
background.js - Backup and restore → Chrome local storage: restores records
README.md - Library and Wordbook UI → Excerpt source focus: opens saved excerpt
README.md - Excerpt source focus → Rendered X page: highlights source
README.md