TraceAvatar
Menu

Use case · Docs that test themselves

Docs that test themselves

Every GIF and video in your docs is rendered from the real app in CI. When the app changes, the render fails, so stale docs are a red build, not a support ticket.

See it on a real app

Recorded on SpeedyMessaging, a HelloWorld Technologies product built with TraceAvatar, by TraceAvatar's own renderer.

The docs image is build output: rendered from the dashboard by playing a guide.· with narration

The problem

Screenshots lie the day after a release

Docs media is made by hand, once. Nobody notices when a button moves or is renamed until a customer gets lost following it.

How TraceAvatar helps

  • Rendered, not recorded by hand

    trace-avatar-render plays each guide in headless Chromium and writes GIF and MP4, with long waits cut.
  • Breaks the build

    A step that can't find its element stalls the render, which exits 1 with a screenshot.
  • Suggests the fix

    --repair finds what the step means now, verifies it, and writes the fix for a person to accept.
  • Captions and alt text

    VTT captions and chapters, burned-in captions, and optional AI alt text.

Set it up

  1. 1

    Record once

    Record each docs task as a trace and keep it next to your docs.
  2. 2

    Render in CI

    Run trace-avatar-render against a preview or staging build.
  3. 3

    Publish

    The GIFs and MP4s go to your docs like any other build output.
  4. 4

    Fail and fix

    A stalled guide fails the job; --repair suggests the fix.

Teams use it for

  • Help-centre articles
  • Release notes with a GIF per change
  • README and docs site media
  • Training videos with narration
A CI step
npx trace-avatar-render guides/create-invoice.trace.json \
  --url "$PREVIEW_URL/app" --storage-state auth.json \
  --out docs/media/create-invoice.gif \
  --out docs/media/create-invoice.mp4 --captions vtt

Questions

Do the docs need the library?
No. The renderer brings its own player into the page; your docs only embed the GIF or MP4.
What about signed-in pages?
Pass a saved Playwright session with --storage-state.
Can the videos speak?
Yes, MP4s can narrate each caption with --voice, and spoken lines are cached so a re-render only pays for changed lines.

What it uses

Try it on your app today

Free and open source. Add a script tag, or install from npm.