Your tabs, remembered. TabRecall is a small cross-browser extension that tracks tabs across multiple windows, lets you bookmark, close, or s
README.md

TabRecall #

Your tabs, remembered. TabRecall is a small cross-browser extension that tracks tabs across multiple windows, lets you bookmark, close, or save them for later, and remembers recently closed tabs for a few days.

What it does #

  • Tracks when each tab was opened and when its page finished loading.
  • Records the page title, URL, and favicon (a small "snap" of the page).
  • Groups tabs by browser window in the popup.
  • Three popup views: Open, Closed, and See Later.
  • Save any tab URL to See Later for reading later (separate from bookmarks).
  • Open, remove, export, and import saved See Later items.
  • Uses Lucide icons (https://lucide.dev/).
  • Refresh button clears all closed tabs from history, keeping only currently open tabs.
  • Works in Chrome, Edge, Brave, Firefox, and other browsers that support WebExtensions.

Files #

├── manifest.json              # Extension manifest (v3)
├── src/
│   ├── background.js          # Service worker / event page: listens for tab/window events
│   ├── storage.js             # Storage layer with TTL cleanup
│   ├── popup.html             # Popup UI markup
│   ├── popup.js               # Popup logic
│   ├── popup.css              # Popup styles
│   └── icons/                 # Toolbar icons, Lucide icons
├── lib/
│   └── browser-polyfill.min.js # Promise-based API wrapper for Chrome/Edge
├── scripts/
│   ├── build.js               # Produces chrome.zip and firefox.xpi
│   └── generate-icons.py      # Renders PNG icons from the SVG design
├── tests/
│   ├── storage.test.js        # Small unit tests for storage logic
│   └── run-tests.js           # Tiny manual test runner
├── dist/                      # Build output (created by npm run build)
├── package.json
└── README.md

Build #

You can use npm or bun. The build script only depends on Node/Bun APIs and the system zip command.

# Using npm
npm test
npm run build

# Using bun
bun run test
bun run build

This creates:

  • dist/tabrecall-chrome.zip
  • dist/tabrecall-firefox.xpi

The Firefox package gets an extra browser_specific_settings.gecko block with an add-on ID, while the Chrome package keeps the original manifest.

Why generate-icons? #

src/icons/icon.svg is the source icon. The manifest references PNG icons (16/32/48/96/128/512 px) because Chrome and Edge handle PNG toolbar icons more reliably than SVG. npm run generate-icons renders those PNGs from the SVG.

You only need to run it when:

  • You edit src/icons/icon.svg.
  • The PNG files are missing or deleted.

The PNGs are already generated in this repo, so normal builds do not need it. A 512 px PNG is also generated as a high-resolution source for store artwork.

Install locally #

You can load the source folder directly for development, or use the built packages in dist/.

Chrome / Edge / Brave #

From source:

  1. Open chrome://extensions (or brave://extensions, edge://extensions).
  2. Enable Developer mode.
  3. Click Load unpacked and select the project root folder.
  4. Pin the extension to the toolbar.

From the built package:

  1. Extract dist/tabrecall-chrome.zip.
  2. Click Load unpacked and select the extracted folder.

Firefox #

  1. Open about:debugging → This Firefox.
  2. Click Load Temporary Add-on…
  3. Select either dist/tabrecall-firefox.xpi or the source manifest.json.

Safari #

Safari requires an .xarchive/App Extension wrapper. Use Xcode to wrap this extension, or use the safari-web-extension-converter tool. Safari 16 and later supports Manifest v3.

Usage #

Click the extension icon to open the popup. You will see:

  • A header with refresh and cleanup buttons.
  • A view switcher: Open, Closed, See Later.
  • A search box to filter tabs or saved URLs by title or URL.
  • A stats line showing counts for the current view.
  • One section per window; click a window header to collapse/expand it.
  • Per-tab memory usage shown for open tabs when the browser supports chrome.processes.
  • Duplicate tab filter in the Open view.
  • Floating snackbar confirmations after close, bookmark, save, remove, export, and import.
  • Action buttons on each row:
    • ➜ Go to the tab (focuses the window and activates the tab; no new tab opened).
    • 🕐 Save the URL to See Later.
    • ★ Bookmark the tab.
    • ✕ Close the tab.
    • 🗑 Remove the tab from history.

In the Open view you can see each tab's memory usage next to its title (when supported by the browser). Click the Duplicates button to show only open tabs whose URL is open more than once.

In the Closed view you can see recently closed tabs, save them to See Later, remove individual tabs, or remove all closed tabs in a window at once.

In the See Later view you can open saved URLs in a new tab, remove them, or export/import the whole list as JSON.

The refresh button (↻) syncs the list and removes all closed tabs, keeping only tabs that are still open.

Tests #

There is no heavy test framework installed. A small manual test runner is included and works with Node or Bun:

node tests/run-tests.js
npm test
# or
bun run test

Tests cover internal URL filtering, open/loaded timestamps, TTL cleanup, multi-window grouping, and removal.

Notes #

  • Manifest v3 is used so the extension installs on current Chrome, Edge, Brave, and Firefox. The background script is a service worker and also stays compatible with Manifest v2 event pages.
  • The included browser-polyfill turns Chrome's callback APIs into the promise-based browser.* API used everywhere else.
  • host_permissions: ["<all_urls>"] is required in v3 so the extension can read tab URLs, titles, and favicons for the history. The browser will ask for this permission at install time.
  • The extension does not capture full-page screenshots by default; it stores the page title, URL, and favicon as a lightweight snapshot. If you need visible-tab screenshots, you can extend storage.js and use the activeTab permission (already declared) before calling browser.tabs.captureVisibleTab.
  • Closed tabs are kept for 3 days. Change ttlDays in src/storage.js and src/background.js if you want a different retention window.

License #

MIT