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 — 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 is a production-ready human pose estimation SDK for React Native, fully optimized for iOS and Android (including Expo Go). It runs MoveNet SinglePose Lightning on-device in a WebView (TF.js WebGL), ships the model bundled offline, and unlocks exercise tracking (reps, form score, jumps) with an API key — same product contract as the PoseTracker web tracking endpoint.
| Capability | Detail |
|---|---|
| Platforms | iOS + Android, bare RN and Expo / Expo Go |
| Model | MoveNet SinglePose Lightning (17 COCO keypoints), bundled — no model download. Opt-in model: 'blazepose' loads BlazePose from CDN (unused MoveNet still in the package — prefer light). |
| Free tier | Pose estimation + keypoints without an API key, offline |
| Paid tier | Remote movement engine: squat / push-up / jumps, counter.form_score, angles… |
| UX | Branded loading screen, PoseTracker skeleton overlay, plan-gated watermark |
| Peers | react-native-webview (required); optional FS helpers for engine cache |
This package is the offline / bundled SDK (9.9 MB packed). If you need a
much smaller install and can require network for TF.js + MoveNet each session,
use the sibling Light SDK (206 kB packed):
- npm:
@pose-tracker/react-native-pose-estimation-light - GitHub: https://github.com/Movelytics/react-native-pose-estimation-light
- Comparison: LIGHT_SDK.md
Same free keypoints + paid engine API surface; light fetches the model at boot.
Agents: shared UX/API/bugfixes → mirror to light (or ask first). See
DUAL_SDK_CHANGES.md.
npm install @pose-tracker/react-native-pose-estimation react-native-webview
# Expo:
npx expo install react-native-webview expo-cameranpm:
@pose-tracker/@pose-tracker/react-native-pose-estimation
GitHub: https://github.com/Movelytics/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';
function App() {
return (
<PoseTrackerProvider>
<CameraScreen />
</PoseTrackerProvider>
);
}
function CameraScreen() {
usePoseTracker({
onKeypoints: (e) => {
// 17 keypoints every frame — works offline, no API key
console.log(e.keypoints.length, e.score);
},
});
return (
<WebViewPoseView
style={{ flex: 1 }}
drawSkeleton
loadingText="AI Loading"
// Default source="camera". Host-picked file:
// source="image" sourceUri={fileUri}
// source="video" sourceUri={fileUri}
// or sourceBase64 + sourceMime
/>
);
}Conceptual equivalent of:
https://app.posetracker.com/pose_tracker/tracking?token=YOUR_API_KEY&exercise=squat&skeleton=true
<PoseTrackerProvider
apiToken="YOUR_API_KEY"
options={{ features: { angles: true, progression: true, minGrade: 'B' } }}
>
<WebViewPoseView drawSkeleton skeletonUuid="OPTIONAL_CUSTOM_SKELETON_UUID" />
</PoseTrackerProvider>const { preload, startExercise } = usePoseTracker({
onMessage: (msg) => {
if (msg.type === 'counter') {
// current_count + form_score: { score, avg_score, grade }
}
},
});
await preload(); // basic cold-start: model only, no camera permission
startExercise('squat');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 yet, in this offline package too: nothing of PoseTrackerNet is embedded in npm, and bundled MoveNet is not used while it is selected.
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. - 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 — model / WebGL only |
| full | preload({ coldStart: 'full' }) |
Yes — only when user expects camera |
Lobby warmer: <WebViewPoseView coldStart="basic" />.
Camera screen: <WebViewPoseView /> (coldStart="full").
| Doc | Topic |
|---|---|
| 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 |
| GitHub Releases / CHANGELOG | npm / GitHub go-live runbook |
| llms.txt | Machine-readable product facts (GEO) |
Does it work without an API key?
Yes. Keypoints-only mode is free and offline.
Is it optimized for both iOS and Android?
Yes. Same WebView MoveNet Lightning path on both; adaptive capture quality.
Does it support Expo Go?
Yes (WebView peer). Apple Vision backend is optional and not available in Expo Go.
BlazePose / MediaPipe?
Pass model: 'blazepose' on PoseTrackerProvider options. Loads
@tensorflow-models/pose-detection from jsDelivr in the WebView (lite /
TF.js, COCO-17). Requires network. This offline package still ships
bundled MoveNet which is unused in that mode and inflates the app — Metro
logs a warning. Prefer
@pose-tracker/react-native-pose-estimation-light
if you do not need offline MoveNet. Native MediaPipe is not in this SDK.
More than 17 keypoints (feet, neck, trunk)?
Pass model: 'posetrackernet' with an API key: 39 keypoints, online only.
See PoseTrackerNet.
Who sees the “Powered by PoseTracker” watermark?
Keyless and free plans. It is a link to posetracker.com (utm_medium=react-native), opened with Linking.openURL. Hidden for paid plans (developer / company / enterprise…). 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-demo-app
- Demo app: https://github.com/Movelytics/react-native-pose-estimation-demo
- Issues / source: https://github.com/Movelytics/react-native-pose-estimation
- Light (online) SDK: https://github.com/Movelytics/react-native-pose-estimation-light