Docs
Introduction
What TraceAvatar is and which piece you need.
TraceAvatar plays a trace, a list of steps in plain JSON, over your real page. In Show me a cursor with a name badge points at each element and captions what to do, without touching the app. In Do it for me the same trace really clicks, types and submits.
<script src="https://cdn.jsdelivr.net/npm/trace-avatar/dist/trace.min.js"></script>
<script>
TraceAvatar.createTrace({
trace: {
version: 1,
avatar: { name: 'Sarah · Sales' },
steps: [
{ type: 'click', target: { role: 'button', name: 'New invoice' }, say: 'Start from New invoice.' },
{ type: 'type', target: { role: 'textbox', name: 'Customer' }, text: 'Ada Stores' },
{ type: 'click', target: { text: 'Send invoice' }, say: 'Send it — done.' },
],
},
controls: true,
autoplay: true,
});
</script>Which piece do I need?
| You want to… | Use | Read |
|---|---|---|
| Show a guide on one page | trace-avatar | Install |
| Offer guides across the whole app | trace-avatar/auto (one script tag) | Guides for your whole app |
| Let the guide do the task | trace-avatar/perform | Do it for me |
| Make guides without JSON | the studio (mount’s record option) | Recording |
| GIFs and MP4s for docs, in CI | trace-avatar-render | GIF and video |
| Fix guides when the app changes | trace-avatar/repair, --repair | Repair |
All docs
InstallA script tag or npm, Show me in five linesReact and the custom element<TraceAvatar>, useTrace and <trace-avatar>The trace formatSteps, targets, captions and the schemaGuides for your whole appOne script tag: launcher, buttons and linksPages and waitsMulti-page guides that wait for your appDo it for mePerform mode: clicks, typing, hand-offsRecordingThe studio in your app, and the recorder APIAI suggestionsCaptions, waits and titles through your backendGIF and videotrace-avatar-render, and Save as video in the browserRepairFix a broken step in CI or in the appOptions and eventsEvery option, event and controller methodThemingCSS variables for colours, fonts and layers