Inspiration

I keep 30 tabs open and forget 25 of them. Tab managers list them, but none make the forgotten ones feel urgent. A ghost story does: the longer something is neglected, the more it haunts you. So the spookiness had to be the interface, not decoration.

What it does

Haunted Tabs is a Chrome extension that turns your forgotten tabs into ghosts. Click the toolbar icon and a side panel opens with every open tab as a ghost: a Specter (duplicate), Poltergeist (playing sound), Shade (pinned but forgotten for a week) or Wraith (any other neglected tab). Each has a haunt score from 0 to 100, an age and a one-line summary.

The haunting is functional. The more neglected a tab, the more ghostly it looks: the ghost fades and, once possessed, flickers. A coloured edge and a score badge with a level word (Calm, Eerie, Haunted, Possessed) let you rank urgency at a glance, and the list is grouped by level. Text always stays readable (WCAG AA contrast is tested) and buttons are never faded. An intensity slider, an effects-off switch and reduced-motion support let anyone turn the spookiness down, and Settings has a Show me the levels preview.

You can Resurrect a tab (focus it), Exorcise it (close it, with a 30-second undo), or Archive it to the Graveyard. Banish all duplicates keeps one copy of each duplicated page and closes the rest, and one Undo brings them all back. The Séance tab reads you the day's digest: ghost count, average haunt, duplicates, the oldest tab and plain next steps.

Summaries come from Chrome's built-in on-device AI when the browser has it, and from an informative rule-based summariser when it does not. Every summary is labelled with its source. There is no key, no login, no backend and no network request. Only a tab's title, URL and domain ever reach the on-device model, and page content is never read. Permissions: tabs, storage, alarms, sidePanel, with no host permissions.

How we built it

Haunted Tabs is a Manifest V3 extension built with WXT, React 19, TypeScript, Vite and plain CSS with design tokens. It was built spec-first with Kiro:

  • Spec: requirements, design and tasks in .kiro/specs/, updated before each change, so every behaviour has a written rule and an example.
  • Steering: rules a test can check, such as "ghost opacity never applies to buttons" and "text must pass AA". The security steering drove the removal of cloud AI and every host permission.
  • Hooks: secret scan, tests on save, demo readiness, an AI guardrail check and a usage log.
  • Tests: 271 Vitest tests (including fast-check property tests on the haunt score), a real-Chrome harness, and a check that the web demo and the scoring script agree.
  • Pure logic: scoring and summaries live in src/lib/ with no chrome.* calls, so they run in tests without a browser.

The web demo is the real side-panel UI built from the same code as the extension.

Challenges we ran into

  • Making the haunting mean something. Opacity and flicker had to encode the haunt score without hiding data or blocking clicks. The fix was to fade only the icon, the title and the card fill, and to test the contrast of every text pair.
  • Scoring that feels right. A saturating age ramp makes a 9-day-old tab clearly more haunted than a 3-hour-old one, without every old tab hitting 100.
  • Deciding what a duplicate is. Tracking parameters (utm, gclid) must not make two copies of a page look different, while real query differences (two searches, two videos) must.
  • Judges must see everything with no key and possibly no Chrome AI. The rule-based summary is a first-class feature, and the web demo runs the real UI.
  • Testing a browser side panel for real. No framework drives the toolbar click, so the harness loads the build into a fresh Chrome profile and drives the panel page. The icon click itself is checked by hand.

Accomplishments that we're proud of

  • A haunting that carries information: opacity, flicker, edge colour and a written level word all say the same thing, and the contrast of every text pair is tested.
  • It works for a judge on first click: no login, no key, no backend, four permissions, and a web demo that runs the real UI.
  • The demo, the eval script and the app share one scoring function, so the numbers cannot disagree. npm run check:demo fails if they do.

What we learned

  • Write the rule and an example before fixing the bug. Every behaviour that went wrong (duplicates, the 30-second undo, a flickering digest) now has a sentence in the spec and a check that fails if it breaks.
  • Property tests were useful as guard rails but found no bug on their own. The bugs came from reading code, a real-Chrome harness and a stubbed on-device model.

What's next for Haunted Tabs

A Chrome Web Store listing, a user-set "how fast tabs haunt" preset, and a per-domain "never haunt this site" list. None of these is in the submitted build.

Built With

Share this project:

Updates

Submission history