How tgayle/tab-counter works
Main Components
A. Browser Integration Layer
• Background Script (src/background.ts)
• Content Script (src/content)
• Context Menu Integration (src/contextmenu)
B. Core Features Layer
• Tab Management System
• Tab Filtering (src/action/TabFilter.ts)
• Tab Statistics (src/action/TabStats.ts)
• Tab Grouping (src/action/grouping/*)
• Tab Archiving System (src/features/archives)
• Settings Management (src/state/settings.ts)
C. UI Components Layer
• Popup Interface (src/pages/popup)
• Side Panel Interface (src/pages/sidePanel)
• Shared Components (src/components)
D. State Management
• Store (src/store.ts)
• State Modules
• Rules State (src/state/rules.ts)
• Settings State (src/state/settings.ts)
• Tabs State (src/state/tabs.ts)
• UI State (src/state/ui.ts)
• [Chrome Browser API]
• ↕
• [Extension Integration Layer]
• ↕
• [Core Features Layer]
• ↕
• [State Management Layer]
• ↕
• [UI Layer]
Key Architectural Patterns to Highlight
• Event-driven architecture (evidenced by EventEmitter.ts)
• Strategy Pattern for tab grouping (various grouping strategies)
• State management pattern (separate state modules)
• Component-based UI architecture (React components)
Implementation Details
• Version information
• Key technologies used:
• TypeScript
• React
• Chrome Extensions API
• Tailwind CSS
Additional Notes
• A small section showing the tab grouping strategy hierarchy
• Demonstrate how the filtering system integrates with the UI
• Flow of tab management operations from UI trigger to execution
• Where future Firefox support could be integrated
Remember to emphasize the extension's primary purpose of tab management and organization while showing how the architecture supports the current features and allows for future expansion.