Skip to content

React SDK 3.2.0

Sample Code

The quickest and simplest way to kickstart your journey with the React SDK is by downloading and experimenting with our full-featured sample code:

Download React Sample Code

IMPORTANT

In the above sample codes, the strings __YOUR_USER_ID__ and __YOUR_API_KEY__ should be replaced by your own User ID and API Key repectively. Please contact us to obtain your User ID and API Key.

Installation

In your React project, install the SDK with the npm install or yarn add commands. Please note that different frameworks require different packages.

bash
npm install "https://sdk.panoptic.ai/npm/react-vital-sign-camera-3.2.0.tgz"
bash
yarn add "https://sdk.panoptic.ai/npm/react-vital-sign-camera-3.2.0.tgz"

TIP

If you are using Yarn v2 or later, you might need to include the package name in the command, such as yarn add vital-sign-camera@"https://sdk.panoptic.ai/npm/react-vital-sign-camera-3.2.0.tgz".

Vite Configuration

If you are using Vite as your build tool, you need to exclude ts-vital-sign-camera from dependency optimization to ensure proper functionality:

javascript
// vite.config.js
export default defineConfig({
  optimizeDeps: {
    exclude: ['ts-vital-sign-camera'],
  },
});

Deployment Notes

NOTE

If the project is deployed to Google Cloud, some web servers, such as serve, might not function correctly, causing the facial skin age feature to fail. To prevent this issue, use http-server instead.

What's new

3.2.0 (12-Feb-2026)

  • Production release synced with TypeScript SDK 2.2.0 (promoted from beta).
  • Video-file support added (video input, playback controls, and automatic FPS detection).
  • Improved realtime diagnostics and UI (video info display and realtime estimator overlay).
  • Introduced saveScanDataToS3 for optional encrypted upload of scan data.
  • ROI extraction refactor and stability fixes; improved performance via ImageBitmap support.
  • Packaging & build improvements — runtime model/WASM assets included in dist/models/ and better UMD/ES builds.
  • Backwards compatible; no public API breaking changes for wrapper consumers.