Recap

Recap

Hotjar for AI prototypes.

npm version bundle size MIT license live demo


Recap researcher panel showing a heatmap overlay

## Try the live demo Try Recap on a live prototype at **[recap-ux.com](https://recap-ux.com)**. The site itself is instrumented with Recap, so click around, then press `Alt+Shift+Y` to see your own session as a heatmap. ## Why Recap **One line of HTML.** No accounts, no keys, no dashboards to configure. Add the script tag and you're recording. **Privacy by design.** Recap sets no cookies and sends nothing by default. Data stays on the test device until you export it. Exports can still contain personal data, so treat them like any research data. **AI-ready.** Exports a structured session summary that Claude or ChatGPT can actually reason about — not just raw coordinates, but a narrative of hesitation, frustration, backtracking, and friction points. Comes with a ready-to-use prompt template. **One script tag.** Drops into Claude artefacts, Vercel previews, Framer sites, plain HTML — anywhere a ` ``` That's it. Recap starts recording silently. When you're ready to review, press `Alt+Shift+Y` to open the researcher panel. ## AI analysis export Click **"Export for AI"** in the researcher panel to get a structured JSON summary optimised for LLM analysis. Paste it into Claude with the included prompt template to get a full UX analysis covering friction points, navigation patterns, accessibility observations, and specific recommendations. The summary is a human-readable narrative of the session, not raw coordinates — an AI can reason about *"Participant hesitated for 12 seconds, then clicked an unlabelled element three times in rapid succession before backtracking"* in a way it never could with a dump of `pageX`/`pageY` values. ## In-person moderated tests When you're testing in person and need to add another participant, open the same prototype in a new browser tab. Recap creates a new session per tab, so each participant is captured separately. On a phone or tablet there's no keyboard for `Alt+Shift+Y` — hold **three fingers** on the screen for about **1.5 seconds** instead. It's a deliberately "hidden" gesture (no on-screen button), so it never shows up as something for the participant to notice or tap. The researcher panel now includes: - A `Session` help icon directly beside the label - A hover/focus tooltip with: "To add another participant, open this prototype in a new tab." - An `Open in new tab` shortcut inside the tooltip A ready-to-run moderated validation script lives at [`examples/in-person-usability-validation.md`](./examples/in-person-usability-validation.md). ## Configuration All options are `data-*` attributes on the script tag: | Attribute | Default | Description | |-----------|---------|-------------| | `data-session-name` | auto | Label for this session, e.g. `"participant-04"` | | `data-show-panel` | `"false"` | Show researcher panel on load | | `data-shortcut` | `"alt+shift+y"` | Keyboard shortcut for the researcher panel. Format: modifiers and one key joined by `+`, e.g. `"ctrl+shift+y"` | | `data-endpoint` | none | URL to POST captured events to in batches (see [Advanced](#advanced)) | | `data-strip-query-params` | `"true"` | Remove query strings from recorded URLs. Set to `"false"` to keep them | | `data-touch-trigger` | `"true"` | Hold 3 fingers on screen to open/close the panel on touch devices | | `data-touch-trigger-fingers` | `3` | Number of simultaneous touch points required | | `data-touch-trigger-hold-ms` | `1500` | Hold duration (ms) before the panel toggles | ### Keyboard shortcut not working The shortcut is matched on the physical key, but another app can still claim the key combination before the browser sees it. If `Alt+Shift+Y` does nothing: - **Browser extensions:** open `chrome://extensions/shortcuts` in Chrome and look for the same combination. Clear it or change it there. - **Other apps:** check any global hotkey tools, such as dictation, screen recording or launcher apps. - **Windows:** `Alt+Shift` is the default keyboard-language switch. If your system uses it, pick a different shortcut. To use a different key, set `data-shortcut` on the script tag, for example `data-shortcut="ctrl+shift+y"`. ## Element labelling Recap auto-detects labels from `aria-label`, `title`, `alt`, and inner text. For ambiguous elements, add explicit labels: ```html
...
``` To exclude sensitive elements from tracking: ```html
Hidden from tracking entirely
Text replaced with asterisks ``` ## Advanced ### Sending events to your own server Set `data-endpoint` on the script tag to a URL you control. Recap then posts captured events to that URL in batches, using `navigator.sendBeacon` with a `fetch` fallback. Nothing is sent unless this option is set, and the endpoint receives the same data the panel shows. ## Development ```bash git clone https://github.com/tonyarbor/recap-ux.git cd recap-ux npm install npm run dev # Watch mode with example page npm test # Run unit tests npm run build # Build dist/ bundles ``` Project structure and architecture details are in [`ARCHITECTURE.md`](./ARCHITECTURE.md). ## Contributing Contributions welcome. Please read [`CONTRIBUTING.md`](./CONTRIBUTING.md) before opening a pull request. For significant changes, open an issue first to discuss what you'd like to change. ## Licence MIT © [Tony Craig](https://www.npmjs.com/~tonyarbor) ---
Built with care for designers who want to ship better prototypes.