How saisreekardevoju/lumen_v3-chrome-extension works
Lumen is a Chrome extension for capturing page text, selected text, or a visual region, then producing a structured brief and grounded follow-up answers in the browser. The side panel orchestrates capture, per-tab state, requests, and results; the server handles summarization and follow-up generation. The README documents long-page, visual, redaction, multilingual, and history capabilities. Some implementation links are based on documentation because the relevant source was not excerpted.
Main entry points: SidePanelApp.tsx Side panel workflow · src/index.ts Summarization service · content/index.ts Content capture router · SettingsView.tsx Settings
Components 22
Browser experience
- Side panel workflow
apps/extension/src/sidepanel/SidePanelApp.tsx - Capture chooser
apps/extension/src/components/CaptureChooser.tsx - Brief display
apps/extension/src/components/SummaryView.tsx - Follow-up chat
apps/extension/src/components/FollowUpChat.tsx - Settings
apps/extension/src/components/SettingsView.tsx - Local history
apps/extension/src/components/HistoryView.tsx
Capture and context
- Per-tab state
apps/extension/src/lib/tabStorage.ts - Credentials and history
apps/extension/src/lib/storage.ts - Tab messaging
apps/extension/src/lib/tab.ts - Content capture router
apps/extension/src/content/index.ts - Page and selection extraction
apps/extension/src/content/extractor.ts - Region capture
apps/extension/src/content/regionSelector.ts - In-page panel
apps/extension/src/content/inPagePanel.ts - Backend API client
apps/extension/src/lib/api.ts
AI processing
- Summarization service
apps/server/src/index.ts - Groq provider
apps/server/src/providers/groq.ts
Shared contracts and utilities
- Grounding prompts
packages/shared/src/prompts/index.ts - Brief validation
packages/shared/src/schemas/index.ts - Long-page chunking
packages/shared/src/utils/chunking.ts - Text redaction
packages/shared/src/utils/redaction.ts - Brief export
packages/shared/src/utils/markdown.ts
Other components
- Browser user
Connections 26
- Browser user → Side panel workflow: opens
README.md - Side panel workflow → Capture chooser: renders
apps/extension/src/sidepanel/SidePanelApp.tsx - Side panel workflow → Per-tab state: loads and saves
apps/extension/src/sidepanel/SidePanelApp.tsx - Side panel workflow → Credentials and history: saves history
apps/extension/src/sidepanel/SidePanelApp.tsx - Side panel workflow → Tab messaging: dispatches capture
apps/extension/src/sidepanel/SidePanelApp.tsx - Tab messaging → Content capture router: sends messages
- Content capture router → Page and selection extraction: extracts page or selection
apps/extension/src/content/index.ts - Content capture router → Region capture: starts region capture
apps/extension/src/content/index.ts - Content capture router → In-page panel: uses panel
apps/extension/src/content/index.ts - Side panel workflow → Backend API client: requests summary
apps/extension/src/sidepanel/SidePanelApp.tsx - Backend API client → Summarization service: sends requests
- Summarization service → Text redaction: redacts text
README.md - Summarization service → Long-page chunking: splits long pages
README.md - Summarization service → Grounding prompts: builds grounded prompts
apps/server/src/index.ts - Summarization service → Brief validation: validates brief
README.md - Summarization service → Groq provider: calls model provider
apps/server/src/index.ts - Groq provider → Browser user: streams generated answer
- Side panel workflow → Brief display: renders brief
- Side panel workflow → Follow-up chat: renders questions
- Side panel workflow → Settings: renders settings
- Side panel workflow → Local history: renders history
apps/extension/src/sidepanel/SidePanelApp.tsx - Local history → Credentials and history: reads history
apps/extension/src/components/HistoryView.tsx - Settings → Per-tab state: reads tab options
apps/extension/src/components/SettingsView.tsx - Settings → Credentials and history: reads credentials
apps/extension/src/components/SettingsView.tsx - Follow-up chat → Backend API client: requests answers
apps/extension/src/components/FollowUpChat.tsx - Brief display → Brief export: exports brief