mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 20:07:34 +00:00
@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.
95 lines
2.4 KiB
JSON
95 lines
2.4 KiB
JSON
{
|
|
"name": "@hanzo/observe-native",
|
|
"version": "0.1.2",
|
|
"description": "Native + desktop binding for @hanzo/observe. Instruments @hanzo/gui (Tamagui) / React Native presses and inputs, and bridges Tauri desktop, so native and desktop emit the SAME canonical Events as the web — through @hanzo/event to the ONE entry point (POST /v1/event). Same semantic hierarchy, same privacy gate, fail-soft.",
|
|
"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/observe-native"
|
|
},
|
|
"keywords": [
|
|
"analytics",
|
|
"autocapture",
|
|
"telemetry",
|
|
"semantic",
|
|
"tamagui",
|
|
"react-native",
|
|
"tauri",
|
|
"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",
|
|
"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"
|
|
}
|
|
},
|
|
"./tauri": {
|
|
"import": {
|
|
"types": "./dist/tauri.d.ts",
|
|
"default": "./dist/tauri.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/tauri.d.cts",
|
|
"default": "./dist/tauri.cjs"
|
|
}
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@hanzo/event": "workspace:^",
|
|
"@hanzo/observe": "workspace:^"
|
|
},
|
|
"peerDependencies": {
|
|
"@tauri-apps/api": ">=2",
|
|
"react": ">=19.2.8"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"react": {
|
|
"optional": true
|
|
},
|
|
"@tauri-apps/api": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "catalog:",
|
|
"happy-dom": "catalog:",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"tsup": "catalog:",
|
|
"typescript": "catalog:",
|
|
"vitest": "catalog:"
|
|
}
|
|
}
|