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

sts-digital-identity

v1.0.0

Published

SDK for FIDO2 and Digital Identity verification

Readme

STS Digital Identity SDK

The official SDK for integrating Safe Trade Services Digital Identity into your web applications. Enable Passkey-protected, reusable identity verification with custom trust logic in minutes.

Features

  • Passkey Native: Built-in support for FIDO2/WebAuthn hardware-backed security.
  • Provider Agnostic: Define trust rules across multiple KYC/KYB vendors via a single API.
  • Zero-Friction: Users verify once and bring their identity to any platform in the STS ecosystem.
  • Cost-Efficient: Shift the complexity and cost of verification to the user.

Installation

Install the SDK via npm:

npm install sts-digital-identity

Quick Start

1. Initialize the SDK

Initialize the library with your public API key (available in your STS Dashboard).

import { DigitalIdentity } from 'sts-digital-identity';

DigitalIdentity.init("pk_live_your_key_here");

2. Define Trust Requirements

Set up your verification logic using simple and / or conditions.

const requirements = { "and": [ { "or": ["persona:identity", "sumsub:document"] }, "plaid:bank_account" ] };

3. Trigger Verification

Execute the verification process. This automatically handles the browser native Passkey prompt and cryptographic handshake.

async function handleVerification() { try { const isApproved = await DigitalIdentity.verify( "user_token_from_form", requirements );

if (isApproved) {
  console.log("User verified successfully!");
  // Proceed with high-value action
}

} catch (error) { console.error("Verification failed:", error); } }

API Reference

DigitalIdentity.init(apiKey: string)

Sets the global configuration for your project. Should be called once at the entry point of your app.

DigitalIdentity.verify(userToken: string, requirements: TrustRequirement)

  • userToken: The token collected from the user (Ask the user to user their Public Token).
  • requirements: A JSON object defining which providers are required for a Passed status.
  • Returns: Promise

Security

This SDK implements hardware-backed attestation to prevent link-sharing fraud and impersonation. All sensitive biometric and document data is handled by Safe Trade Services and never touches your local servers.

Support

  • Documentation: api.safetradeservices.com
  • Email: [email protected]
  • GitHub Issues: Report a bug at the official repository.