PoseTracker is a real-time pose estimation SDK and API for fitness and rehab apps. It runs MoveNet on-device on React Native, iOS, Android and the web. Keypoints are free. An optional API key adds rep counting, joint angles and a form score.
Guide: https://www.posetracker.com/news/react-native-pose-estimation-expo
Docs: https://docs.posetracker.com/quickstart
⭐ Star us on GitHub: Movelytics/react-native-pose-estimation-light — it helps other React Native and Expo developers find the SDK.
Try it on your phone (no Xcode / Android Studio):
- Install Expo Go
- Open the Expo Snack → Run on device
- Scan the QR — live pose estimation, no API key
Steps and QR: https://docs.posetracker.com/try-expo-go
PoseTracker Light is a human pose estimation SDK for React Native, fully optimized for iOS and Android (including Expo Go). Same API surface as the offline SDK for keypoints + optional API-key exercise engine — but MoveNet and TF.js load from the network each WebView boot, so the npm package stays tiny.
| Offline (bundled) | Light (this package) | |
|---|---|---|
| npm | @pose-tracker/react-native-pose-estimation |
@pose-tracker/react-native-pose-estimation-light |
| GitHub | react-native-pose-estimation | react-native-pose-estimation-light |
| Packed tarball | ~9.9 MB | ~206 kB (~48× smaller) |
| Unpacked | ~14.7 MB | ~779 kB |
| MoveNet / TF.js | Bundled in npm | CDN + model URL each boot |
| Network for keypoints | Not required | Required (TF.js + model) |
| Expo Go | Yes | Yes |
| API surface | Keypoints free; paid engine with API key | Same |
Choose offline when you need pose without a network, or want zero model
download at session start.
Choose light when app install / OTA size matters and devices are online.
Full comparison: LIGHT_SDK.md.
Agents: shared UX/API/bugfixes → mirror to offline (or ask first). See
DUAL_SDK_CHANGES.md.
npm install @pose-tracker/react-native-pose-estimation-light react-native-webview
# Expo:
npx expo install react-native-webview expo-cameranpm:
@pose-tracker/react-native-pose-estimation-light
GitHub: https://github.com/Movelytics/react-native-pose-estimation-light
Offline sibling:@pose-tracker/react-native-pose-estimation
Required: host app must declare camera permissions — see PERMISSIONS.md.
Media inputs (v0.2): camera (default), uploaded video, still image — host picks the file. See MEDIA_SOURCES.md and https://docs.posetracker.com/media-sources.
import {
PoseTrackerProvider,
WebViewPoseView,
usePoseTracker,
} from '@pose-tracker/react-native-pose-estimation-light';
function App() {
return (
<PoseTrackerProvider
options={{
model: 'movenet', // Docs API parity (default)
// modelUrl: 'https://…/model.json', // optional override
}}
>
<CameraScreen />
</PoseTrackerProvider>
);
}
function CameraScreen() {
usePoseTracker({
onKeypoints: (e) => {
console.log(e.keypoints.length, e.score);
},
});
return (
<WebViewPoseView
style={{ flex: 1 }}
drawSkeleton
loadingText="AI Loading"
coldStart="full"
// Default source="camera". Host-picked file:
// source="image" sourceUri={fileUri}
// source="video" sourceUri={fileUri}
/>
);
}https://app.posetracker.com/scripts/tmp_model_to_remove.json
Same MoveNet SinglePose Lightning topology as the PoseTracker Front tracking
product. Weight shards are relative neighbors (group1-shard1of2.bin, …).
TF.js loads from jsDelivr (@tensorflow/*@4.22.0) unless you override
tfjsCdnBase / tfjsVersion.
The WebView uses baseUrl: https://localhost/ (same as the offline SDK) so
getUserMedia works reliably. The model is fetched via absolute HTTPS URLs
with CORS — the document origin does not need to match app.posetracker.com.
PoseTrackerNet also calls the PoseTracker API from this page (origin
https://localhost).
Same contract as the offline SDK / web tracking URL:
<PoseTrackerProvider
apiToken="YOUR_API_KEY"
options={{ features: { angles: true, progression: true, minGrade: 'B' } }}
>
<WebViewPoseView drawSkeleton skeletonUuid="OPTIONAL_CUSTOM_SKELETON_UUID" />
</PoseTrackerProvider>MoveNet stays the default. Nothing changes for an app that does not select PoseTrackerNet.
<PoseTrackerProvider apiToken="YOUR_API_KEY" options={{ model: 'posetrackernet' }}>
<WebViewPoseView drawSkeleton />
</PoseTrackerProvider>- Select it:
model: 'posetrackernet', or'posetrackernet-lite'/'posetrackernet-ultra'to force the smaller or the larger network. In the WebView plain'posetrackernet'is lite; on the native backend the SDK chooses for the phone. - Needs an API key and an internet connection (free plan included). The
model is delivered by the PoseTracker API to your key at each start, and
kept in memory only. No offline mode (this package is online for every model).
Without a key the view shows the error "PoseTrackerNet needs an API key and
an internet connection…" and an
errorevent (invalid_token) is emitted. There is no silent fallback to MoveNet. Give the key when the client is created (apiTokenon the provider). - 39 keypoints. The 17 COCO keypoints come first, with the same
names, order, fields and coordinates as MoveNet (normalized 0–1, display
space, mirrored for the front camera), so existing code keeps working. Then
22 more:
lower_neck_front,left_toe_inner,right_toe_inner,left_heel,right_heel,lower_neck_back,trunk_f1,trunk_f2,trunk_f3,trunk_f4,trunk_f5,trunk_b1,trunk_b2,trunk_b3,trunk_b4,trunk_b5,left_deltoid,right_deltoid,left_trapezius,right_trapezius,upper_neck_front,upper_neck_back.trunk_f*run down the front of the trunk,trunk_b*down the back;*_trapezius/*_deltoidare the shoulder line;*_toe_inneris the big toe. Constants:POSETRACKERNET_KEYPOINT_NAMES,POSETRACKERNET_EXTRA_KEYPOINT_NAMES. Look keypoints up by name. - Score rule: 0.7. A keypoint appears from a score of 0.7; once shown it stays down to 0.5, so that it does not blink. A keypoint that is not shown keeps its place in the list with
score: 0. TheminScoreoption ofbuildPoseHtmlonly counts when it is higher than 0.7. - Exercises: the movement engine receives the same 17 keypoints as with MoveNet.
- Skeleton: the page draws PoseTrackerNet's own default skeleton (the
default one plus feet, neck, trunk and shoulder line, same colours). A
custom
skeletonDef/skeletonUuidstill wins.POSETRACKERNET_SKELETON_DEFINITIONis exported for your own overlays. - Speed: on a low-end Android phone (Samsung Galaxy A13, measured):
about 29.6 pictures per second on the
native backend
(development or production build), 14 to 15 in the WebView (Expo Go, or
preferredBackend: 'webview'). Once that phone is warm and slows its processor, the native backend still held 29.6 over ten minutes and the WebView gave about 11. Fluent on recent phones. - Still images and
processFrame: a single image (source="image") is answered on its own. WithprocessFrame, a keypoint appears after about 3 frames in a row above 0.7 (the first results of a stream have scores of 0). - Licence: PoseTrackerNet is a proprietary model of PoseTracker, not open
source: no redistribution, retraining, distillation or use in a competing SDK. Commercial use requires a paid
plan (Developer or above) or a written agreement from PoseTracker. Credit it: "Pose estimation by PoseTrackerNet —
posetracker.com". The notice granted with the model is logged through
onDiagnosticand returned byclient.getPoseModelInfo()(POSETRACKERNET_LICENSE_NOTICE,POSETRACKERNET_ATTRIBUTION).
In a development or production build, model: 'posetrackernet' runs on the
SDK's native backend: the camera and the model run in native code at the
camera's rate, instead of in the WebView. Nothing changes in your code: you
still mount WebViewPoseView, which then renders the native camera view, and
you receive the same events with the same keypoints (39, the 17 COCO first,
normalized 0–1 over the displayed picture, mirrored for the front camera).
Exercises (reps, angles, form score) work the same way.
| Native backend | WebView | |
|---|---|---|
| Where | development / production build (npx expo run:android, EAS, bare React Native) |
everywhere, Expo Go included |
| Speed measured on a Samsung Galaxy A13 (low-end Android) | about 29.6 pictures per second | 14 to 15 pictures per second |
Plain model: 'posetrackernet' |
the SDK measures the phone and chooses Lite or Ultra (auto) |
lite |
'posetrackernet-lite' / 'posetrackernet-ultra' |
forces that network | forces that network |
- Choice of the backend:
preferredBackend: 'auto'(default) or'native'uses the native backend when it is in the app binary, the WebView otherwise, with no error (Expo Go has no custom native code, so it always runs the WebView).preferredBackend: 'webview'forces the WebView.isPoseTrackerNetNativeAvailable()tells whether the native backend is in the binary;client.getBackend().nameis'native-posetrackernet'or'webview-movenet', andclient.getPoseModelInfo().backendis'native'or'webview'.client.getAcceleration()is'native-cpu'. - Still needs an API key and an internet connection at every camera
start: the native code fetches the model from the PoseTracker API with your
key and keeps it in memory only. No offline mode for this model. Without a
key: the same error as in the WebView (
invalid_token). - The set-up chooses itself. With plain
'posetrackernet'the SDK times the model on the phone at the first start (a second or two), takes the richest set-up that holds the camera's rate (network Lite or Ultra, 2 or 4 CPU threads), remembers it, and steps down or up by itself while running. This replaces the adaptive camera quality of the WebView on this backend: noquality_changedand noperformance_warningevent comes from it. To read what it chose and the real rate:const backend = client.getBackend(); if (isNativePoseTrackerNetBackend(backend)) { backend.getSetupInfo(); backend.getStats(); backend.setOnStats(...); backend.setOnSetup(...); }.forgetPoseTrackerNetNativeSetup()makes the next start measure again. - Camera only.
source="video"/"image",processFrameandwarmupExternalneed the WebView: create the client withpreferredBackend: 'webview'for those.coldStart="basic"warmers do nothing on this backend (the model loads when the camera view mounts, andpreload()resolves without them). Switchingpositionrestarts the camera and fetches the model again, as a page reload does in the WebView. - Skeleton:
drawSkeleton,skeletonDefandskeletonUuidwork the same (drawn natively; default = the model's own skeleton).keypoint_anglesof a custom skeleton is not drawn natively. - What it adds to your app: Android: LiteRT 1.4.0 (about 3 MB per
processor type) and CameraX; the app must compile with SDK 36 and have the
NDK and CMake that React Native already asks for. iOS: TensorFlowLiteSwift
2.17.0 through CocoaPods, iOS 15.1 or later. With a recent Xcode, pods that
declare an iOS version under 15 (TensorFlow Lite declares 12) must be
raised in your Podfile
post_install(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.1'). The iOS side compiles but has not been run on an iPhone yet. - Leave it out: if you do not want this native code in your app, set
POSETRACKER_NATIVE_POSETRACKERNET=0in the build environment, or add"posetracker": { "nativePoseTrackerNet": false }to your app'spackage.json, then rebuild. The model then runs in the WebView. An app that already links another TensorFlow Lite Android library (org.tensorflow:tensorflow-lite) should leave it out: the two contain the same classes.
A tracking call is counted once, on camera_start when the camera opens. startExercise never counts again. To chain exercises in the same call, keep the camera open and call it again:
startExercise('squat');
// later, while WebViewPoseView stays mounted:
startExercise('plank'); // placement + counter restart, no new callUnmounting WebViewPoseView or any new camera open ends the session; the next exercise counts as a new call. Optional pattern, no API change. Docs: https://docs.posetracker.com/reference/features-plans#what-counts-as-one-tracking-call
Full guide, including Vision Camera and expo-camera: https://docs.posetracker.com/external-frames
Optional. Use it when your app already owns the camera (VisionCamera, a custom pipeline, a recorded file) and you only need the data. PoseTracker runs pose estimation and the exercise engine on every frame you push, and returns the same events as the camera flow: keypoints, posture/placement, counter, form score, progression. Nothing is drawn, so you render what you want.
const { warmupExternal, startExercise, processFrame } = usePoseTracker({
onCounter: (e) => setReps(e.count), // listeners still fire
});
await warmupExternal(); // no camera permission, no getUserMedia
startExercise('squat');
// For each frame from your camera:
const { dropped, pose, events } = await processFrame({
base64: jpegBase64, // or uri: 'file:///…' / 'data:image/jpeg;base64,…'
width: 256,
height: 192,
timestampMs: Date.now(),
mirrored: true, // front camera (default). false for the back camera.
});
if (!dropped) {
// pose.keypoints are normalized (0..1) to the frame you sent
// events: everything emitted for this frame (counter, posture, …)
}- The Provider mounts a hidden 1×1 warmer after
warmupExternal(). It is not needed if a<WebViewPoseView />is already on screen. The light package still needs network for the model. - One frame in flight at a time: an overlapping call resolves at once with
{ dropped: true, pose: lastPose, events: [] }. Await before pushing the next one. - Keep the longest side of each frame at about 256 px or less. A 1080p JPEG per frame is not real-time over the bridge.
- The engine is temporal: push frames in order and keep the same session across frames.
- Don't mix the two flows.
processFramethrows while the SDK camera is open. processFramebeforewarmupExternal()throws.
| Mode | API | Camera permission |
|---|---|---|
| basic (default) | preload() |
No — TF.js/model warm-up only |
| full | preload({ coldStart: 'full' }) |
Yes — when user expects camera |
| Doc | Topic |
|---|---|
| LIGHT_SDK.md | Offline vs light, sizes, model URL |
| PERMISSIONS.md | Camera permission setup (required) |
| PRELOAD.md | Preload / warm-up / lifecycle |
| FEATURES.md | Plan gating, watermark, loading text |
| EVENTS.md | Typed events + classic onMessage |
Does it work without an API key?
Yes for keypoints — but a network is still required to load TF.js + MoveNet.
Does it support Expo Go?
Yes (react-native-webview peer).
BlazePose?
Pass model: 'blazepose' on PoseTrackerProvider options. Loads
@tensorflow-models/pose-detection from jsDelivr in the WebView (lite /
TF.js). Keypoints stay COCO-17. Heavier than MoveNet — expect lower FPS on
mid-range Android. The offline package can run the same CDN BlazePose
path but still ships unused bundled MoveNet; use light unless you need
offline MoveNet.
More than 17 keypoints (feet, neck, trunk)?
Pass model: 'posetrackernet' with an API key: 39 keypoints.
See PoseTrackerNet.
Who sees the watermark?
Keyless and free plans. Freemium watermark now links to posetracker.com (utm_medium=react-native) via Linking.openURL. Hidden for paid plans. Set showWatermark={false} to remove it.
How does Claude or Cursor integrate this SDK?
Add the connector https://mcp.posetracker.com/api/mcp, sign in, and click Allow at https://app.posetracker.com/oauth/authorize. The agent writes the snippet on your account. Docs: https://docs.posetracker.com/ai/mcp-connector.
Proprietary — Movelytics SAS / PoseTracker. See LICENSE.
Third-party components (TensorFlow.js, MoveNet Lightning) are Apache 2.0 —
see THIRD_PARTY_NOTICES.md.
- Product: https://www.posetracker.com
- Docs: https://docs.posetracker.com
- Try on your phone: https://docs.posetracker.com/try-expo-go
- Expo Snack: https://snack.expo.dev/@fsepret/posetracker-sdk-light-demo-app
- Light demo: https://github.com/Movelytics/react-native-pose-estimation-light-demo
- Offline SDK: https://github.com/Movelytics/react-native-pose-estimation