Most teams already collect plenty of analytics data. Very little of it ever reaches the codebase as a better user experience.
- Traditional analytics (GA4, funnels) flatten behavior into averages. A 64% bounce rate on your pricing page tells you where people left, never which sentence confused them or which button they hovered over before closing the tab.
- Session replays and heatmaps rarely survive a busy sprint. Even when you spot one awkward recording, you have no clean way to tell if it is an edge case or a recurring pattern hurting signups.
Instead of building another dashboard for humans to stare at, I asked: what if behavioral telemetry were designed from scratch to be read by AI editors like Cursor and Claude Code?
That question led to mimet — a 6.7 KB gzipped MIT tracker paired with a Remote MCP server that runs zero server-side LLMs for user projects.
Why Zero Server-Side LLMs (BYO-AI)?
To turn user behavior into a concrete UX fix, an AI needs two things: what visitors did in production and your actual source code.
If you run inference on a hosted server, you either have to upload customers' source code or pay double for AI tokens they already buy through Cursor or Claude Code. With Remote MCP (Stateless Streamable HTTP), mimet only aggregates and serves structured behavioral telemetry. Your editor pulls ranked drop-off groups, greps your local repository, and drafts targeted diffs — while your source code never leaves your machine.
The 5 MCP Tools
-
list_insights— Read previously validated findings so audits build on past learnings. -
list_behavior_groups— Rank recurring drop-off patterns by session share, conversion rate, and anomaly score. -
get_longtail_sessions— Inspect high-anomaly outlier sessions outside major groups. -
get_session_story— Inspect a representative session as a narrative or millisecond-levelformat: "timeline"paired with its Content Map. -
save_insight— Save a confirmed finding only after human approval.
Separating Behavior From Page Copy (Content Map)
Telling an editor "the visitor spent 12 seconds on #section-3 and bounced" is useless without knowing what #section-3 said at that moment. Sending full DOM text on every event, however, bloats payloads and creates privacy risks.
v2/tracker.js (6,663 B gzipped, zero dependencies, MIT) splits telemetry into two streams:
- Event stream (
/api/v1/ingest): Block exposure (active_ms, visibility %, scroll direction) and micro-behaviors (scroll reversals, >200ms hover stalls, text selection/copy signals, tab-away pauses, form abandonment/field clears/validity error types), referencing the active page state by hash (map_hash). - Content Map (
/api/v1/content-map): Masks headings, copy, and CTAs on the client, hashes the result, and uploads the map only once per unseen variant.
Exit beacons send as text/plain;charset=UTF-8 via sendBeacon / fetch(..., { keepalive: true }) so there is never a CORS preflight.
Security & Prompt-Injection Hygiene
Passing live page copy into an AI editor requires strict guardrails:
- Zero form input capture: Never touches
.value,.defaultValue,FormData, or browservalidationMessage. - No cookies or
localStorage: Uses an ephemeral per-tab session ID only. - Double PII masking: Masks emails, 10+ digit numbers, postal codes, and token-like strings on both client and server.
- Allowlist default behind login: Authenticated screens only extract elements explicitly marked with
data-mt-content="allow". - Prompt-injection isolation: Strips invisible/bidi characters, tags page copy as
untrusted_content, and instructs the MCP client to separate Log facts, Code facts (verified via localgrep), and Hypotheses.
What Happened on Our Very First Dogfooding Run
Right after deploying to https://mimet.dev, I browsed the landing page on my phone, clicked /login, and ran an audit inside Claude Code via mimet MCP. That single real-device session surfaced three bugs we completely missed locally:
- Floating widget pollution: Our bottom-right Live Inspector widget was missing
data-mt-ignore, so every event-count update created a new Content Map variant and polluted behavior groups. - Missing conversion tags: Clicking
/loginshowed up as a click, not a conversion, because our CTAs were missingdata-track-conversion. - Mobile Chrome auto-translate contamination: Because Chrome auto-translated the English page into Japanese mid-session, machine-translated copy leaked into the Content Map — which breaks local
grepmatching. We immediately shipped an auto-translate guard inv2/tracker.jsthat detectstranslated-ltr/translated-rtlclasses or mutated<html lang>and pauses text/Content Map extraction while keeping behavioral events intact.
Seeing real-device friction turn into two clean PRs inside the editor in under 30 minutes validated the exact loop we set out to build.
Try It Out
- Website (with a live in-page inspector): https://mimet.dev
- Auditable MIT tracker source: https://github.com/capmasa/mimet-public
- Free tier:
$0 / monthfor up to 3,000 sessions/month (14-day MCP lookback, unlimited raw retention with self-serve project deletion).
Feedback, critiques, and edge cases are always welcome via GitHub Issues!


