{"id":47731445,"url":"https://github.com/vaddisrinivas/gtabs","last_synced_at":"2026-04-06T00:00:38.972Z","repository":{"id":348533762,"uuid":"1196473171","full_name":"vaddisrinivas/gtabs","owner":"vaddisrinivas","description":"AI-Powered Tab Organizer for Chrome — groups your tabs using any LLM","archived":false,"fork":false,"pushed_at":"2026-04-03T12:06:02.000Z","size":11136,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T23:18:30.292Z","etag":null,"topics":["claude-code","extensions-chrome","free","gemini","llm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vaddisrinivas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-30T18:26:19.000Z","updated_at":"2026-04-03T12:06:06.000Z","dependencies_parsed_at":"2026-04-04T23:00:41.326Z","dependency_job_id":null,"html_url":"https://github.com/vaddisrinivas/gtabs","commit_stats":null,"previous_names":["vaddisrinivas/gtabs"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/vaddisrinivas/gtabs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaddisrinivas%2Fgtabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaddisrinivas%2Fgtabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaddisrinivas%2Fgtabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaddisrinivas%2Fgtabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaddisrinivas","download_url":"https://codeload.github.com/vaddisrinivas/gtabs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaddisrinivas%2Fgtabs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31454200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","extensions-chrome","free","gemini","llm"],"created_at":"2026-04-02T21:36:51.058Z","updated_at":"2026-04-06T00:00:38.949Z","avatar_url":"https://github.com/vaddisrinivas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gTabs — AI Tab Organizer for Chrome\n\n\u003cdiv align=\"center\"\u003e\n  \u003cbr/\u003e\n\n  **Your tabs are a mess. One click fixes that.**\n\n  gTabs uses any LLM to intelligently organize your Chrome tabs into color-coded groups.\n  It learns from your behavior, remembers your corrections, and gets smarter over time.\n\n  \u003cbr/\u003e\n\n  [Star on GitHub](https://github.com/vaddisrinivas/gtabs) · [Install](https://github.com/vaddisrinivas/gtabs/releases) · [Report Issue](https://github.com/vaddisrinivas/gtabs/issues)\n\n  \u003cbr/\u003e\n\u003c/div\u003e\n\n![gTabs demo](store-assets/demo-v04.gif)\n\n---\n\n## What's New in v0.4\n\n**Smart Learning** — gTabs now learns from every interaction. Corrections you make before applying count 3x. Groups you remove are remembered and avoided. Domain affinity is weighted by frequency and recency with a 14-day decay half-life.\n\n**Scheduled Re-org** — Set daily or weekly automatic re-organization at a time you choose. Wake up to perfectly organized tabs.\n\n**Pinned Groups** — Mark groups as permanent so they survive re-organization. Pin \"Comms\" once, never lose it.\n\n**Group Health** — Drift detection warns when groups become incoherent. Merge/split suggestions appear when groups overlap or grow too large.\n\n**Smarter Routing** — New tabs opened from an existing grouped tab automatically join that group. Path-level affinity means `github.com/myorg` and `github.com/trending` can map to different groups.\n\n---\n\n## Screenshots\n\n| Settings \u0026 Providers | Smart Learning | Organized Tabs |\n|:---:|:---:|:---:|\n| ![Settings](store-assets/screenshot-settings-1280x800.png) | ![Smart Learning](store-assets/screenshot-smart-learning-1280x800.png) | ![Organized](store-assets/screenshot-organized-1280x800.png) |\n\n---\n\n## Features\n\n### Organize\n\n| | |\n|---|---|\n| **One-click Organize All** | AI groups every tab in your window by topic |\n| **Ungrouped Only** | Only touches tabs not already in a group |\n| **Suggestion-first UX** | Review, rename, recolor, remove — then apply |\n| **Undo** | Instantly restores the previous tab arrangement |\n| **Smart Merge** | Pre-assigns tabs to existing groups by title similarity before calling the LLM |\n\n### Learn\n\n| | |\n|---|---|\n| **Weighted Affinity** | Tracks how often each domain is placed in each group, decays stale patterns over 14 days |\n| **Path-level Affinity** | `github.com/myorg` maps separately from `github.com/trending` for multi-tenant sites |\n| **Correction Tracking** | When you rename groups or move tabs before applying, those edits are remembered as 3x signals |\n| **Rejection Memory** | When you remove a suggested group, gTabs remembers to avoid that grouping for 30 days |\n| **Pattern Mining** | Discovers domains that are frequently grouped together and uses them as co-occurrence hints |\n| **Opener Awareness** | New tabs opened from an existing grouped tab prefer joining that group |\n\n### Maintain\n\n| | |\n|---|---|\n| **Scheduled Re-org** | Daily or weekly automatic re-organization at a configurable time |\n| **Pinned Groups** | Mark groups as permanent — they survive re-organization |\n| **Group Drift Detection** | Warns when groups become incoherent and may need refreshing |\n| **Merge/Split Suggestions** | Detects overlapping groups (\u003e60%) and oversized groups (\u003e10 tabs, \u003e5 domains) |\n| **Stale Tab Purge** | Remove inactive tabs older than a configurable threshold |\n\n### Tools\n\n| | |\n|---|---|\n| **Focus Mode** | Collapses all groups except the active one |\n| **Sort Groups** | Alphabetically sorts tabs by domain within each group |\n| **Clear Groups** | Ungroups everything in the current window |\n| **Duplicate Detection** | Finds tabs with the same URL |\n| **Zero-LLM Fast Routing** | Routes new tabs into existing groups via affinity — no API calls |\n| **Domain Rules** | Hard-wire `github.com` to `Dev`, always, skipping the LLM entirely |\n\n### Providers\n\n| Provider | Cost | Setup |\n|----------|------|-------|\n| **Groq** | Free (rate limited) | [Get key](https://console.groq.com/keys) — no credit card |\n| **Grok (xAI)** | $25 free credit | [Get key](https://console.x.ai) |\n| **OpenRouter** | Free models available | [Get key](https://openrouter.ai/keys) |\n| **Ollama** | Free (local) | [Install](https://ollama.com/download) — no key needed |\n| **Chrome AI** | Free (local) | Requires Chrome origin trial |\n| **Anthropic** | Paid | [Get key](https://console.anthropic.com/settings/keys) |\n| **OpenAI** | Paid | [Get key](https://platform.openai.com/api-keys) |\n\n---\n\n## Quick Start\n\n### Install from release\n\n1. Download `gtabs-extension.zip` from [Releases](https://github.com/vaddisrinivas/gtabs/releases)\n2. Unzip anywhere\n3. Open `chrome://extensions` → enable **Developer mode**\n4. **Load unpacked** → select the unzipped folder\n5. Pin gTabs to your toolbar\n\n### Build from source\n\n```bash\ngit clone https://github.com/vaddisrinivas/gtabs.git\ncd gtabs\nnpm install\nnpm run build    # → dist/\n```\n\n### Configure (30 seconds)\n\n1. Click gTabs icon → **Settings**\n2. Pick a provider → paste API key → pick model → **Test**\n3. Return to popup → **Organize All**\n\n---\n\n## How It Works\n\n```\nUser clicks \"Organize All\"\n  |\n  |-- Domain rules applied instantly (no LLM)\n  |\n  |-- Smart merge: title-match ungrouped tabs to existing groups\n  |\n  |-- Remaining tabs sent to LLM with:\n  |     |-- Weighted affinity   (github.com -\u003e \"Dev\" 12x, recent)\n  |     |-- Correction signals  (user moved amazon.com to \"Shopping\" 3x)\n  |     |-- Rejection signals   (AVOID: news.com in \"Dev\")\n  |     |-- Co-occurrence       ([github.com, stackoverflow.com] often together)\n  |     |-- Opener hints        (Tab 5 opened from Tab 2)\n  |     |-- History patterns    (50 past groupings summarized)\n  |     '-- Prompt: \"Group into max N groups, return JSON\"\n  |\n  |-- Response parsed -\u003e editable suggestion cards shown\n  |\n  '-- User reviews -\u003e Apply -\u003e chrome.tabs.group()\n        |-- Weighted affinity updated (frequency + timestamp)\n        |-- Path-level affinity updated for multi-tenant sites\n        |-- History recorded, costs tracked\n        '-- Corrections captured if user edited before applying\n```\n\n---\n\n## Architecture\n\n```\nPopup / Options UI\n       |\nBackground Service Worker\n   |-- LLM Provider Adapter (OpenAI, Anthropic, Groq, xAI, Ollama, Chrome AI)\n   |-- Grouper (prompt builder, parser, domain rules, title matching)\n   |-- Storage (weighted affinity, corrections, rejections, co-occurrence, history)\n   '-- Chrome APIs (tabs, tabGroups, alarms, storage)\n```\n\n| File | Role |\n|------|------|\n| `types.ts` | All interfaces — weighted affinity, corrections, rejections, settings |\n| `storage.ts` | Chrome storage wrapper — migration, decay math, summarizers |\n| `grouper.ts` | Prompt builder, JSON parser, title matching, domain rules |\n| `llm.ts` | Provider-agnostic LLM client with token counting |\n| `background.ts` | Service worker — orchestration, drift detection, scheduled re-org |\n| `popup.ts/html` | Action popup — organize, pin, correct, reject, merge/split |\n| `options.ts/html` | Settings — providers, learning toggles, schedules, pinned groups |\n\n---\n\n## Settings\n\n### Behavior\n- **Max Groups** (2–15) — limit the number of groups AI creates\n- **Auto-organize Threshold** (2–25) — trigger when ungrouped tabs exceed this\n- **Title Truncation** (20–200) — max tab title chars sent to the LLM\n- **Stale Tab Age** (1–168h) — threshold for purging inactive tabs\n- **Auto-organize** — silently group when threshold met\n- **Protect Existing Groups** — only organize ungrouped tabs\n- **Zero-LLM Fast Routing** — route new tabs via affinity, no API calls\n- **Auto-pin Web Apps** — pin Gmail, Calendar, Jira, Spotify to the left\n\n### Smart Learning\n- **Correction Tracking** — learn from your edits before applying (on by default)\n- **Rejection Memory** — remember removed groups and avoid them (on by default)\n- **Group Drift Detection** — warn when groups become incoherent\n- **Pattern Mining** — discover co-occurring domains from history\n- **Drift Threshold** (20–80%) — coherence below which a group is flagged\n\n### Scheduled Re-org\n- **Schedule** — Off / Daily / Weekly\n- **Time of Day** (0–23) — hour when scheduled re-org runs\n\n### Pinned Groups\n- Groups marked as pinned survive all re-organization\n- Pin from popup (pin icon on each suggestion card) or settings page\n\n---\n\n## Keyboard Shortcuts\n\n| Shortcut | Action |\n|----------|--------|\n| `Cmd+Shift+G` / `Ctrl+Shift+G` | Organize all tabs |\n| `Cmd+Shift+Z` / `Ctrl+Shift+Z` | Undo last grouping |\n\n---\n\n## Development\n\n```bash\nnpm install          # install dev deps\nnpm test             # run 287 tests\nnpm run test:watch   # watch mode\nnpm run build        # build -\u003e dist/\nnpm run dev          # watch + rebuild on change\n```\n\n---\n\n## Chrome Web Store Submission\n\n### HTTP localhost permission justification\n\n`manifest.json` declares `http://localhost:11434/*` in `host_permissions`. Chrome Web Store policy requires a written justification for plain-HTTP host permissions. Use the following text when submitting:\n\n\u003e \"The extension optionally connects to a locally running Ollama instance (http://localhost:11434) for private, on-device LLM inference. This is the only non-HTTPS endpoint and is entirely user-configured. No data leaves the user's machine when this provider is selected.\"\n\n### Pre-submission checklist\n\n- [ ] HTTP localhost justification included in store listing (see above)\n- [ ] `\"windows\"` permission added to `manifest.json` (required for `chrome.windows.getCurrent()` — see `reports/mv3-audit.md`)\n- [ ] Store screenshots match current UI\n- [ ] Version bumped in `manifest.json` and `package.json`\n\n---\n\n## Contributing\n\nPRs welcome. Run `npm test` before submitting. Zero runtime dependencies — keep it that way.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaddisrinivas%2Fgtabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaddisrinivas%2Fgtabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaddisrinivas%2Fgtabs/lists"}