public/manifest.json, public/icons/ static extension files (copied to dist/)
*.html page entries (popup, editor, recorder, video, flow, flowbar, options, controlbar, progress, teleprompter, permissions, offscreen)
scripts/ build helpers: content-script IIFE bundle, OCR assets, icons, E2E manifest, release check (verify-package), release zip (package)
src/
background/ service worker: message-handler, recording-manager, offscreen-manager, download-manager, scheduler, commands, badge, overlay
content/ on-demand page overlay (classic script, type-only imports)
popup/ popup UI (components, hooks, styles)
screenshot/ capture services: visible, full page (page-scripts + image-stitching), area, desktop, OCR
recording/ services (session, recorder, compositor, audio, camera, codec, chunk store, export, state) + pages (recorder, video, control bar, permissions)
editor/ editor page, canvas workspace, tools, history, render, image panel, compare
collage/ collage workspace (inside the editor page)
flow/ Flow Capture: Flow Editor, exports (PDF, HTML, ZIP, JSON)
progress/ countdown window before Entire Screen / App Window screenshots
teleprompter/ teleprompter window
settings/ settings service + options page
history/ history service + Recent captures UI
offscreen/ offscreen document host
shared/ types, constants, messaging, storage (IndexedDB), utils, design-system components, hooks
styles/ design tokens (variables.css), dark theme, global styles
tests/unit, tests/integration (Vitest) · tests/e2e (Playwright)
docs/
noUncheckedIndexedAccess. Shared types live in src/shared/types.media-stream-service, capture-service, download…). UI components don’t call getUserMedia or chrome.downloads directly.src/styles/variables.css and a dark theme via [data-theme='dark'].import() in code reachable from the service worker (Vite’s preload helper needs document).page-scripts.ts are serialised by Chrome, so they must be completely self-contained.tsc --noEmit for the whole project, including tests.vite build for multi-page React + background.js (ES module service worker).scripts/build-content.mjs bundles content/overlay.js as IIFE.scripts/copy-ocr-assets.mjs copies the Tesseract worker, the LSTM WASM cores and eng.traineddata.gz to dist/ocr.scripts/verify-package.mjs checks the result (no remote code, no eval, manifest files present, no required host access). npm run package then zips dist/ to release/pixora-<version>.zip.Because step 1 type-checks the tests too, a type error in a test file stops the build — and end-to-end runs with SKIP_BUILD=1 would then test the previous dist/. Check the build output for [verify] package OK before trusting an end-to-end run.
npm test runs about 300 Vitest tests (41 files):
chrome API and fake IndexedDB.npm run test:e2e runs Playwright with the real extension in Chromium. scripts/prepare-e2e.mjs creates dist-e2e/ with <all_urls>, because automation can’t click the toolbar icon to grant activeTab. The shipped dist/ is unchanged.
--workers=1 on a busy machine; recording tests are timing-sensitive under heavy load.tests/e2e/media-fixtures.ts).desktopCapture picker can’t be auto-answered). Verify these manually as below.Things automation can’t do (Chrome’s pickers, a real toolbar click) — check them before each release
in a clean profile with dist/ loaded unpacked: