Installation
Install the Circadify Web SDK for JavaScript and TypeScript. Contactless vital signs from a browser camera.
The Circadify Web SDK is distributed as a private npm package on the Circadify SDK registry at sdk.circadify.com. Authorized customers install it with npm install @circadify/web-sdk after a one-time .npmrc setup, authenticated with a single Circadify SDK access token — the same token that installs the iOS and Android SDKs.
Get registry access
@circadify/web-sdk is a private package -- you need a Circadify SDK access token before you can install it. No GitHub account or PAT is involved.
-
Request SDK access in the developer portal. Sign in at developer.circadify.com and request SDK access. After your enterprise agreement is signed, support approves the request and confirms by email.
-
Get your Circadify SDK access token from the developer portal under Integrate → SDK Access. This single token authenticates the package download for the Web, React, iOS, and Android SDKs. It is distinct from your
ck_live_/ck_test_API key — the access token downloads the package, the API key runs the SDK at runtime. -
Configure npm by creating a project-level
.npmrcnext to yourpackage.json:.npmrc
ini@circadify:registry=https://sdk.circadify.com/npm/ //sdk.circadify.com/npm/:_authToken=${CIRCADIFY_TOKEN} always-auth=true -
Export the token so npm picks it up at install time:
bashexport CIRCADIFY_TOKEN=your_circadify_sdk_access_token
This tells npm that anything under the @circadify scope is fetched from the Circadify SDK registry with your access token; every other package continues to come from the public npm registry. The always-auth=true line ensures npm sends the token on tarball fetches as well as the metadata request.
Never commit a literal token. Use the ${CIRCADIFY_TOKEN} env-var indirection above, or add .npmrc to .gitignore if it must contain a literal value. To rotate or revoke access (e.g. if an engineer leaves), rotate the token in the developer portal under Integrate → SDK Access, or email support@circadify.com.
For CI/CD, store the access token as a secret (e.g. CIRCADIFY_TOKEN) and reference it from .npmrc. The same .npmrc layout works on every npm-compatible package manager.
Package Manager
Once the registry is configured and your token is exported, install @circadify/web-sdk with your preferred package manager. The SDK ships as ESM with a CommonJS fallback.
Install with npm — the default Node.js package manager.
npm install @circadify/web-sdkbashRequirements
- Bundle size: ~38 KB (ESM core). Runtime assets are lazy-loaded on first use and cached by the browser.
- HTTPS: Required for camera access.
localhostworks during development. - Browser support:
| Browser | Minimum Version |
|---|---|
| Chrome | 80+ |
| Firefox | 75+ |
| Safari | 14+ |
| Edge | 80+ |
- Required browser APIs:
| API | Purpose |
|---|---|
| WebAssembly | SDK runtime support |
| Web Workers | Background measurement support |
MediaDevices (navigator.mediaDevices) | Camera stream access |
| WebGL (optional) | Hardware-accelerated browser rendering support; falls back to Canvas 2D |
TypeScript Support
The SDK ships with full TypeScript definitions included. No additional @types package is needed.
import {
CircadifySDK,
CircadifyError,
CircadifyErrorCode,
type CircadifyConfig,
type VitalSignsResult,
type ProgressEvent,
type QualityWarning,
} from '@circadify/web-sdk';typescriptAll public interfaces, callback signatures, and error types are exported. TypeScript 4.7 or later is recommended for full ESM support.
Next Steps
- Configuration — Configure the SDK for your use case
- Quick Start — End-to-end getting started guide