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

@passkeybridge/vc-wallet-sdk

v0.4.2

Published

Official PasskeyBridge SDK for issuing and verifying W3C Verifiable Credentials (JWT-VC + SD-JWT-VC) against the PasskeyBridge identity attestation platform.

Readme

@passkeybridge/vc-wallet-sdk

npm version license

Official TypeScript SDK for the PasskeyBridge Verifiable Credentials platform. Issue and verify W3C JWT-VC and SD-JWT-VC credentials, check revocation status, and manage credential lifecycle from any Node.js, Deno, browser, or edge runtime that supports the fetch API.

This is the initial public release (v0.1.0). It ships the network-bound surface against the production PasskeyBridge edge functions. Local wallet storage, holder binding (KB-JWT), and OID4VCI flows ship in v0.2.0 and later, per the CHANGELOG.

Installation

npm install @passkeybridge/vc-wallet-sdk
# or
pnpm add @passkeybridge/vc-wallet-sdk
# or
bun add @passkeybridge/vc-wallet-sdk

Requires Node.js 18+ (or any runtime with global fetch).

Quick start

import { PBWallet } from "@passkeybridge/vc-wallet-sdk";

const wallet = new PBWallet({
  apiKey: process.env.PB_API_KEY!,        // pb_live_... from the dashboard Keys tab
  tenantId: process.env.PB_TENANT_ID!,    // your tenant UUID
});

// Issue a standard JWT-VC
const issued = await wallet.issue({
  subjectDid: "did:web:example.com:users:alice",
  credentialType: "IdentityAttestation",
  claims: { verificationLevel: "enhanced" },
  expirationDays: 90,
});

console.log(issued.credential.credential_id);
console.log(issued.credential.jwt);

API

new PBWallet(options)

| Option | Type | Default | Description | | ----------- | -------------------------- | -------------------------------------- | -------------------------------------------- | | apiKey | string | required | Tenant API key (pb_live_... / pb_test_...). | | tenantId | string | required | Your PasskeyBridge tenant UUID. | | baseUrl | string | https://api.passkeybridge.io/v1 | Override only for staging / self-host. | | fetch | typeof fetch | global fetch | Inject a custom fetch (Undici, polyfill). | | timeoutMs | number | 15000 | Per-request timeout. |

wallet.issue(params)

Issue a JWT-VC (default) or SD-JWT-VC (when disclosureFrame is supplied).

const cred = await wallet.issue({
  subjectDid: "did:web:example.com:users:alice",
  credentialType: "IdentityAttestation",
  claims: { verifiedAt: "2026-05-25T00:00:00Z", verificationLevel: "enhanced" },
  expirationDays: 90,
  // Optional: enables SD-JWT-VC
  disclosureFrame: { verifiedAt: true },
  // Optional: pass a holder JWK to embed `cnf.jwk` for KB-JWT binding
  holderPublicJwk: { kty: "EC", crv: "P-256", x: "...", y: "..." },
});

wallet.verifyPresentation(params) and wallet.verify(params)

const result = await wallet.verifyPresentation({
  vpToken: "eyJ...",
  credentialTypeHint: "IdentityAttestation",
});

if (result.verified) {
  console.log("cross-reference id", result.crossReferenceId);
}

wallet.checkStatus(credentialId)

Single credential status lookup. Returns one of active | suspended | revoked | expired | unknown.

wallet.batchCheckStatus(credentialIds)

Up to 100 ids per call.

const { credentials, checkedAt } = await wallet.batchCheckStatus([
  "urn:uuid:...",
  "urn:uuid:...",
]);

wallet.revoke / suspend / reinstate(credentialId, reason?)

await wallet.revoke("urn:uuid:...", "key_compromise");

wallet.refreshStatusList(issuerDid?)

Force a StatusList2021 rebuild. Returns { etag, totalCredentials, revokedCount, generatedAt }.

Static helpers

import { decodeCredential, hashPhone, PBWalletError } from "@passkeybridge/vc-wallet-sdk";

const { header, payload } = decodeCredential(issued.credential.jwt);
const phoneHash = await hashPhone("+15551234567"); // SHA-256 hex

Errors

All network failures throw PBWalletError:

try {
  await wallet.issue(...);
} catch (err) {
  if (err instanceof PBWalletError) {
    console.error(err.code, err.httpStatus, err.message, err.requestId);
  }
}

Required API key scopes

| Scope | Used by | | ------------ | ------------------------------------------------------------------ | | vc_issue | issue | | vc_verify | verifyPresentation, verify | | vc_status | revoke, suspend, reinstate, refreshStatusList |

checkStatus and batchCheckStatus are public (no scope required) so verifiers can resolve revocation without an API key.

Versioning and stability

The SDK follows semver. The 0.x line may introduce breaking changes between minor versions as the surface fills out. Pin to a minor (^0.1) until 1.0.0.

License

Apache-2.0 © PasskeyBridge LLC.