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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@boomid/core

v0.1.26

Published

Ditch the Password, Palm It!

Downloads

9

Readme


version license downloads


Installing

The BoomID Core SDK can be installed via NPM:

npm install --save @boomid/core

or added as a script tag:

<head>
    <script src="https://unpkg.com/@boomid/core"></script>
</head>

Modules

GetDevicePrint

import { GetDevicePrint } from '@boomid/core';

GetDevicePrint()
    .then((response) => {
        console.log('Device Print is: ', response);
    })
    .catch((error) => {
        console.error('An error has occurred: ', error);
    })

Options

You may disable Geolocation collection by setting the disableGeolocation parameter to true. This is beneficial for multiple purposes:

  • Increase speed of gathering a Device Print
  • Disable prompt for the user to approve gathering of location data within the browser
GetDevicePrint({
    disableGeolocation: true // Defaults to false
})

SubmitEvidence

Submit evidence to the BoomID Identity Assurance Engine.

Accepts:

| Parameter | Type | Default | | ------------ | -------- | ------- | | application | string | | | site_key | string | | | device_print | object | |

Returns:

{
    "message": "string",
    "status": "string",
    "data": {
        "session_id": "uuid"
    }
}

Example:

{
    "message": "Evidence Queued",
    "status": "success",
    "data": {
        "session_id": "8a1caf12-cf8c-422f-9394-fae40876442d"
    }
}

Usage:

import { GetDevicePrint, SubmitEvidence } from '@boomid/core';

GetDevicePrint()
    .then((devicePrint) => {
        return SubmitEvidence({
            application: 'SDK',
            site_key: 'BoomID Site Key',
            device_print: devicePrint
        })
    })

PollResults

Poll the BoomID Identity Assurance Engine for results.

Accepts:

| Parameter | Type | Default | | --------------- | ------ | ------- | | intervalMS | int | 500 | | endpoint | string | | | acceptableScore | int | 90 |

Returns:

{
    "status": "string",
    "message": "string",
    "data": {
        "_id": "string",
        "session_id": "uuid",
        "score": "number",
        "recommendation": "string",
        "passed": "boolean"
    }
}

Example:

{
    "status": "success",
    "message": "Response received",
    "data": {
        "_id": "619d37c1a4752e3aabda3808",
        "session_id": "8a1caf12-cf8c-422f-9394-fae40876442d",
        "score": "84",
        "status": "done",
        "recomendation": "suspicious"
    }
}

Usage:

import { GetDevicePrint, SubmitEvidence, PollResults } from '@boomid/core';

GetDevicePrint()
    .then((devicePrint) => {
        return SubmitEvidence({
            application: 'SDK',
            site_key: 'BoomID Site Key',
            device_print: devicePrint
        })
    })
    .then((session_id) => {
        return PollResults({
            intervalMS: 800,
            session_id: session_id,
            acceptableScore: 75
        })
            .then((results) => {
                // Handle results
                if (results.passed) {
                    // Do something good
                } else {
                    // Handle the fraudulent activity
                }
            })
    })