Internal Design
Technical design documents explaining how rrweb was originally designed and how it works under the hood.
- Serialization — how rrweb captures a full DOM snapshot, including cross-origin iframes, canvas, and media elements.
- Incremental Snapshots — how mutations, input events, scroll, and other incremental changes are recorded after the initial snapshot.
- Replay — how recorded events are replayed with high-precision timing and minimal impact on the host page.
- Sandbox — how the replayer uses iframe sandboxing to safely replay pages without executing their scripts.