JavaScript SDK 1.11.0
Sample Code
The quickest and simplest way to kickstart your journey with the JavaScript SDK is by downloading and experimenting with our full-featured sample code:
- Download JavaScript Plain HTML project
- Download JavaScript NodeJS project
- Download TypeScript NodeJS project
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
SDK file installation
In your NodeJS project, install the SDK with the npm install or yarn add commands:
npm install "https://sdk.panoptic.ai/npm/ts-vital-sign-camera-1.11.0.tgz"yarn add "https://sdk.panoptic.ai/npm/ts-vital-sign-camera-1.11.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/ts-vital-sign-camera-1.11.0.tgz".
Alternatively, if you are not using NodeJS, you can install the SDK by adding the following line to your main HTML file:
<script src="vital-sign-camera.umd-1.11.0.js">The file vital-sign-camera.umd-1.11.0.js is included in this sample project.
Model file installation
Copy the models folder to the root of the web hosting directory. The models files is included in the above sample projects.
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
1.11.0 (14-July-2025)
enabledChestROIis true by default.- Support local server.
- Improved signal qualily report in sample apps.
- Added type
GoodSignalPercentage. - Bug fixes.