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

@verifa.i/web-sdk

v1.2.0

Published

VerifAI Web SDK — zero-knowledge device trust for web apps. Verify the device, not just the password.

Readme

@verifa.i/web-sdk

Zero-knowledge device trust for web apps. Verify the device, not just the password.

Install

npm install @verifa.i/web-sdk

Or via CDN:

<script src="https://cdn.jsdelivr.net/npm/@verifa.i/[email protected]/dist/verifai.umd.min.js"></script>

Quick start

import VerifAI from "@verifa.i/web-sdk";

VerifAI.init({ apiKey: "vf_live_xxxxxxxx" });

async function onLoginSubmit(email, password) {
    // 1. Your own auth check first
    const ok = await myApi.checkPassword(email, password);
    if (!ok) return showError("wrong password");

    // 2. Verify the device — every login hits the API
    const result = await VerifAI.verifyDevice(email);

    if (result.status === "trusted") {
        // Known device. Trust score grows with each login.
        goToDashboard();
        return;
    }

    if (result.status === "pending") {
        // New device. User's phone gets a push notification.
        showWaitingScreen("Approve on your phone…");

        const approval = await VerifAI.waitForApproval(result.sessionId);

        if (approval.status === "approved") {
            goToDashboard();
        } else {
            showFraudScreen(approval.reason);
        }
        return;
    }

    // status === "rejected" or "error"
    showFraudScreen(result.reason);
}

What's new in v1.2.0

  • Every login calls the API — no more local-only fast path. Trust score increments on every successful login. Usage is tracked per API key.
  • Signal hashing — browser fingerprint signals are now hashed and sent to the API for comparison, matching the Android SDK's approach.
  • Unified endpoint — uses /verifyDevice instead of separate /createSession + /listDevices. Cleaner flow, single API call per login.

API

VerifAI.init(config)

Call once, at application startup.

VerifAI.init({
    apiKey: "vf_live_xxx",   // required
    baseUrl: "...",          // optional, override API URL
    publicIpUrl: "..."       // optional, override IP lookup
});

VerifAI.verifyDevice(userId)

Run after your own password check. Every call hits the API — usage is tracked, trust score increments.

const r = await VerifAI.verifyDevice("[email protected]");
// r.status: "trusted" | "pending" | "rejected" | "error"
// r.sessionId    — when status === "pending"
// r.deviceId     — stable id for this browser
// r.trustScore   — 0–100 (when trusted, grows with logins)
// r.reason       — when rejected / error

VerifAI.waitForApproval(sessionId, options?)

Poll until approved, rejected, or timed out.

const a = await VerifAI.waitForApproval(result.sessionId, {
    timeoutMs: 20000,          // default 2 min
    pollIntervalMs: 2000,      // default 2s
    onPoll: (status) => {},    // called every tick
});
// a.status: "approved" | "rejected" | "timeout"

VerifAI.listDevices(userId)

const devices = await VerifAI.listDevices("[email protected]");

VerifAI.removeDevice(deviceId)

await VerifAI.removeDevice("abc123");

VerifAI.clearLocalDevice()

Forgets the local cert. Next verifyDevice() call will be treated as a new device by the API.

VerifAI.getCurrentDeviceId()

const id = await VerifAI.getCurrentDeviceId();

TypeScript

Full types ship with the package:

import VerifAI, { VerifyDeviceResult, VerifAIError } from "@verifa.i/web-sdk";

Browser support

Chrome, Firefox, Safari, Edge. Requires crypto.subtle, fetch, localStorage.

License

Proprietary. Contact VerifAI for licensing.