Skip to content

Quick Start

  • Node 20.19 or newer. .nvmrc pins 22.
  • Yarn 4 through Corepack. The repo pins yarn@4.17.1 via packageManager.
  • A Chromium browser (Chrome or Edge) and/or Firefox 140+.
Terminal window
corepack enable
yarn install

Every 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.

Terminal window
yarn dev # Chrome
yarn dev:firefox # Firefox

yarn dev builds apps/extension/.output/chrome-mv3, opens a browser with the extension loaded, and reloads on change. To load a build by hand:

  1. Open chrome://extensions.
  2. Turn on Developer mode (top-right).
  3. Click Load unpacked and pick apps/extension/.output/chrome-mv3.
Terminal window
yarn build # wxt build → apps/extension/.output/chrome-mv3
yarn build:all # chrome + firefox + edge
yarn 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.

Terminal window
yarn type-check # tsc -b core/storage/platform, then the test project, then the app's wxt prepare + tsc --noEmit
yarn lint # eslint . (flat config)
yarn test # vitest run --coverage across packages, then the extension's vitest suite
yarn build # production build

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:

  1. It scans the active tab and lists every image, video, and audio file it found. The toolbar badge shows the count per tab.
  2. Filter by type (All / Images / Video / Audio), by format, or by size.
  3. Deep scan scrolls the page to surface lazy-loaded and virtualized media on infinite feeds and galleries. See Deep Scan.
  4. Download one item (hover its tile) or everything shown (footer button).
  5. 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:

The preview modal: an item shown full size with its dimensions, type, and source, with previous/next controls.

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.

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 scripts
tsconfig.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 record

Next: Architecture.