Git Product home page Git Product logo

fingerprintjs2's Introduction

FingerprintJS

Build status Current NPM version Monthly downloads from NPM Monthly downloads from jsDelivr

Discord server

FingerprintJS is a browser fingerprinting library that queries browser attributes and computes a hashed visitor identifier from them. Unlike cookies and local storage, a fingerprint stays the same in incognito/private mode and even when browser data is purged.

View Our Demo.

Quick start

Install from CDN

<script>
  function initFingerprintJS() {
    // Initialize an agent at application startup.
    const fpPromise = FingerprintJS.load()

    // Get the visitor identifier when you need it.
    fpPromise
      .then(fp => fp.get())
      .then(result => {
        // This is the visitor identifier:
        const visitorId = result.visitorId
        console.log(visitorId)
      })
  }
</script>
<script
  async
  src="//cdn.jsdelivr.net/npm/@fingerprintjs/fingerprintjs@3/dist/fp.min.js"
  onload="initFingerprintJS()"
></script>

Run this code

Alternatively you can install from NPM to use with Webpack/Rollup/Browserify

npm i @fingerprintjs/fingerprintjs
# or
yarn add @fingerprintjs/fingerprintjs
import FingerprintJS from '@fingerprintjs/fingerprintjs'

// Initialize an agent at application startup.
const fpPromise = FingerprintJS.load()

;(async () => {
  // Get the visitor identifier when you need it.
  const fp = await fpPromise
  const result = await fp.get()

  // This is the visitor identifier:
  const visitorId = result.visitorId
  console.log(visitorId)
})()

Run this code

๐Ÿ“• Full documentation

Switch to Pro version for free to get 99.5% identification accuracy

FingerprintJS Pro is a professional visitor identification service that processes all information server-side and transmits it securely to your servers using server-to-server APIs. Pro combines browser fingerprinting with vast amounts of auxiliary data (IP addresses, time of visit patterns, URL changes and more) to be able to reliably deduplicate different users that have identical devices, resulting in 99.5% identification accuracy.

You can use Pro FREE for up to 1,000 unique monthly visitors - no credit card required.

Pro screenshot

Full product comparison:

Open Source Pro

Core Features

100% Open-sourceyesno*
Standard fingerprint signals
screen, os, device name
โœ“โœ“
Advanced fingerprint signals
canvas, audio, fonts
โœ“โœ“
ID typefingerprintvisitorID**
ID lifetimeseveral weeksmonths/years
ID originclientserver
ID collisionscommonrare

Additional Features

Incognito mode detection
works in all modern browsers - see our full list of browsers supported
โ€“โœ“
Server-side accuracy increase
based on additional server-side signals, such as TLS crypto support, ipv4/v6 data and others
โ€“โœ“
Query API & realtime Webhooks
build flexible workflows
โ€“โœ“
Geolocation
based on IP address
โ€“โœ“

Operations

Data securityYour infrastructureEncrypted at rest
StorageYour infrastructureUnlimited up to 1 yr
RegionsYour infrastructureHosting in US and EU
ComplianceYour infrastructureGDPR, CCPA compliant***
SLANo SLA99.9% Uptime
SupportGitHub communitySupport team via email, chat, and call-back within 1 business day

* Pro uses the open source fingerprinting library as well as proprietary technology for increased accuracy and stability.

** VisitorIDs, in comparison to fingerprints, include server side techniques, are deduplicated and utilize fuzzy matching to result in a more accurate and stable identifier. Fingerprint hashes rely on an exact match across all browser attributes, making them unstable across > 2 week time intervals.

*** FingerprintJS is GDPR and CCPA compliant as the data processor. You still need to be compliant as the data controller and use the identification for fraud under legitimate interest or ask for user consent.

Pro result example:

{
  "requestId": "HFMlljrzKEiZmhUNDx7Z",
  "visitorId": "kHqPGWS1Mj18sZFsP8Wl",
  "visitorFound": true,
  "incognito": false,
  "browserName": "Chrome",
  "browserVersion": "85.0.4183",
  "os": "Mac OS X",
  "osVersion": "10.15.6",
  "device": "Other",
  "ip": "192.65.67.131",
  "ipLocation": {
    "accuracyRadius": 100,
    "latitude": 37.409657,
    "longitude": -121.965467
    // ...
  }
}

๐Ÿฟ Live demo

โฑ How to upgrade from Open Source to Pro in 30 seconds

๐Ÿ“• FingerprintJS Pro documentation

โ–ถ๏ธ Video: use FingerprintJS Pro to prevent multiple signups

Migrating from v2

Version policy

See the compatibility policy for the API and visitor identifiers in the version policy guide.

Browser support

The library supports all popular browsers. See more details and learn how to run the library in old browsers in the browser support guide.

Contributing

See the contributing guidelines to learn how to start a playground, test and build.

Useful links

fingerprintjs2's People

Contributors

alexhayes avatar antoinevastel avatar arapoport avatar arthuredelstein avatar blx avatar chadkillingsworth avatar chandra158 avatar cogstatedstephens avatar dann95 avatar davecardwell avatar dependabot[bot] avatar dj0nes avatar finesse avatar grossacasac avatar guzzter avatar hiuny avatar hmaesta avatar jonashaag avatar lukasdrgon avatar makma avatar msp avatar nuschk avatar otanim avatar sanasol avatar skcopland avatar sleepprogger avatar triptec avatar undemian avatar valve avatar xepozz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.