@uptimizr/replay 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/AGENTS.md +57 -0
  2. package/LICENSE +201 -0
  3. package/README.md +96 -0
  4. package/dist/drivers/babylon-lite.d.ts +134 -0
  5. package/dist/drivers/babylon-lite.d.ts.map +1 -0
  6. package/dist/drivers/babylon-lite.js +167 -0
  7. package/dist/drivers/babylon-lite.js.map +1 -0
  8. package/dist/drivers/babylon.d.ts +99 -0
  9. package/dist/drivers/babylon.d.ts.map +1 -0
  10. package/dist/drivers/babylon.js +176 -0
  11. package/dist/drivers/babylon.js.map +1 -0
  12. package/dist/drivers/playcanvas.d.ts +122 -0
  13. package/dist/drivers/playcanvas.d.ts.map +1 -0
  14. package/dist/drivers/playcanvas.js +206 -0
  15. package/dist/drivers/playcanvas.js.map +1 -0
  16. package/dist/drivers/three.d.ts +127 -0
  17. package/dist/drivers/three.d.ts.map +1 -0
  18. package/dist/drivers/three.js +194 -0
  19. package/dist/drivers/three.js.map +1 -0
  20. package/dist/fetchSession.d.ts +43 -0
  21. package/dist/fetchSession.d.ts.map +1 -0
  22. package/dist/fetchSession.js +103 -0
  23. package/dist/fetchSession.js.map +1 -0
  24. package/dist/global.d.ts +62 -0
  25. package/dist/global.d.ts.map +1 -0
  26. package/dist/global.js +95 -0
  27. package/dist/global.js.map +1 -0
  28. package/dist/index.d.ts +14 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +11 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/player.d.ts +35 -0
  33. package/dist/player.d.ts.map +1 -0
  34. package/dist/player.js +104 -0
  35. package/dist/player.js.map +1 -0
  36. package/dist/reconstruct.d.ts +74 -0
  37. package/dist/reconstruct.d.ts.map +1 -0
  38. package/dist/reconstruct.js +266 -0
  39. package/dist/reconstruct.js.map +1 -0
  40. package/dist/types.d.ts +39 -0
  41. package/dist/types.d.ts.map +1 -0
  42. package/dist/types.js +2 -0
  43. package/dist/types.js.map +1 -0
  44. package/dist/uptimizr-replay.global.js +71 -0
  45. package/llms.txt +17 -0
  46. package/package.json +100 -0
package/llms.txt ADDED
@@ -0,0 +1,17 @@
1
+ # @uptimizr/replay
2
+
3
+ > Re-drives a captured session in the user's own 3D scene. Framework-agnostic core with engine
4
+ > drivers behind subpaths; a driver only reads/writes the scene and never emits analytics.
5
+
6
+ ## Docs
7
+
8
+ - [Package reference](./README.md): usage, the `ReplayPlayer` / `ReplayDriver` design, Babylon driver.
9
+ - [Agent guide](./AGENTS.md): rules and canonical usage for AI agents.
10
+ - [Integration & API reference](https://github.com/RaananW/Uptimizr/blob/main/docs/integration.md): the replay event stream and endpoints.
11
+ - [Architecture Decision Records](https://github.com/RaananW/Uptimizr/tree/main/docs/adr): replay on the user's own infra (0006), NDJSON streaming (0015).
12
+
13
+ ## Key exports
14
+
15
+ - `ReplayPlayer` — `play` / `pause` / `seek(ms)` / `stop`, driven by a pure `update(elapsedMs)`.
16
+ - `fetchSessionEvents(options)` — load an ordered session stream from the collector.
17
+ - `createBabylonReplayDriver(options)` (subpath `./babylon`) — the Babylon engine driver.
package/package.json ADDED
@@ -0,0 +1,100 @@
1
+ {
2
+ "name": "@uptimizr/replay",
3
+ "version": "0.1.0",
4
+ "description": "Framework-agnostic session-replay core + Babylon driver. Re-drives a captured session in the user's own scene.",
5
+ "keywords": [
6
+ "uptimizr",
7
+ "analytics",
8
+ "3d",
9
+ "session-replay",
10
+ "replay",
11
+ "heatmap",
12
+ "privacy"
13
+ ],
14
+ "license": "Apache-2.0",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/RaananW/Uptimizr.git",
18
+ "directory": "oss/packages/replay"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/RaananW/Uptimizr/issues"
22
+ },
23
+ "homepage": "https://github.com/RaananW/Uptimizr/tree/main/oss/packages/replay#readme",
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "type": "module",
28
+ "sideEffects": false,
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/index.d.ts",
32
+ "import": "./dist/index.js"
33
+ },
34
+ "./babylon": {
35
+ "types": "./dist/drivers/babylon.d.ts",
36
+ "import": "./dist/drivers/babylon.js"
37
+ },
38
+ "./babylon-lite": {
39
+ "types": "./dist/drivers/babylon-lite.d.ts",
40
+ "import": "./dist/drivers/babylon-lite.js"
41
+ },
42
+ "./three": {
43
+ "types": "./dist/drivers/three.d.ts",
44
+ "import": "./dist/drivers/three.js"
45
+ },
46
+ "./playcanvas": {
47
+ "types": "./dist/drivers/playcanvas.d.ts",
48
+ "import": "./dist/drivers/playcanvas.js"
49
+ }
50
+ },
51
+ "files": [
52
+ "dist",
53
+ "README.md",
54
+ "LICENSE",
55
+ "AGENTS.md",
56
+ "llms.txt"
57
+ ],
58
+ "peerDependencies": {
59
+ "@babylonjs/core": "^7.0.0 || ^8.0.0 || ^9.0.0",
60
+ "@babylonjs/lite": "^1.0.1",
61
+ "playcanvas": "^2.0.0",
62
+ "three": ">=0.150.0"
63
+ },
64
+ "peerDependenciesMeta": {
65
+ "@babylonjs/core": {
66
+ "optional": true
67
+ },
68
+ "@babylonjs/lite": {
69
+ "optional": true
70
+ },
71
+ "playcanvas": {
72
+ "optional": true
73
+ },
74
+ "three": {
75
+ "optional": true
76
+ }
77
+ },
78
+ "dependencies": {
79
+ "zod": "^4.1.5",
80
+ "@uptimizr/schema": "0.1.0",
81
+ "@uptimizr/sdk-core": "0.1.0"
82
+ },
83
+ "devDependencies": {
84
+ "@babylonjs/core": "^9.13.0",
85
+ "@babylonjs/lite": "^1.2.0",
86
+ "esbuild": "^0.25.0",
87
+ "playcanvas": "2.19.7",
88
+ "three": "^0.184.0",
89
+ "vitest": "^4.1.9"
90
+ },
91
+ "scripts": {
92
+ "build": "tsc -p tsconfig.json && pnpm run bundle:global",
93
+ "bundle:global": "esbuild src/global.ts --bundle --format=iife --global-name=UptimizrReplay --platform=browser --target=es2022 --minify --legal-comments=none --banner:js=\"/* @uptimizr/replay standalone bundle (global) — Apache-2.0. Inject via a <script> tag into any page (e.g. playground.babylonjs.com); exposes window.UptimizrReplay. Bundles the Babylon Vector3 it constructs; the host page owns the scene. */\" --outfile=dist/uptimizr-replay.global.js",
94
+ "dev": "tsc -p tsconfig.json --watch",
95
+ "typecheck": "tsc -p tsconfig.json --noEmit",
96
+ "test": "vitest run",
97
+ "lint": "eslint .",
98
+ "clean": "rm -rf dist"
99
+ }
100
+ }