Drop-in design-feedback widget. Click → page freezes → drag a rect → engineer pulls the diagnostic envelope. Self-hostable on localhost.
Project description
annotator
Click → page freezes → drag a rectangle → engineer's filesystem.
Drop-in design-feedback widget for any web app. Self-hostable on localhost. MIT.
pipx install vylth-annotator # or: npm i -g vylth-annotator
annotator run # opens dashboard at http://localhost:8092
Drop this into your dev site:
<script src="http://localhost:8092/w.js"
data-project="local"
data-token="local"
data-webhook="http://localhost:8092/v1/feedback"></script>
Done. Click the bubble. The page freezes. Drag a rectangle. Type one sentence. Send. The screenshot, the page URL, the clicked element selector, the console logs, the network errors, and the JS exceptions captured at the moment of the click all land on your filesystem as a .png + .md pair under ./.annot/local/.
Why this exists
Every product team has the same review loop:
Founder: "Something's off here." — screenshots → uploads → describes in text → engineer finds the pixel → fixes → screenshots back. Slow, lossy, repetitive.
Annotator collapses it: the founder is already pointing at the screen. Just let them. And because the engineer (or the AI agent helping them) gets a structured envelope with every piece of context — selector, console errors, network failures, viewport — they don't have to guess. The fix is faster and more accurate than what the screenshot-and-describe loop ever produced.
This used to live inside one specific Vylth product as a per-app feature. The loop was so good we extracted it.
How it works
[bubble click]
↓
1. dom-to-image → static PNG of the viewport ← page freezes (≈80ms)
2. PNG becomes the backdrop, you draw rects on a <canvas>
3. Comment + Send → POST diagnostic envelope to the API
↓
4. Server writes:
• SQLite row (queryable, .resolve etc.)
• .annot/<project>/<id8>-<slug>.png (with rectangles baked in)
• .annot/<project>/<id8>-<slug>.md (frontmatter + readable envelope)
• dashboard updates live at :8092
• optional: webhook fanout — Slack / Discord / Linear / custom HTTP
The diagnostic envelope is collected automatically — the user only types the comment. console.log/warn/error, fetch, XHR, window.onerror, and unhandledrejection are tapped the moment w.js loads, ring-buffered, dumped at submit time. So when the user says "this button does nothing", the engineer also sees the silent 500 the click triggered.
Three install modes
| What | When to use | |
|---|---|---|
<script> tag |
Drop one line into your dev/staging HTML. ≤30KB, vanilla, Shadow DOM isolated. | Any site you control. |
| Browser extension | Click the toolbar icon on any tab. Captures via chrome.tabs.captureVisibleTab(). |
Annotate competitor sites, Figma, Notion, your own deployed prod app — anything you didn't ship the script tag on. Sideload zip on the latest release. |
@vylth/annotator-react |
<Annotator project token metadata /> component. |
React app where you want feedback gated to dev/staging via env, with app-state metadata attached. |
For production-safe gating — keeping the widget URL strings out of dist/ rather than soft-failing on auth — see docs/INSTALL-PATTERNS.md. Custodial / PHI / financial products should combine a build-time strip with a runtime guard.
Agent integration
annotator skill install --target auto
Drops SKILL.md into the right place for the agents present in your project — .claude/skills/annotator/, AGENTS.md (Codex / OpenCode), .cursor/rules/. The agent sees new .md files in .annot/, reads the diagnostic envelope (selector, console, network, screenshot), fixes the underlying issue, and resolves the annotation by editing the frontmatter or running annotator resolve <id>.
This makes annotator the cleanest possible interface between human design feedback and AI-assisted code edits: the human points at the pixel, the agent reads the same context the engineer would, the fix lands.
Self-hosting
Default mode is fully local — SQLite under ~/.vylth-annotator/annotator.db, no Postgres needed, no signup, no account.
For a shared team instance, set ANNOTATOR_DATABASE_URL to a Postgres URL and ANNOTATOR_LOCAL_MODE=false. Optional R2 / S3-compatible image storage for shots over 500KB:
export ANNOTATOR_DATABASE_URL=postgresql+asyncpg://user:pw@host/annotator
export ANNOTATOR_R2_ACCOUNT_ID=...
export ANNOTATOR_R2_ACCESS_KEY=...
export ANNOTATOR_R2_SECRET_KEY=...
export ANNOTATOR_R2_BUCKET=annotator
pip install 'vylth-annotator[postgres,storage]'
annotator run --host 0.0.0.0 --port 8092
Per-project webhook fanout (Slack / Discord / Linear / custom HTTP) is configured on the annotator_projects.destinations row. See src/vylth_annotator/fanout.py.
Repo layout
src/vylth_annotator/ The pip-installable Python service
cli.py ─ annotator run | list | pull | resolve | init | skill
main.py ─ FastAPI app
models.py ─ SQLAlchemy (SQLite local, Postgres hosted)
sink.py ─ disk writer: PNG + Markdown per annotation
fanout.py ─ Slack / Discord / Linear / HTTP webhook dispatch
storage.py ─ R2 / S3-compatible large-image storage
templates/dashboard.html
static/w.js ─ built widget bundle, served at /w.js
skill/SKILL.md ─ agent instructions
packages/
widget/ TypeScript source for the <script>-tag widget
extension/ Chrome MV3 / Firefox extension
react/ @vylth/annotator-react
cli/ npm shim that forwards to the Python CLI
PRIVACY.md Privacy policy (linked from store listings)
STORE-SUBMISSION.md Per-store submission kit
LICENSE MIT
Building from source
git clone https://github.com/VYLTH/annotator.git
cd annotator
# widget bundle (≤30KB)
pnpm install
pnpm -F @vylth/annotator-widget build
# extension zip
pnpm -F @vylth/annotator-extension build
# → packages/extension/releases/annotator-extension-<v>.zip
# python service
python -m venv .venv && source .venv/bin/activate
pip install -e .
annotator run
Contributing
Issues and PRs welcome. Things we'd love help on:
- Vue / Svelte wrappers for mode 3
- A "Linear native" destination (auto-create issue, attach screenshot)
- Multiplayer cursors on the frozen frame
- Translations for the popup + dashboard
- Replacing
dom-to-image-morewith something even smaller for the same fidelity
Tag issues with good first issue if you're starting out.
Status
v0.0.1 — first public release. Already shipping in real Vylth product loops; APIs may shift before 1.0. Pin minor versions in production for now.
Maintenance & contact
Annotator is built and maintained by Vylth Labs.
| Curious about Vylth and our products | labs@vylth.com |
| Want to build cool tools with us | careers@vylth.com |
| See what we're about | vylth.com |
| Bugs / questions on this repo | open an issue |
| Security disclosures | labs@vylth.com (please don't open a public issue) |
License
MIT © Vylth Labs.
You can use it, fork it, ship it inside your product, host it for your team, sell consulting around it. We just ask: tell us what you're building. We love seeing it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vylth_annotator-0.0.3.tar.gz.
File metadata
- Download URL: vylth_annotator-0.0.3.tar.gz
- Upload date:
- Size: 42.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef92d77299b3082f92c5b903bad80019e83120b59204bf8c6dd03ec75bae2101
|
|
| MD5 |
f1a647002cec2703067a577ea1fbf7c3
|
|
| BLAKE2b-256 |
ebdc2c9b42d7c3365f986b5650325a03261592cc21472fcdba93508466c2f7f2
|
File details
Details for the file vylth_annotator-0.0.3-py3-none-any.whl.
File metadata
- Download URL: vylth_annotator-0.0.3-py3-none-any.whl
- Upload date:
- Size: 49.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff0eab92ddb1adcf5de3edbd71de82a9c3562d8e8bcb708bcfa815f16be49017
|
|
| MD5 |
1ef8df1383ab71d331303f2e97ae2245
|
|
| BLAKE2b-256 |
039112401e69b09cc01aafbbb80bf2b7a8bd8c7332bb466f10fa24b17a0a2657
|