Navigation

Quick start

To get started with browser fingerprinting, you need to create a Rupt account and get your client_id.

If you don't have a Rupt account yet, you can create one here.

1. Install the Rupt SDK

yarn add rupt

2. Get a fingerprint

To get a fingerprint, call the getFingerprint function.

import { getFingerprint } from "rupt";

const { fingerprint_id, confidence } = await getFingerprint({
  client_id: "your_client_id",
});

The getFingerprint function returns a Fingerprint object.

{
  "fingerprint_id": "65a7d2f89d12345678901234",
  "confidence": 0.98
}

The fingerprint_id is a unique identifier for the fingerprint. The confidence is a value between 0 and 1 that indicates the confidence of the fingerprint. You can safely use the fingerprint_id to identify a browser or a user for your own purposes.

3. That's it!

You've now generated a stable browser fingerprint.

Try to generate fingerprints as often as you can (e.g. on every page load) to get the most stable fingerprint possible. This will increase the accuracy of your fingerprints and better able to manage drift.