How me-heer/affordable works
Main Components
A. Browser Components:
• Chrome Extension Popup UI
• Options Page
• Content Scripts
• Background Script
• Extension Storage
B. External Components:
• E-commerce Websites (Amazon, Flipkart, etc.)
• Chrome Web Store (distribution)
User Interface Layer
Extension Core Layer
Website Integration Layer
Component Details and Relationships
A. User Interface Components (Top Layer):
• Use rounded rectangles for UI components
B. Extension Core (Middle Layer):
• "Configuration Manager" (src/config.js)
• "Currency Handler" (src/lib/currency.js)
C. Website Integration (Bottom Layer):
• "Price Parser" subcomponent
• "DOM Manipulator" subcomponent
• Use rectangles for these components
• Supported e-commerce website logos as external systems
• Bidirectional communication between Background Script and Content Scripts
• Green: User interactions
• Blue: Internal communication
• Orange: External website interaction
Technical Details
• Chrome Extension APIs being used
• Content Script injection points
• Message passing between components
• Storage access patterns
• DOM manipulation flows
The configuration options and their impact on the system
Remember to indicate the asynchronous nature of content script injection and price updates, as this is crucial for the extension's performance on e-commerce websites.