Files
zeekay 75d32ffea4 observe: a page view reports its engaged time as $pageleave; replay compresses what would not fit
@hanzo/observe 0.1.15 times every page view: active milliseconds (visible,
focused, input in the last 60 s), each watched section's time in view, the
furthest scroll and the share of the page it showed, and the load's web vitals.
It reports in segments, when the page is hidden, unloaded, routed away from or
the engine stops, so the time on a view is the sum of $active_ms over its
$view_id and a phone that never fires pagehide still reports. A hidden or
unloaded page's segment goes at once by beacon; a route change's is filed under
the page left. deliver() is the one delivery every binding makes (React,
Svelte, Tauri).

@hanzo/event 0.3.64: capture() takes the page an event belongs to.

@hanzo/replay 0.1.4 gzips a full snapshot, and any mutation or style rule over
4 KiB, in the cv 2024-10 encoding the insights player decodes. The landing's
snapshot is 1.32 MB raw and was refused by the 512 KiB ingest; it now goes as
314 KB. /pricing, 541 KB raw, goes as 167 KB. The privacy tests read payloads as
the player does, so an absence cannot pass for being compressed.

The observe family names its siblings workspace:^ so a release of one is built
against the other.
2026-10-30 06:51:25 -07:00

74 lines
2.1 KiB
JSON

{
"name": "@hanzo/replay",
"version": "0.1.4",
"description": "Hanzo Replay — browser session-replay recorder. Wraps rrweb to capture a replayable DOM movie, batches it, and POSTs it to the ONE ingest endpoint (POST /v1/event/replay) attributed by a publishable pk- key. Masks at CAPTURE time using @hanzo/observe's redaction policy — inputs masked by default, marked subtrees excluded, credential-bearing URLs redacted through @hanzo/event, and no recording at all on OAuth callback routes. Orthogonal to @hanzo/observe: semantic capture there, pixels here.",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public",
"scope": "@hanzo"
},
"author": "Hanzo AI <[email protected]>",
"license": "MIT",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"sideEffects": false,
"files": [
"dist",
"src",
"README.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/hanzoai/ui.git",
"directory": "pkg/replay"
},
"keywords": [
"session-replay",
"rrweb",
"replay",
"analytics",
"telemetry",
"privacy",
"observability",
"hanzo"
],
"scripts": {
"prepublishOnly": "node ../../scripts/guard-publish.mjs",
"build": "tsup && tsc --emitDeclarationOnly --declaration --outDir dist && node ../../scripts/dts.mjs",
"dev": "tsup --watch",
"test": "vitest run",
"typecheck": "tsc --noEmit -p tsconfig.json",
"clean": "rm -rf dist"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"dependencies": {
"@hanzo/event": "workspace:^",
"@hanzo/observe": "workspace:^",
"fflate": "^0.8.2"
},
"peerDependencies": {
"rrweb": ">=2"
},
"devDependencies": {
"@types/node": "catalog:",
"happy-dom": "catalog:",
"rrweb": "catalog:",
"tsup": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
}
}