# @amplitude/rrweb-record

> This package contains all the record related code in rrweb. See the [guide](../../guide.md) for more info on rrweb.

Latest version **2.1.3** (published 2026-07-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @amplitude/rrweb-record
pnpm add @amplitude/rrweb-record
yarn add @amplitude/rrweb-record
bun add @amplitude/rrweb-record
```

## 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.3 |
| Published | 2026-07-01 |
| First published | 2024-10-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.7 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 |
| Keywords | rrweb, @rrweb/record |

## Links

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

## Dependencies (2)

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

## Recent versions

- 2.1.3 (latest) — 2026-07-01
- 2.0.0-alpha.25 (alpha) — 2024-10-23
- 2.1.2 — 2026-06-30
- 2.1.1 — 2026-05-12
- 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
- … 5 more at https://npm.io/package/@amplitude/rrweb-record/versions

## README

# @rrweb/record

This package contains all the record related code in rrweb.
See the [guide](../../guide.md) for more info on rrweb.

## Installation

```bash
npm install @rrweb/record
```

## Usage

```js
import { record } from '@rrweb/record';

record({
  emit(event) {
    // send event to server
  },
});
```

## Notes

Currently this package is really just a wrapper around the `record` function in the main `rrweb` package.
All `record` related code will get moved here in the future.

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