Product · Do it for me
The same guide, but it does the work
The cursor really clicks, types, picks options and submits while the viewer watches. One trace plays both ways, so you never keep two copies of a guide.
See it on a real app
Recorded on DutyCaptain and SpeedyMessaging, HelloWorld Technologies products built with TraceAvatar, by TraceAvatar's own renderer.
How it works
Open source, MIT licensed, zero dependencies. Install it from npm or a CDN.
import { createTrace } from 'trace-avatar/perform';
const helper = createTrace({
trace: '/tours/invoice.trace.json',
navigate: (path) => router.push(path),
prepare: async (requires) => requires.includes('signed-in') ? isSignedIn() : true,
onReset: () => resetSandbox(),
});
helper.on('handoff', ({ step }) => console.log('viewer types', step.target?.name));
helper.play();- 1
Prepare
prepareruns before every start: sign into the sandbox, check the session. It can stop the guide with a message. - 2
Act
Clicks, typing, keys and hovers happen on the page. Values are set the way frameworks notice: the native setter, then an input event. - 3
Hand off
A masked field stops the guide: “Your turn: type in “Password”, then press play”. It never knows the text. - 4
Wait for the app
Steps withuntilwait for “Saved” instead of racing your app, and the guide carries on after full page loads.
What you get
Framework-aware input
React, Vue and Svelte see the values. A select picks the option whose text you typed; rich-text editors get insertText; Enter in a field submits the form.Never learns a password
Masked fields are handed to the viewer, and the trace only ever holds dots.Checkpoints
If the viewer steps in, play goes on from the next step markedcheckpoint, since the page may have moved on. It never seeks backwards.Survives page loads
WithresumeKeya guide created on the next page within ten minutes picks up where it was.Asks first from a link
Do it for me from a shared link always asks “Start · Show me instead · Cancel”. A link alone never makes your app act.Made for sandboxes
Point it at sandbox or demo data: a trace can click anything the page lets it.
Show me and Do it for me, side by side
| Show me | Do it for me | |
|---|---|---|
| Touches the app | never: click-through overlay | clicks, types, presses keys, hovers |
| Typed text | shown in a chip | typed into the field |
| Masked fields | shown as ••• | handed to the viewer |
| Viewer steps in | pauses; resumes where it was | pauses; resumes at the next checkpoint |
| Use it on | any page | sandbox or demo data |
Questions
Is it safe to let a guide act on my app?
It can only do what the page lets any user do, and only guides you ship can play. Use it with sandbox or demo data, and use prepare to check the session first.
How much bigger is it than Show me?
Perform mode is a separate 15 KB entry (player plus hands). Pages that only need Show me never load it.
Can I use it from React or the custom element?
Yes: pass
performer={createPerformer} to <TraceAvatar mode="perform">, or set the element's hooks property.More of TraceAvatar
Free and open source
Everything on this page works today, on your machine and in your CI.