How dharminjoshi/tabsort-devkay works
Project type and purpose
• TabSort-DevKay is a Chrome browser extension whose primary purpose is to help users group, manage, and automatically close inactive tabs.
• It consists of two interacting components: a popup-based UI (popup.html, popup.js, styles.css) and a background script (background.js), tied together by the Chrome Extensions API and manifest.json.
File structure
• manifest.json: defines extension metadata, permissions (tabs, storage), entry points (background script, popup page), and version.
• background.js: long-running background service (event-driven), tracks tab activity, enforces inactivity rules, persists data.
• popup.html / popup.js / styles.css: front-end UI that lets the user view, create, rename, or delete tab groups; invokes extension APIs.
• README.md: outlines features, installation steps, and contributing guidelines.
README for additional insights
• Persistent storage across browser sessions → uses chrome.storage API.
• Real-time UI updates → message-passing or runtime events between popup and background.
• Tab inactivity auto-closure → background listens for tab events and timeouts.
Elements
• Clear labels: Popup UI, Background Service, Chrome API (Tabs/Storage), Browser Toolbar
• Popup UI ↔ Background Service (message passing)
• Background Service → Chrome Tabs API (tab grouping, closing)
• Background Service ↔ Chrome Storage API
• Storage API → Popup UI (storage.onChanged events)
• UI components (e.g., blue rectangles)
• Background/event handlers (e.g., green circles)