Quick Start
Prerequisites
Section titled “Prerequisites”- Node 20.19 or newer.
.nvmrcpins 22. - Yarn 4 through Corepack. The repo pins
yarn@4.17.1viapackageManager. - A Chromium browser (Chrome or Edge) and/or Firefox 140+.
corepack enableyarn installEvery script runs through Corepack Yarn. Do not use npm. WXT builds all four build targets (Chrome, Firefox, Edge, Safari) from one codebase; Opera and other Chromium browsers run the Chrome build.
Develop
Section titled “Develop”yarn dev # Chromeyarn dev:firefox # Firefoxyarn dev builds apps/extension/.output/chrome-mv3, opens a browser with the extension loaded, and reloads on change. To load a build by hand:
- Open
chrome://extensions. - Turn on Developer mode (top-right).
- Click Load unpacked and pick
apps/extension/.output/chrome-mv3.
Build & package
Section titled “Build & package”yarn build # wxt build → apps/extension/.output/chrome-mv3yarn build:all # chrome + firefox + edgeyarn zip:all # store-ready zips in apps/extension/.output/Zips are named media-bulk-downloads-<version>-<browser>.zip. See the per-store upload matrix in the README.
Quality gates
Section titled “Quality gates”yarn type-check # tsc -b core/storage/platform, then the test project, then the app's wxt prepare + tsc --noEmityarn lint # eslint . (flat config)yarn test # vitest run --coverage across packages, then the extension's vitest suiteyarn build # production buildFirst use
Section titled “First use”The toolbar icon does one of two things, depending on your settings and the page:
- Bubble (default): Show floating bubble on pages is on by default, so on any normal web page clicking the icon toggles an in-page floating panel. See In-page Bubble.
- Popup: on restricted pages where the bubble can’t run (the Chrome Web Store, AMO,
chrome://pages), or with that setting off, clicking the icon opens the popup panel instead.
Once the panel is open:
- It scans the active tab and lists every image, video, and audio file it found. The toolbar badge shows the count per tab.
- Filter by type (All / Images / Video / Audio), by format, or by size.
- Deep scan scrolls the page to surface lazy-loaded and virtualized media on infinite feeds and galleries. See Deep Scan.
- Download one item (hover its tile) or everything shown (footer button).
- Download History and Favourites open from the popup header. See Download History and Favourites.
Click any tile to preview it full-size with its dimensions, type, and source:

Settings
Section titled “Settings”The Settings sheet has four tabs (Downloads, Media, Display, Data), stored in
chrome.storage.sync. Every setting, its default, and what it controls are in the
Settings reference; permissions are in
Permissions & privacy.
Where things live
Section titled “Where things live”The repo is a yarn-workspaces monorepo: browser-agnostic logic in packages/*, the WXT app in apps/extension. See Architecture → Workspace layout.
package.json # workspaces root: [packages/*, apps/*] + orchestration scriptstsconfig.base.json # shared compiler options for the packages
packages/ # each package: src/ + tests/ (its own Vitest project) core/ @mbd/core # browser-agnostic domain logic (zero chrome.*) src/ collection/ # extract · imageUrl · mediaType · deepScan · filters · # paths · download-name (buildDownloadFilename) resolvers/ # collection-time REGISTRY + opt-in network resolve: index.ts # REGISTRY + resolve() dispatch network.ts # opt-in fetch() dispatch (~20 platforms) sites/ # per-host resolvers (+ vimeo.ts id-extraction only) sniffers/ # response/hls/ig/x/fb/pinterest/mangadex MAIN-world sniffers download/ # zip · base64 · convert/ · stream/ (HLS/DASH byte-logic) net/ # fetch retry types.ts # shared TypeScript types (ChromeMessage, ImageInfo, …) tests/ # Vitest specs + fixtures/ (jsdom project) storage/ @mbd/storage # persistence over chrome.storage + IndexedDB: # settings · history · favourites · excluded · queue · # per-host memory · backup · sync (+ tests/) platform/ @mbd/platform# capability contracts (Downloader/Notifier/HeaderRules/ # StreamCaptureHost) + detectCapabilities() (+ tests/)
apps/ extension/ @mbd/extension wxt.config.ts # WXT build config (manifest fn, targets, zip) src/ entrypoints/ # background · content · ig/x/fb/pinterest/mangadex/hls MAIN-world # sniffers · offscreen (HLS/DASH capture) · popup public/icon/ # extension icons types/ # ambient CSS-module declarations extension/ background/ # MV3 service worker (badge, commands, context-menu, # message-router, state, download/ queue+capture) content/ # collect.ts (DOM → MediaItem[]) · deepScanRunner · bubble mount components/BrandMark.tsx shared/active-tab/ # popup↔content bridges: collect / deep-scan / # resolve-originals / capture-stream popup/ # React popup: App.tsx, components/panels/, hooks/ bubble/ # in-page bubble (Shadow DOM host + React root) styles/index.css # Tailwind v4 + design tokens tests/unit/ # Vitest specs tests/e2e/ # Playwright e2e (real extension in Chromium)
docs/website/ # documentation site (Astro Starlight)docs/architecture/ # monorepo-restructure design recordNext: Architecture.