@runtimevault/core
v1.0.4
Published
Framework-agnostic RuntimeVault SDK — capture runtime state at the moment of failure
Maintainers
Readme
@runtimevault/core
Framework-agnostic RuntimeVault SDK. Captures the complete runtime state at the moment of failure so you can replay production bugs locally.
Install
Works the same on macOS, Windows, and Linux (any modern Node / package manager). The browser bundle also runs in Chrome, Firefox, Safari, and Edge.
npm install @runtimevault/core
# or
pnpm add @runtimevault/core
# or
yarn add @runtimevault/coreQuick start
import { RuntimeVault } from '@runtimevault/core';
RuntimeVault.init({
apiKey: 'rv_live_...',
environment: 'production',
// Optional: capture only a fraction of errors (0–1). Default 1 = all.
// sampleRate: 0.1,
});That is enough for automatic capture on window.onerror and unhandled promise rejections.
Features
- Call stack, variables, network buffer, console history, DOM, and environment
- Privacy masking before data leaves the browser
- Gzip compression and low overhead capture path
- sampleRate — drop a fraction of captures client-side to control volume
- Pluggable transports (cloud ingest or local)
Manual capture
import { RuntimeVault } from '@runtimevault/core';
try {
risky();
} catch (error) {
RuntimeVault.captureException(error);
throw error;
}Replay
npx @runtimevault/cli login
npx @runtimevault/cli replay <snapshot-id>Framework adapters
| Package | Use case |
|---|---|
| @runtimevault/react | React provider + ErrorBoundary |
| @runtimevault/next | Next.js App Router |
| @runtimevault/cli | Local replay CLI |
Links
License
MIT
