Skip to content

Installation

The Circadify Web SDK is available as an npm package and via CDN.

Install @circadify/sdk with your preferred package manager. The SDK ships as ESM with a CommonJS fallback.

Terminal window
npm install @circadify/sdk

For projects that don’t use a bundler, load the SDK directly from the Circadify CDN. The script exposes a global CircadifySDK constructor.

<script src="https://cdn.circadify.com/sdk/v1/circadify.min.js"></script>
<script>
const sdk = new CircadifySDK({
apiKey: 'ck_test_your_key_here',
});
</script>
  • Bundle size: ~38 KB (ESM core). WebAssembly modules (~6 MB) are lazy-loaded from CDN on first use and cached by the browser.
  • HTTPS: Required for camera access. localhost works during development.
  • Browser support:
BrowserMinimum Version
Chrome80+
Firefox75+
Safari14+
Edge80+
  • Required browser APIs:
APIPurpose
WebAssemblyVision Engine execution (face detection, skin region extraction)
Web WorkersBackground frame processing
MediaDevices (navigator.mediaDevices)Camera stream access
WebGL (optional)Hardware-accelerated frame processing; falls back to Canvas 2D

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/sdk';

All public interfaces, callback signatures, and error types are exported. TypeScript 4.7 or later is recommended for full ESM support.