npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@chekinapp/iv-sdk

v0.2.0

Published

Client-side SDK for embedding the Chekin IV iframe

Downloads

1,008

Readme

Chekin IV SDK

Client-side SDK for embedding Chekin's identity verification iframe into web applications.

Installation

npm install @chekinapp/iv-sdk

Usage

import {ChekinIVSDK, IDENTITY_VERIFICATION_TYPES} from '@chekinapp/iv-sdk';

const sdk = new ChekinIVSDK({
  apiKey: 'your-api-key',
  mode: IDENTITY_VERIFICATION_TYPES.ocr,
  enableLiveness: true,
  forceLivenessMechanism: 'AUTO',
  language: 'en',
  autoHeight: true,
  onCompleted: data => {
    console.log('IV completed', data);
  },
  onFailed: error => {
    console.error('IV failed', error);
  },
});

await sdk.render('chekin-container');

Configuration

Defaults follow the current iframe app contract in ../chekin-guestapp/apps/iv-sdk.

| Parameter | Required | Type | Default | Description | | --- | --- | --- | --- | --- | | apiKey | Yes | string | None | API key used by the iframe app to initialize the verification flow. | | setupData | No | { countryCode?: string; isLeader?: boolean } | None | Optional guest and booking context forwarded to the iframe. | | mode | No | 'ocr' \| 'biomatch' | 'ocr' | Verification mode. | | enableLiveness | No | boolean | undefined | Enables liveness-related flow in the iframe when supported. | | forceLivenessMechanism | No | 'AUTO' \| 'CLIENT' \| 'SERVER' | undefined | Forces a specific liveness mechanism used by the iframe app. | | version | No | string | undefined | CDN version used to build the iframe URL. Examples: latest, dev, 1.2.3. | | language | No | string | 'en' | Language code consumed by the iframe app. Unsupported values currently log a warning in this SDK. | | optional | No | boolean | undefined | Marks the verification flow as optional when supported by the iframe. | | styles | No | string | undefined | Raw CSS string injected into the iframe app. | | stylesLink | No | string | undefined | URL of an external stylesheet injected into the iframe app. | | autoHeight | No | boolean | false | Resizes the iframe height based on iv-height-changed events. | | baseUrl | No | string | https://cdn.chekin.com/iv-sdk/latest/index.html | Override for the iframe URL, mainly for local or staging environments. | | enableLogging | No | boolean | false | Enables SDK-side debug logging in the host page. | | onReady | No | () => void | undefined | Called when the iframe signals iv-ready. | | onMounted | No | () => void | undefined | Called when the iframe signals iv-mounted. | | onHeightChanged | No | (height: number) => void | undefined | Called when the iframe reports a new content height. | | onStepChanged | No | (step: unknown) => void | undefined | Called when the iframe emits iv-step-changed. | | onCompleted | No | (data: unknown) => void | undefined | Called when the verification flow completes successfully. | | onFailed | No | (error: unknown) => void | undefined | Called when the verification flow fails. | | onError | No | (error: { message: string; code?: string } \| string) => void | undefined | Called for iframe-level errors. | | onConnectionError | No | (error: unknown) => void | undefined | Called for network or connectivity failures reported by the iframe. |

setupData

| Field | Required | Type | Default | Description | | --- | --- | --- | --- | --- | | countryCode | No | string | undefined | Country context used by document and flow selection. | | isLeader | No | boolean | undefined | Indicates whether the guest is the booking leader. |

Events

| Event | Payload | Description | | --- | --- | --- | | iv-ready | undefined | Fired when the iframe communication layer is ready. | | iv-mounted | undefined | Fired after the iframe app finishes mounting. | | iv-height-changed | { height: number } | Fired when the iframe content height changes. | | iv-route-changed | { route: string } | Fired when the iframe route changes. | | iv-init-route | { route: string } | Fired with the initial iframe route after mount. | | iv-step-changed | unknown | Fired when the verification step changes. | | iv-completed | unknown | Fired when the verification flow completes. | | iv-failed | unknown | Fired when the verification flow fails. | | iv-error | { message: string; code?: string } \| string | Fired for iframe-side errors. | | iv-connection-error | unknown | Fired for connectivity-related failures. |

The SDK supports both config callbacks and on/off event listeners.

Notes

  • This package is the parent-side iframe SDK only.
  • It targets the existing IV iframe app contract.