Tab Tricks

Your browser tab, put to work. Fun: a favicon that misses you. Useful: unread badges, progress rings, done alerts and timers right in the tab.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Download ZIP

tab-tricks.zip · source file + README with usage and props

Preview

Fun · Animated favicon faces + funny away titles, welcome back on return. mode="fun"

Two versions. Fun — leave the tab and the favicon becomes eyes looking around (or sleepy, crying, waving) while the title cycles jokes; come back to a happy bounce and “Yay! 🎉”. Useful — silent helpers people use without noticing: badge(n) for unread counts, progress(0–1) for uploads/exports, done() turns the icon into a green check when a job finishes while they're away, unsaved() dot, countdown() in the title, recording() red dot, and an “away 12 min · 3 updates” summary. The original title and favicon are always restored exactly.

Installation

  1. 1.Download tab-tricks.zip and unzip it.
  2. 2.Copy the .tsx file into components/pickui/ (Tailwind CSS required).
  3. 3.Follow the README inside for usage.

Props

PropTypeDefaultDescription
mode"fun" | "useful""fun"Which version.
face"eyes" | "sleepy" | "crying" | "wave""eyes"Fun: favicon animation while away.
awaystring[]—Fun: titles cycled while hidden.
welcomestring"Welcome back 👋"Toast on return ('' disables).
awayAfternumber60000Useful: ms away before the summary toast (0 disables).
soundbooleanfalseUseful: soft chime on done().
guardUnsavedbooleanfalseUseful: beforeunload warning while unsaved(true).
accentstring"#4ade80"Icon / toast colour.
onReady(handle) => void—React: get badge / progress / done / unsaved / countdown / recording / notify.
animatedbooleantruefalse = the calm “Regular” version (no idle or ambient motion).

Accessibility

  • Nothing moves on the page; toasts are polite status messages.
  • Reduced motion: still favicon icons instead of animations.