Skip to content

Installation

The Circadify Web SDK is distributed as a private npm package on GitHub Packages. Authorized customers install it with npm install @circadify/web-sdk after a one-time .npmrc setup.

@circadify/web-sdk is a private package — you need read access on the @circadify GitHub Packages scope before you can install it.

  1. Send Circadify the GitHub username of the engineer (or service account) who will install the SDK. After your enterprise agreement is signed, support grants that user read access on @circadify/web-sdk and confirms by email.

  2. Mint a Personal Access Token as the granted user at github.com/settings/tokens/new with the read:packages scope (no other scopes required). Save the ghp_… token — GitHub only shows it once.

  3. Configure npm by creating a project-level .npmrc next to your package.json:

    .npmrc
    @circadify:registry=https://npm.pkg.github.com
    //npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
  4. Export the token so npm picks it up at install time:

    Terminal window
    export GITHUB_TOKEN=ghp_your_read_packages_token

This tells npm that anything under the @circadify scope is fetched from GitHub Packages with your token; every other package continues to come from the public npm registry.

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.

Terminal window
npm install @circadify/web-sdk
  • 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/web-sdk';

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