TraceAvatar
Menu

Product · GIF and video

Docs GIFs that fail when the app changes

trace-avatar-render plays a guide on your real app in headless Chromium and writes a GIF or an MP4. A stalled guide fails the render, so a GIF that no longer matches the app fails CI instead of quietly going stale.

See it on a real app

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

Want videos and GIFs like these for your app, made for you? Get a quote →

Plain: the page and the guide.
--frame browser: a window around it.
--camera: it zooms in on each step.
--captions burn: the words on the frames.
Save as video: the GIF is made in the browser, from the guide playing.

How it works

Open source, MIT licensed, zero dependencies. Install it from npm or a CDN.

Render in CI
npx trace-avatar-render invoice.trace.json \
  --url http://localhost:3000/app \
  --out invoice.gif --out invoice.mp4 \
  --frame browser --camera --scale 2 --captions both
  1. 1

    Play

    The guide runs on your real app in headless Chromium, signed in with a saved Playwright session if needed.
  2. 2

    Capture

    Frames come from Chromium's screencast on the same clock as the player's events.
  3. 3

    Cut

    The middle of each long wait (loading, saving) is cut, so the video shows the work, not the spinner.
  4. 4

    Compose

    Optionally a browser window, a camera that zooms on each action, captions, title and end cards. Then GIF or MP4.

What you get

  • Fails loudly

    A stalled guide fails the render with a screenshot. --allow-stall renders it anyway when you mean to.
  • Polish built in

    --frame browser, --camera zooms, burned-in or VTT captions with chapters, a poster, title and end cards.
  • Narration

    MP4s can speak each caption with --voice: an AI gateway, an OpenAI-compatible speech server, or macOS say, offline and free.
  • Private by default

    Masked fields only ever get dots; --blur and data-trace-blur blur what you choose.
  • Optional AI checks

    --qa flags error messages, empty states or personal data in frames; --alt writes alt text. Nothing calls a model without --ai.
  • Or in the browser

    No server: saveVideo() from trace-avatar/export records the guide on the page and gives a GIF or a video.

Which to use

trace-avatar-renderSave as video (browser)
Runsyour machine or CI, headlessthe viewer's browser, after they share the tab
OutputGIF, MP4, VTT, posterGIF, or WebM (MP4 in Safari)
Full page loadsyesno: the recording page goes away
Polishwindow frame, camera, cards, narrationthe page as it is; long waits cut
Size in a pagenothing: a CLI2.5 KB, plus 5 KB for the GIF encoder

Questions

Does it need the trace-avatar library in my app?
No. The renderer brings its own player into the page. Your app only has to load at the URL you give it.
Can it render Do it for me?
Yes, with --mode perform and --allow-perform: it really clicks and types, so use a sandbox account.
Can I call it from code?
Yes: render() from trace-avatar-render returns the files written, the length, and the cuts.

More of TraceAvatar

Free and open source

Everything on this page works today, on your machine and in your CI.