# @amplitude/rrdom

> `rrdom` is a virtual dom library that is used by `rrweb` to replay DOM mutations. It is a standalone library that can be used to create a virtual dom tree and apply patches to the real dom. It's used in `rrweb` to optimize replay performance especially wh

Latest version **2.1.2** (published 2026-06-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @amplitude/rrdom
pnpm add @amplitude/rrdom
yarn add @amplitude/rrdom
bun add @amplitude/rrdom
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.1.2 |
| Published | 2026-06-30 |
| First published | 2023-10-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2 |
| Maintainers | curtisbliu, kelson.warner, sdk.dev, eric_amplitude, daniel-graham-amplitude, jjwang123 |

## Links

- npm: https://www.npmjs.com/package/@amplitude/rrdom
- Repository: https://github.com/amplitude/rrweb
- Homepage: https://github.com/rrweb-io/rrweb/tree/main/packages/rrdom#readme
- Issues: https://github.com/rrweb-io/rrweb/issues
- npm.io page: https://npm.io/package/@amplitude/rrdom

## Dependencies (1)

- [@amplitude/rrweb-snapshot](https://npm.io/package/@amplitude/rrweb-snapshot.md) ^2.1.2

## Recent versions

- 2.1.2 (latest) — 2026-06-30
- 2.0.0-alpha.12 (alpha) — 2023-10-24
- 2.1.0 — 2026-05-11
- 2.0.0-alpha.40 — 2026-05-04
- 2.0.0-alpha.39 — 2026-03-31
- 2.0.0-alpha.38 — 2026-03-30
- 2.0.0-alpha.37 — 2026-03-27
- 2.0.0-alpha.36 — 2026-03-18
- 2.0.0-alpha.35 — 2026-01-06
- 2.0.0-alpha.34 — 2025-12-15
- 2.0.0-alpha.33 — 2025-10-07
- 2.0.0-alpha.32 — 2025-07-09
- 2.0.0-alpha.31 — 2025-07-07
- 2.0.0-alpha.30 — 2025-06-12
- 2.0.0-alpha.29 — 2025-03-24
- … 16 more at https://npm.io/package/@amplitude/rrdom/versions

## README

# rrdom

`rrdom` is a virtual dom library that is used by `rrweb` to replay DOM mutations. It is a standalone library that can be used to create a virtual dom tree and apply patches to the real dom. It's used in `rrweb` to optimize replay performance especially when seeking.

See the [guide](../../guide.md) for more info on rrweb.

---
_Source: https://npm.io/package/@amplitude/rrdom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
