{"id":50578947,"url":"https://github.com/kuzmany/browser-annotations","last_synced_at":"2026-06-05T00:30:34.760Z","repository":{"id":361199126,"uuid":"1253487063","full_name":"kuzmany/browser-annotations","owner":"kuzmany","description":"Visual web annotation overlay → markdown for AI coding agents (Claude Code, Cursor). CDP-injected, no extension, no MCP.","archived":false,"fork":false,"pushed_at":"2026-05-30T19:51:31.000Z","size":3721,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T20:08:34.201Z","etag":null,"topics":["ai-coding","annotation","browser-harness","cdp","chrome-devtools","claude-code","visual-feedback"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/kuzmany.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-05-29T14:10:12.000Z","updated_at":"2026-05-30T19:51:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kuzmany/browser-annotations","commit_stats":null,"previous_names":["kuzmany/bh-annotate","kuzmany/browser-annotations"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/kuzmany/browser-annotations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuzmany%2Fbrowser-annotations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuzmany%2Fbrowser-annotations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuzmany%2Fbrowser-annotations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuzmany%2Fbrowser-annotations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kuzmany","download_url":"https://codeload.github.com/kuzmany/browser-annotations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuzmany%2Fbrowser-annotations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33926275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ai-coding","annotation","browser-harness","cdp","chrome-devtools","claude-code","visual-feedback"],"created_at":"2026-06-05T00:30:34.065Z","updated_at":"2026-06-05T00:30:34.755Z","avatar_url":"https://github.com/kuzmany.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# browser-annotations\n\n**Click the thing you want changed. Type what's wrong. Paste into your AI coding agent.**\n\nA tiny Chrome extension that turns *\"make the button greener, move it left\"* into precise notes your\nagent can actually act on — with the **exact source file or grep-able anchors** attached.\n\nNo account. No server. No data leaves your browser.\n\n![License: MIT](https://img.shields.io/badge/License-MIT-10A37F.svg)\n![Manifest V3](https://img.shields.io/badge/Chrome-MV3-555.svg)\n![Works with](https://img.shields.io/badge/works%20with-Claude%20Code%20·%20Cursor%20·%20Codex-10A37F.svg)\n\n\u003cimg src=\"docs/demo.png\" alt=\"browser-annotations: numbered green pins on a live page + the annotations panel\" width=\"820\"\u003e\n\n\u003c/div\u003e\n\n---\n\n## Your agent edits the UI blind. This gives it eyes.\n\nYou ask for a change. The agent writes code it can't see. You squint at the browser and type a\nparagraph — *\"CTA too big, move it left, that's the wrong green.\"* Slow, lossy, repeat.\n\n**Point at the real UI instead.** Click the element → type the change → **Copy** → paste into your agent.\nEvery note ships with what pinpoints the code:\n\n- **On a dev build** — the component's **source file + line** (e.g. `src/components/Cart.tsx:48  \u003cCheckoutButton\u003e`),\n  read straight off React / Next, Vue, Svelte or Angular.\n- **Always** — the element's **opening tag, id, `data-testid`, nearby label and visible text** — the literal\n  strings your agent greps. Build-hashed class names are flagged as noise so it doesn't chase them.\n\nSo your agent edits the **exact** code, not a guess.\n\n## Install (30 seconds)\n\nNot on the Web Store yet — load it unpacked:\n\n1. Clone or download this repo.\n2. Open **`chrome://extensions`** → turn on **Developer mode** (top-right).\n3. **Load unpacked** → pick the **`extension/`** folder.\n4. Pin **browser-annotations** to your toolbar.\n\n## Use it\n\n1. **Toggle on** — click the toolbar button (or **Alt+Shift+A**). The badge turns ●.\n2. **Annotate** — hover → click an element → type the change → **Save**. Repeat.\n3. **Copy** — the panel's **Copy** (or **Alt+Shift+C**) → paste into your agent.\n4. Toggle off when done. Notes are saved per page in `localStorage` — they come back when you re-enable.\n\nWorks on any normal page. (It can't run on `chrome://`, the Web Store, or PDFs — you'll get a red `!` if you try.)\n\n### Shortcuts\n\n| Key | Action |\n|---|---|\n| **Alt+Shift+A** | toggle the overlay on/off |\n| **Alt+Shift+C** | copy all notes as **markdown** |\n| **Alt+Shift+J** | copy all notes as **JSON** |\n| **Alt+A** | pause/resume capture (clicks pass through while paused) |\n| **⌘/Ctrl+Enter** | save the note · **Esc** cancel |\n\nRebind any of them at `chrome://extensions/shortcuts`.\n\n## What your agent gets\n\nEach note leads with **how to find the element in your code**, then the change and the before-state:\n\n```markdown\nApp: react (dev build — source file:line per note; grep by data-testid / id / text, ignore hashed classes).\n\n## [#2] make this the primary button — brand green\nsource: src/components/Cart.tsx:48  \u003cCheckoutButton\u003e\n`\u003cbutton class=\"btn\" data-testid=\"checkout\" type=\"submit\"\u003e`  — text: \"Place order\"\nlabel: \"Place your order\"\ninstance: 2 of 3 matching button.btn\ndom-path (positional fallback): `main \u003e form \u003e button` · box 180x44 @640,520 · css fontSize:15px fontWeight:600 padding:12px 20px borderRadius:8px\n```\n\n- **Dev build?** Your agent opens `src/components/Cart.tsx:48` directly — no searching.\n- **Otherwise** it greps `data-testid=\"checkout\"` / `\"Place order\"` / `btn`, and the **instance** (\"2 of 3\")\n  disambiguates repeated elements.\n- The **css** is the before-state for changes like *\"make the padding smaller.\"*\n\n## Built for modern apps\n\n- **Finds your source** — on a dev build it reads the component's file:line off the framework\n  (React / Next, Vue, Svelte, Angular) so your agent opens the exact file; otherwise it ranks the grep-able\n  anchors (`data-testid` › `id` › visible text) and flags build-hashed class names (CSS-modules,\n  styled-components, minified) as noise to ignore.\n- **SPA-aware** — re-keys your notes on client-side navigation (`pushState` / `popstate` / `hashchange`),\n  so they never vanish or save under the wrong route.\n- **CSP-safe** — injected as a content script (vanilla JS, ~29 KB), no inline-eval, no framework, no build step.\n- **Minimal permissions** — `activeTab` + `scripting` + `storage`. **No `host_permissions`**, no background\n  network, no account. Notes live only in the page's `localStorage`.\n\n## Roadmap\n\nEdit/undo, resilient pin re-locate, action popup, options page, shadow-DOM \u0026 same-origin-iframe capture,\nWeb Store listing, and more — see **[extension/ROADMAP.md](extension/ROADMAP.md)**.\n\n## License\n\n[MIT](LICENSE) © kuzmany\n\u003c/content\u003e\n\u003c/invoke\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuzmany%2Fbrowser-annotations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuzmany%2Fbrowser-annotations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuzmany%2Fbrowser-annotations/lists"}