replayBe the first to star Star0

replay

Your pagetry it
The copy0.25 s behindHole · waiting for a snapshotRewound

This browser is too old for the recorder (Safari 15.4, Chrome 92, Firefox 90 and later).

See what your visitors saw. Without slowing them down.

ForProduct teams, support, developers
Statusv0.4.0 on npm ↗

Why

What a session recorder should not do
No.The painreplayStatus
01

The recorder freezes the page it records.

The page is read at rest, at most every 50 ms. 3.6× shorter start than rrweb.Measured
02

A 23.6 KB script for a feature visitors never see.

7.8 KB gzip, recording and sending included.Measured
03

Every visitor uploads the same stylesheets again.

What the server already holds goes as a hash.Built
04

Passwords and card numbers end up on your servers.

Masked in the core, before any module. Always.Built
05

A chunk gets lost and the replay quietly lies.

The hole is marked. Play resumes at the next snapshot.Built
06

Seeking back replays the whole session.

A checkpoint every 10 s. Seeks start from the nearest.Built
07

The replay runs the site's scripts.

Rebuilt through the DOM API, in a sandbox, without scripts.Built
08

One broken plugin kills the recording.

A module that throws is cut alone. The rest goes on.Built

Lighter

Same pages, same masking, same browser
3.6×

shorter freeze than rrweb when recording starts, on lemonde.fr.

replay7.8 KB gzip · record + send
rrweb23.6 KB gzip · record only
See the full benchmark →

How

Three calls
01Record

A snapshot, then what changed. Typed values stay on the page.

02Send

Chunks to your endpoint. A beacon on the way out.

03Play

A sandboxed copy, rebuilt node by node. Seek anywhere.

// bun add @voila.dev/replay
import { record } from "@voila.dev/replay/record";
import { connect } from "@voila.dev/replay/send";

const rec = record(window, { mask: "inputs" });
const link = connect({ endpoint: "/replay", head });
link.send(rec.snap());
setInterval(() => link.send(rec.drain()), 5000);
addEventListener("pagehide", () => link.leave(rec.drain()));
// later, wherever you watch
import { createPlayer } from "@voila.dev/replay/play";

const player = createPlayer({ root, chunks });
player.play();
player.seek(42_000); // from the nearest checkpoint

Demos

Live, in your browser

Recording sessions with rrweb? Tell us what it costs you.