How sgasser/website-reader-for-claude works
Main Components
A. Browser Components:
• Chrome Extension Popup UI (represented by popup.html and src/popup/)
• Content Script (src/contentScript/) that interacts with web pages
• Extension Background Service
B. External Services:
• Claude.ai Integration
• Jina.ai Reader API
• Target Websites (for content extraction)
• Chrome Browser |
• Extension UI | | Content Script | | Target Website | |
• (Popup.tsx) | | (contentScript/) | | (Any webpage with URL) | |
• ↕ ↕ ↕ |
• ↕ ↕ ↕
• External Services |
• Claude.ai | | Jina.ai | | Content Processing | |
• Interface | | Reader API | | & Transformation | |
Key Interactions to Highlight
a. User Flow:
• URL paste detection in Claude.ai interface
• Content script activation
• Webpage content extraction
• Processed content injection
b. Data Flow:
• URL → Content Script → Jina.ai Reader
• Extracted Content → Content Processing
• Processed Content → Claude.ai Interface
Technical Details
• TypeScript/React components (src/popup/)
• Content script injection points
• API integration points (utils/claude.ts, utils/jina.ts)
Implementation Notes
• Extension's event-driven architecture
• Privacy-focused nature of the processing
• Where content transformation occurs
• Security boundaries between components