Architecture
Runtime components
Section titled “Runtime components”- Content script (
src/contentScript/index.js): injects extension behavior into Outlook pages. - Background script (
src/background/index.js): handles extension-level actions and messaging. - Options page (
src/options/index.html+src/options/main.js): user configuration UI.
Content script organization
Section titled “Content script organization”The content script follows a feature-oriented layout:
core/: shared primitives (settings, keyboard handling, DOM helpers, browser API wrappers).features/: user-facing behaviors (command bar, snooze, vim mode, dark mode, etc.).styles/: overlay and feature CSS.
Initialization flow
Section titled “Initialization flow”- Load persisted settings.
- Initialize feature dependencies.
- Build command list.
- Install keyboard handlers.
- Start observers (inbox zero, options bar, storage events).
Browser support model
Section titled “Browser support model”- Chrome distribution targets Manifest V3.
- Firefox distribution targets Manifest V2 compatibility packaging.
- Build scripts transform and copy assets to browser-specific outputs.
Build pipeline
Section titled “Build pipeline”vite buildbundles script assets.scripts/build.jscopies and transforms extension artifacts.scripts/package.jscreates distributable zip files.
See Get Started for local run steps.