@runtimevault/replay-engine
v1.0.4
Published
RuntimeVault replay engine — restore captured runtime state for local bug reproduction
Maintainers
Readme
@runtimevault/replay-engine
Restores a captured RuntimeVault snapshot into a local browser context so bugs can be reproduced offline.
Install
npm install @runtimevault/replay-engine
# or
pnpm add @runtimevault/replay-engineQuick start
import { restoreSnapshot } from '@runtimevault/replay-engine';
import type { Snapshot } from '@runtimevault/shared';
const snapshot = await fetch('/.runtimevault/replays/snap_xxx.json').then((r) => r.json());
const result = restoreSnapshot(snapshot as Snapshot);
console.log('Restored layers:', result.restored);The full snapshot is also exposed on window.__RV_REPLAY__ for framework adapters.
CLI
Most users should prefer the CLI:
npx @runtimevault/cli replay snap_xxxLinks
License
MIT
