{"slug": "a-chrome-side-panel-that-lists-tabs-from-every-window-in-60-lines-chrome-windows", "title": "A Chrome side panel that lists tabs from every window, in ~60 lines (chrome.sidePanel + windows.getAll)", "summary": "A solo developer in Korea published a roughly 60-line Chrome extension that uses the chrome.sidePanel API and chrome.windows.getAll({populate: true}) to list every open tab across all windows in an always-visible side panel. The implementation debounces tab events by 100ms to prevent flicker during page loads and adds one-click tab focusing, with optional grouping via chrome.tabs.group and chrome.tabGroups.update. The developer says the demo is the basis for TabZipsa, a commercial extension that adds AI-assisted grouping by task, where the model sees only tab titles and domains, never page content.", "body_md": "Disclosure: I'm a solo developer in Korea and the author of TabZipsa, the extension mentioned at the end. This post was written with AI assistance.\n\nIf you keep three or four Chrome windows open, \"which window was that tab in?\" becomes a daily question. `Ctrl+Shift+A` (tab search) helps, but I wanted a list that's always visible next to the page. Here's the minimal version.\n\n```\n{\n  \"manifest_version\": 3,\n  \"name\": \"All tabs side panel\",\n  \"version\": \"0.1.0\",\n  \"permissions\": [\"sidePanel\", \"tabs\"],\n  \"side_panel\": { \"default_path\": \"panel.html\" },\n  \"background\": { \"service_worker\": \"background.js\" },\n  \"action\": {}\n}\n```\n\nThe Side Panel API needs Chrome 114+. The `tabs` permission is what lets you read titles and URLs.\n\n```\nchrome.sidePanel.setPanelBehavior({ openPanelOnActionClick: true });\njs\nasync function render() {\n  const wins = await chrome.windows.getAll({ populate: true, windowTypes: ['normal'] });\n  const root = document.getElementById('root');\n  root.textContent = '';\n  wins.forEach((w, i) => {\n    const h = document.createElement('h2');\n    h.textContent = `Window ${i + 1} (${w.tabs.length})`;\n    root.append(h);\n    const ul = document.createElement('ul');\n    for (const t of w.tabs) {\n      const li = document.createElement('li');\n      li.textContent = t.title || t.url;\n      if (t.active) li.className = 'active';\n      li.onclick = async () => {\n        await chrome.windows.update(w.id, { focused: true });\n        await chrome.tabs.update(t.id, { active: true });\n      };\n      ul.append(li);\n    }\n    root.append(ul);\n  });\n}\n\nlet timer;\nconst schedule = () => { clearTimeout(timer); timer = setTimeout(render, 100); };\nfor (const ev of [chrome.tabs.onCreated, chrome.tabs.onRemoved, chrome.tabs.onUpdated,\n                  chrome.tabs.onActivated, chrome.tabs.onMoved, chrome.tabs.onAttached]) {\n  ev.addListener(schedule);\n}\nrender();\n```\n\n`panel.html` is just a `<div id=\"root\"></div>`, a little CSS and `<script src=\"panel.js\"></script>`.\n\n`tabs.onUpdated` fires many times while a page loads; without a short debounce the list flickers.`windows.getAll({ populate: true })` is your friend.\nAdd grouping and it gets genuinely useful: `chrome.tabs.group({ tabIds, createProperties: { windowId } })` plus `chrome.tabGroups.update(groupId, { title, color })` (needs the `tabGroups` permission). Grouping by domain is a few lines of `new URL(t.url).hostname`.\n\nThat's roughly where TabZipsa started. It adds one-click grouping by task (an AI only sees tab titles and domains, never page content), grouping by site without AI, a history map by site or topic, and unloading idle tabs. You can try the AI grouping 100 times without signing in, then sign in with Google for 1,000 free classifications (one-time): [https://tabzipsa.com](https://tabzipsa.com)\n\nWhat would you add to a tab list in the side panel?", "url": "https://wpnews.pro/news/a-chrome-side-panel-that-lists-tabs-from-every-window-in-60-lines-chrome-windows", "canonical_source": "https://dev.to/tabzipsa/a-chrome-side-panel-that-lists-tabs-from-every-window-in-60-lines-chromesidepanel--ng7", "published_at": "2026-12-03 04:11:02+00:00", "updated_at": "2026-12-03 04:16:53.880087+00:00", "lang": "en", "topics": ["developer-tools", "ai-products"], "entities": ["Chrome", "TabZipsa", "Google"], "also_reported_by": [], "takeaway": "chrome.windows.getAll({populate: true}) plus a 100ms debounce on tab events yields a flicker-free, always-visible cross-window tab list in about 60 lines using the chrome.sidePanel API (Chrome 114+).", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/a-chrome-side-panel-that-lists-tabs-from-every-window-in-60-lines-chrome-windows", "markdown": "https://wpnews.pro/news/a-chrome-side-panel-that-lists-tabs-from-every-window-in-60-lines-chrome-windows.md", "text": "https://wpnews.pro/news/a-chrome-side-panel-that-lists-tabs-from-every-window-in-60-lines-chrome-windows.txt", "jsonld": "https://wpnews.pro/news/a-chrome-side-panel-that-lists-tabs-from-every-window-in-60-lines-chrome-windows.jsonld"}}