How vallimuthuraja-git/focus-exe works
Focus Exe is an on-demand Manifest V3 Pomodoro extension. The user summons a page widget; its content script loads and reconciles persisted state, coordinates timer actions and audio, renders focus/break and deadline clocks, and reports completed sessions to the service worker for notification. Settings also route users to the product page or repository. The graph covers the documented product-page capability, but its HTML behavior was not sampled; the runtime wiring shown here is based on the README and source excerpts.
Main entry points: background.ts Service worker · content.ts Content controller · widget.ts Widget shell · settings.ts Settings panel
Components 16
Extension entry
- Service worker
src/background.ts - Content controller
src/content.ts
Widget runtime
- Timer configuration
src/config.ts - Timer state
src/state.ts - API wrappers
src/browser.ts - Audio engine
src/audio.ts
Widget presentation
- Widget shell
src/widget.ts - Flip clocks
src/clock.ts - Settings panel
src/settings.ts - Shared UI builders
src/ui.ts
Platform services
- Extension storage
- Browser extension APIs
- Desktop notifications
Support
- Product page
page/index.html - Source repository
Other components
- User
Connections 20
- User → Service worker: summons widget
README.md - Service worker → Browser extension APIs: injects script
src/background.ts - Service worker → Content controller: injects or toggles
src/background.ts - Content controller → Timer state: loads and saves
src/content.ts - Timer state → API wrappers: reads and writes
src/state.ts - API wrappers → Extension storage: accesses
src/browser.ts - Content controller → Widget shell: creates and renders
src/content.ts - Content controller → Audio engine: unlocks and syncs
src/content.ts - Content controller → Service worker: sends completion
src/content.ts - Service worker → Desktop notifications: creates notification
src/background.ts - Widget shell → Flip clocks: creates and updates
src/widget.ts - Widget shell → Settings panel: creates panels
src/widget.ts - Settings panel → Shared UI builders: builds controls
src/settings.ts - Widget shell → Shared UI builders: builds controls
src/widget.ts - User → Product page: opens about
README.md - Settings panel → Content controller: routes link action
- Content controller → Service worker: requests support link
src/content.ts - Service worker → Product page: opens support page
src/background.ts - Service worker → Source repository: opens GitHub
src/background.ts - Service worker → Browser extension APIs: queries tabs
src/background.ts