2 min read

The JavaScript SDK adds Footprint onboarding to your web app. Use it with JavaScript or TypeScript, with or without a framework such as React, Vue, or Angular. It launches iframes from your site and exchanges secure messages between Footprint and your app.

Browser support

The SDK supports all recent versions of the major browsers. For security, Footprint does not support less popular browsers that no longer receive security updates.

Name Versions
Chrome Last 3 major versions
Chrome Mobile Last 3 major versions
Firefox Last 3 major versions
Microsoft Edge Last 3 major versions
Safari OSX Last 3 major versions
Safari iOS Last 3 major versions
Android default browser Last 3 major versions

The SDK depends on native browser features. Polyfilling some of them (for example, the Promises API) can stop footprint.js from working normally. If the SDK does not behave as expected, remove polyfills to see whether they are the cause.

Installation

Install the SDK:

bash
1npm install @onefootprint/footprint-js

Import the SDK stylesheet so the iframe renders with the correct styles:

javascript
1import "@onefootprint/footprint-js/dist/footprint-js.css";

Device intelligence

The SDK can collect device signals through Fingerprint, a third-party provider. Its agent is an optional peer dependency. If your playbook uses device-intelligence rules, install it so those rules receive the signals they need:

bash
1npm install @fingerprint/agent

The SDK loads Fingerprint lazily; no import is needed. Onboarding still completes without it. If your app already loads Fingerprint, you can leave out the dependency to avoid loading it twice.

Next steps