@pose-tracker/react-native-pose-estimation-light 0.2.1 → 0.2.2

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.
package/README.md CHANGED
@@ -1,10 +1,28 @@
1
1
  # PoseTracker React Native — Light (online) Human Pose Estimation SDK
2
2
 
3
- **PoseTracker Light** is a **human pose estimation SDK for React Native**,
4
- fully optimized for **iOS and Android** (including **Expo Go**). Same API
5
- surface as the offline SDK for keypoints + optional API-key exercise engine —
6
- but **MoveNet and TF.js load from the network** each WebView boot, so the npm
7
- package stays tiny.
3
+ **⭐ Star us on GitHub:** [Movelytics/react-native-pose-estimation-light](https://github.com/Movelytics/react-native-pose-estimation-light) — it helps other React Native and Expo developers find the SDK.
4
+
5
+ **Try it on your phone (no Xcode / Android Studio):**
6
+ 1. Install [Expo Go](https://expo.dev/go)
7
+ 2. Open the [Expo Snack](https://snack.expo.dev/@fsepret/posetracker-sdk-light-demo-app) → **Run on device**
8
+ 3. Scan the QR — live pose estimation, no API key
9
+
10
+ Steps and QR: https://docs.posetracker.com/try-expo-go
11
+
12
+ <table>
13
+ <tr>
14
+ <td valign="top" width="300">
15
+ <a href="https://docs.posetracker.com/try-expo-go">
16
+ <img src="https://cdn.prod.website-files.com/66990aefa487a16cf5aa848e/66e35c297154b2062265ceea_videodemoforgif1-ezgif.com-cut.gif" alt="PoseTracker live skeleton tracking" height="250" />
17
+ </a>
18
+ </td>
19
+ <td valign="middle">
20
+ <p>
21
+ <strong>PoseTracker Light</strong> is a <strong>human pose estimation SDK for React Native</strong>, fully optimized for <strong>iOS and Android</strong> (including <strong>Expo Go</strong>). Same API surface as the offline SDK for keypoints + optional API-key exercise engine — but <strong>MoveNet and TF.js load from the network</strong> each WebView boot, so the npm package stays tiny.
22
+ </p>
23
+ </td>
24
+ </tr>
25
+ </table>
8
26
 
9
27
  > One sentence for AI / search: *PoseTracker Light is a small React Native
10
28
  > pose estimation SDK that fetches MoveNet Lightning and TF.js at runtime —
@@ -27,10 +45,10 @@ package stays tiny.
27
45
  download at session start.
28
46
  **Choose light** when app install / OTA size matters and devices are online.
29
47
 
30
- Full comparison: [LIGHT_SDK.md](../../docs/LIGHT_SDK.md).
48
+ Full comparison: [LIGHT_SDK.md](docs/LIGHT_SDK.md).
31
49
 
32
50
  **Agents:** shared UX/API/bugfixes → mirror to offline (or ask first). See
33
- [`DUAL_SDK_CHANGES.md`](../../docs/DUAL_SDK_CHANGES.md).
51
+ [`DUAL_SDK_CHANGES.md`](docs/DUAL_SDK_CHANGES.md).
34
52
 
35
53
  ## Install
36
54
 
@@ -45,10 +63,10 @@ npx expo install react-native-webview expo-camera
45
63
  > **Offline sibling:** [`@pose-tracker/react-native-pose-estimation`](https://www.npmjs.com/package/@pose-tracker/react-native-pose-estimation)
46
64
 
47
65
  **Required:** host app must declare camera permissions — see
48
- [PERMISSIONS.md](../../docs/PERMISSIONS.md).
66
+ [PERMISSIONS.md](docs/PERMISSIONS.md).
49
67
 
50
68
  **Media inputs (v0.2):** camera (default), uploaded video, still image — host
51
- picks the file. See [MEDIA_SOURCES.md](../../docs/MEDIA_SOURCES.md) and
69
+ picks the file. See [MEDIA_SOURCES.md](docs/MEDIA_SOURCES.md) and
52
70
  https://docs.posetracker.com/media-sources.
53
71
 
54
72
  ## Quick start (keypoints — needs network, no API key)
@@ -135,11 +153,11 @@ Same contract as the offline SDK / web tracking URL:
135
153
 
136
154
  | Doc | Topic |
137
155
  |-----|--------|
138
- | [LIGHT_SDK.md](../../docs/LIGHT_SDK.md) | Offline vs light, sizes, model URL |
139
- | [PERMISSIONS.md](../../docs/PERMISSIONS.md) | Camera permission setup (required) |
140
- | [PRELOAD.md](../../docs/PRELOAD.md) | Preload / warm-up / lifecycle |
141
- | [FEATURES.md](../../docs/FEATURES.md) | Plan gating, watermark, loading text |
142
- | [EVENTS.md](../../docs/EVENTS.md) | Typed events + classic `onMessage` |
156
+ | [LIGHT_SDK.md](docs/LIGHT_SDK.md) | Offline vs light, sizes, model URL |
157
+ | [PERMISSIONS.md](docs/PERMISSIONS.md) | Camera permission setup (required) |
158
+ | [PRELOAD.md](docs/PRELOAD.md) | Preload / warm-up / lifecycle |
159
+ | [FEATURES.md](docs/FEATURES.md) | Plan gating, watermark, loading text |
160
+ | [EVENTS.md](docs/EVENTS.md) | Typed events + classic `onMessage` |
143
161
 
144
162
  ## FAQ
145
163
 
@@ -168,6 +186,8 @@ see [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md).
168
186
  ## Links
169
187
 
170
188
  - Product: https://www.posetracker.com
171
- - API docs: https://posetracker.gitbook.io/posetracker-api
172
- - Offline SDK: https://github.com/Movelytics/react-native-pose-estimation
189
+ - Docs: https://docs.posetracker.com
190
+ - Try on your phone: https://docs.posetracker.com/try-expo-go
191
+ - Expo Snack: https://snack.expo.dev/@fsepret/posetracker-sdk-light-demo-app
173
192
  - Light demo: https://github.com/Movelytics/react-native-pose-estimation-light-demo
193
+ - Offline SDK: https://github.com/Movelytics/react-native-pose-estimation
package/lib/client.d.ts CHANGED
@@ -103,9 +103,8 @@ export interface PoseTrackerClientOptions extends ConfigureOptions {
103
103
  */
104
104
  onDiagnostic?: (message: string) => void;
105
105
  /**
106
- * When true, exercise sessions request `engine_debug` snapshots from the
107
- * remote engine (bundle ≥ 1.2.4). Overridable per call via
108
- * `startExercise(id, { debug: true|false })`.
106
+ * @internal PoseTracker QA only — not a supported public API.
107
+ * See `.private/ENGINE_DEBUG_QA.md` (do not document in Mintlify).
109
108
  */
110
109
  debugEngine?: boolean;
111
110
  }
@@ -125,8 +124,8 @@ export interface StartExerciseOptions {
125
124
  /** Device pitch in degrees — jump exercises compensate camera tilt. */
126
125
  devicePitchDeg?: number;
127
126
  /**
128
- * Request throttled `engine_debug` events for this session (movement FSM
129
- * QA). Defaults to {@link PoseTrackerClientOptions.debugEngine}.
127
+ * @internal PoseTracker QA only — not a supported public API.
128
+ * Defaults to {@link PoseTrackerClientOptions.debugEngine}.
130
129
  */
131
130
  debug?: boolean;
132
131
  }
@@ -37,8 +37,8 @@ export interface EngineSessionOptions {
37
37
  /** Emission flags — engines older than 1.1.0 ignore them (client re-filters). */
38
38
  features?: EngineSessionFeatures;
39
39
  /**
40
- * When true, the engine emits throttled `engine_debug` events (movement
41
- * FSM snapshot). Requires engine bundle ≥ 1.2.4. Ignored by older engines.
40
+ * @internal PoseTracker QA only — not a supported public API.
41
+ * Ignored by older engines.
42
42
  */
43
43
  debug?: boolean;
44
44
  }
@@ -1,2 +1,2 @@
1
1
  /** AUTO-GENERATED by scripts/sync-sdk-version.mjs — do not edit. */
2
- export declare const SDK_VERSION = "0.2.1";
2
+ export declare const SDK_VERSION = "0.2.2";
package/lib/sdkVersion.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
4
  /** AUTO-GENERATED by scripts/sync-sdk-version.mjs — do not edit. */
5
- exports.SDK_VERSION = '0.2.1';
5
+ exports.SDK_VERSION = '0.2.2';
@@ -155,8 +155,8 @@ export interface ProgressionEvent {
155
155
  timestampMs: number;
156
156
  }
157
157
  /**
158
- * Throttled movement / rep-FSM snapshot for QA (engine ≥ 1.2.4).
159
- * Enable via `PoseTrackerClientOptions.debugEngine` or `startExercise(..., { debug: true })`.
158
+ * @internal PoseTracker QA only — not a supported public API (do not document in Mintlify).
159
+ * Throttled movement / rep-FSM snapshot. See `.private/ENGINE_DEBUG_QA.md`.
160
160
  */
161
161
  export interface EngineDebugEvent {
162
162
  type: 'engine_debug';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pose-tracker/react-native-pose-estimation-light",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Human pose estimation SDK for React Native (light / online) — MoveNet Lightning via CDN + model URL each session, no bundled weights. iOS & Android (Expo Go). Optional API-key exercise engine.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/src/client.ts CHANGED
@@ -164,9 +164,8 @@ export interface PoseTrackerClientOptions extends ConfigureOptions {
164
164
  */
165
165
  onDiagnostic?: (message: string) => void;
166
166
  /**
167
- * When true, exercise sessions request `engine_debug` snapshots from the
168
- * remote engine (bundle ≥ 1.2.4). Overridable per call via
169
- * `startExercise(id, { debug: true|false })`.
167
+ * @internal PoseTracker QA only — not a supported public API.
168
+ * See `.private/ENGINE_DEBUG_QA.md` (do not document in Mintlify).
170
169
  */
171
170
  debugEngine?: boolean;
172
171
  }
@@ -187,8 +186,8 @@ export interface StartExerciseOptions {
187
186
  /** Device pitch in degrees — jump exercises compensate camera tilt. */
188
187
  devicePitchDeg?: number;
189
188
  /**
190
- * Request throttled `engine_debug` events for this session (movement FSM
191
- * QA). Defaults to {@link PoseTrackerClientOptions.debugEngine}.
189
+ * @internal PoseTracker QA only — not a supported public API.
190
+ * Defaults to {@link PoseTrackerClientOptions.debugEngine}.
192
191
  */
193
192
  debug?: boolean;
194
193
  }
@@ -40,8 +40,8 @@ export interface EngineSessionOptions {
40
40
  /** Emission flags — engines older than 1.1.0 ignore them (client re-filters). */
41
41
  features?: EngineSessionFeatures;
42
42
  /**
43
- * When true, the engine emits throttled `engine_debug` events (movement
44
- * FSM snapshot). Requires engine bundle ≥ 1.2.4. Ignored by older engines.
43
+ * @internal PoseTracker QA only — not a supported public API.
44
+ * Ignored by older engines.
45
45
  */
46
46
  debug?: boolean;
47
47
  }
package/src/sdkVersion.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** AUTO-GENERATED by scripts/sync-sdk-version.mjs — do not edit. */
2
- export const SDK_VERSION = '0.2.1';
2
+ export const SDK_VERSION = '0.2.2';
@@ -199,8 +199,8 @@ export interface ProgressionEvent {
199
199
  }
200
200
 
201
201
  /**
202
- * Throttled movement / rep-FSM snapshot for QA (engine ≥ 1.2.4).
203
- * Enable via `PoseTrackerClientOptions.debugEngine` or `startExercise(..., { debug: true })`.
202
+ * @internal PoseTracker QA only — not a supported public API (do not document in Mintlify).
203
+ * Throttled movement / rep-FSM snapshot. See `.private/ENGINE_DEBUG_QA.md`.
204
204
  */
205
205
  export interface EngineDebugEvent {
206
206
  type: 'engine_debug';