The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Loupe listing page.
Pin feedback to the live UI. Hand it to Claude.
Loupe lets product managers inspect any element on a running product, pin a comment to it, and capture a screenshot — then hand that feedback straight to Claude Code as an actionable, fully-contextualized backlog. Comments persist and re-anchor across redeploys.
📖 Read the full documentation →
This is a monorepo (npm workspaces). Every piece runs locally with no external
services — the database is embedded Postgres (PGlite), so npm install && npm run build && npm run seed && npm start is the whole setup.
Prefer to run the whole loop inside your own app? loupekit/laravel
is a Composer package that embeds the widget, stores comments in your database, gates
access with your authorization rules, serves the dashboard on your routes, and
exposes the backlog to Claude over MCP — no separate Node backend. See the
full guide.
Then open:
npm run seed>Point Claude Code at the comments:
Then: "list the open Loupe comments and work through them." Claude calls
list_comments → get_comment (request + element HTML + computed styles + the
screenshot as an image + any screen-recording URL) → rewrites the UI →
propose_change (its modified HTML/CSS, which the dashboard renders as code + a live
before/after preview for the dev team) → update_status.
Database — server/db.ts is a one-function query() seam. With DATABASE_URL set
it uses node-postgres against real/hosted Postgres; otherwise embedded PGlite on disk.
Same SQL, same $1 params.
Auth — every project has a secret. Writes require X-Loupe-User +
X-Loupe-Hmac = HMAC-SHA256(userId, secret) (the host app's server computes this and
injects it — the demo's value is precomputed by npm run seed). The dashboard and MCP
server authenticate as admin with X-Loupe-Admin = secret. Screenshot blobs are served
by unguessable id (prod: signed URLs).
Object storage — server/blobs.ts is the seam (local disk now, S3 later). The SDK
uploads a screenshot to POST /v1/blobs and stores only the returned URL on the
comment, so lists/reads stay small.
URL normalization — normalizeUrl() in @loupekit/shared strips utm_*, click ids,
and Loupe's dev params, so a comment on /checkout?utm_source=x and one on /checkout
don't fragment. Applied server-side on write and query.
The extension reuses the exact SDK core; its only difference is the screenshot source —
chrome.tabs.captureVisibleTab (real pixels), cropped to the element with redaction,
wired via the SDK's captureScreenshot override. Load it manually:
chrome://extensions → enable Developer mode → Load unpacked → select
packages/extension.pk_demo_acme), user, API base
(http://localhost:8787), and (optionally) the demo HMAC → Start Loupe on this tab.Note: the extension is validated by build + manifest/bundle checks; full in-browser E2E wasn't automated in this repo's headless setup.
Next: real cloud object storage (S3/R2) + signed URLs, project/team management UI, Postgres migrations tooling, and packaging the SDK/MCP to npm + the extension to the Chrome Web Store.
Loupe is created and maintained by Mohamed Ashraf Elsaed.
If Loupe is useful to you, a ⭐ on the repo and a connection on LinkedIn are always appreciated. For consulting or collaboration, reach out via any of the links above.
MIT © Mohamed Ashraf Elsaed