critexperimental

Comment on the prototype,
not a screenshot

Click anything on your prototype. Leave a comment. It becomes a GitHub Issue — pinned to that exact spot. No new tool to learn. Reviewers stay on the page. You triage in Issues like always.

The problem

You ship a prototype link, and the feedback comes back everywhere except the prototype: screenshots in Slack with arrows drawn on them, annotated Figma frames of a build that has already changed, a message that says "the button feels off" with no button, no page, no screen size attached.

Now the builder plays detective — which element, which deploy, which viewport? — and the feedback itself lives in a chat thread where nothing is tracked, nothing is resolved, and everything is forgotten by the next deploy. The review tools that do solve this bring their own database, their own dashboard, and another account for every stakeholder.

Crit's take: the prototype is already the shared surface, and GitHub is already the tracker. Comments should live on the element itself — and land where the work happens.

What is Crit

Crit lets anyone leave a comment pinned to a real element on your deployed prototype — the actual button, the actual heading, an image, or the page background itself — instead of annotating screenshots in Slack or Figma. Every comment lands in your repo as a GitHub Issue carrying the element selector, the exact click position, the viewport, and the commit SHA of that exact deploy.

Comments show up as GitHub Issues. Close an issue to resolve a pin. Label one agent-fix and a coding agent can implement the change and open a PR.

✎

Try it here

Press c or tap the comment button, then pin the sidebar, chart, stats, or empty background. Pins land exactly where you clicked.

app.arbor.dev/overview
Arbor
Good morning, Maya
3 due today
Shipped this week
24▲ 18%
In review
7
Cycle time
2.4d▼ 0.6
Feb
Mar
Apr
May
Jun
Jul
press c or tap the comment button — sidebar, chart, nav, or empty background
①

Add Crit to your site

Two steps. About a minute. Same shared app for every prototype — install it once per repo, not once per team.

1

Install the Crit GitHub App

One click. Grants Issues: read & write only on the repos you pick — nothing else.

Install Crit on your repo

New prototype repo later? Install again on that repo. You never create a new app.

2

Add one line to your deploy

Pick how your site gets to GitHub Pages:

GitHub Actionsrecommended

Add between your build step and upload-pages-artifact:

- uses: hvelaayutham/crit/packages/action@main with: dir: ./dist

Change ./dist if your built site lives elsewhere. Full workflow: quick-start.yml

Plain HTMLno workflow

Paste before </body> in every HTML page:

<script src="https://cdn.jsdelivr.net/gh/hvelaayutham/crit@main/packages/widget/dist/crit.js" defer data-repo="your-org/your-repo"></script>

Replace your-org/your-repo with the repo whose Issues store the pins.

Then deploy and share the Pages URL.

Reviewers press c, click, type, send. Done. Stuck? Run npx crit-setup for a guided walkthrough.

✎

For reviewers

Zero setup. Open the prototype link your teammate shared.

STEP 1
Open the link
Prototype loads with any existing pins visible
STEP 2
Press c
Or tap the comment bubble — enters comment mode
STEP 3
Click
Any button, image, section, or empty background
STEP 4
Type → Comment
Opens a GitHub Issue pinned to that spot

First comment only: sign in with GitHub (SSO works). After that, just click and type. Press esc to exit comment mode.

How it works

A widget on your Pages deploy, a shared GitHub App for sign-in, and Issues as storage. No database, no dashboard.

flow
reviewer clicks element ──▶ GitHub Issue (+ selector, viewport, SHA) │ label: agent-fix (optional) ▼ coding agent locates component ──▶ PR ──▶ "Fixes #N"
Widget
One script tag injected at deploy. Frosted-glass UI in shadow DOM — won’t clash with your CSS.
GitHub App
Shared crit-review app. Reviewers sign in once; comments post as Issues on repos you installed it on.
Action
Injects the tag into every HTML file and stamps repo + commit SHA automatically.

Self-hosting the OAuth relay or building your own GitHub App? See docs/SPEC.md.

📍

Pins as issues

Each pin is one GitHub Issue: the comment on top, a machine-readable block below. Closing the issue resolves the pin; issue comments are the thread.

issue #42 · you/your-proto
The CTA feels lost below the fold — try it inside the hero?
▸ 📍 Pin metadata
{ "crit": 1, "page": "/checkout/", "anchor": { "css": "main > section.hero button.btn-primary", "offset": { "xPct": 92.1, "yPct": 8.4 }, … }, "viewport": { "w": 1440, "h": 900 }, "commit": "9f31c2a" }

The widget captures five anchoring strategies per pin (explicit data-crit-id, unique id, stable-class CSS path, nth-of-type path, text fingerprint — images and videos anchor via alt text or filename) and tries them in order of reliability on each visit. The offset field records where inside the element the reviewer clicked, so the pin renders at that exact spot. If an element disappears in a later deploy, its pin moves to the panel's Unanchored list — it never floats on the wrong element.

FAQ

New prototype repo?
Install the app on it and add the same workflow line. One shared app, many repos.
Do reviewers need accounts?
Yes — a GitHub account. They sign in once per browser.
Private repos?
Supported. Install the app on the repo; reviewers need access to both the repo and the Pages site.
Something broken?
Run npx crit-setup for a guided walkthrough, or open an issue.
⟳

The agent loop

Optional but the fun part: label any pin agent-fix and a coding agent implements the change and opens a PR.

1
Copy the workflow
Drop examples/agent-fix.yml into .github/workflows/ and add ANTHROPIC_API_KEY to the repo secrets.
2
Label a pin
On any pin's issue, add the agent-fix label. The agent parses the pin metadata, locates the component via the anchor, implements the change, and opens a PR with Fixes #N.
3
Merge and redeploy
The pin resolves on the same URL the reviewer already has open. Designer comments in the morning, reviews the fix after lunch.
the loop
❯ gh issue edit 42 --add-label agent-fix
◆ agent parsing pin metadata… anchor resolved to Hero.tsx
◆ moving CTA into hero section…
✓ PR #43 opened — "Move CTA into hero (Fixes #42)"