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

facevault

v1.0.2

Published

Node.js client for the FaceVault identity verification API — privacy-first KYC with liveness detection, face matching, and document verification.

Readme

FaceVault Node.js SDK

CI npm version Node versions License: MIT Tests

Node.js/TypeScript client for the FaceVault identity verification API — privacy-first KYC with liveness detection, face matching, and document verification.

Features

  • TypeScript-first — full type definitions, interfaces for all models
  • Zero runtime dependencies — uses native fetch (Node 18+) and node:crypto
  • ESM + CJS — dual-format package, works everywhere
  • Webhook verification — HMAC-SHA256 signature validation with timing-safe comparison
  • Secure by default — HTTPS enforced, API keys validated, secrets redacted from inspect

Installation

npm install facevault

Quick start

import { FaceVaultClient } from "facevault";

const client = new FaceVaultClient({ apiKey: "fv_live_your_api_key" });

// Create a verification session
const session = await client.createSession("user-123");
console.log(session.webappUrl); // Send this URL to your user

// With proof of address required
const session2 = await client.createSession("user-123", { requirePoa: true });

// Check session status
const status = await client.getSession(session.sessionId);
console.log(status.status);        // "in_progress", "passed", "failed", "review"
console.log(status.trustScore);     // 0-100 trust score
console.log(status.trustDecision);  // "accept", "review", "reject"

Webhook verification

import { verifySignature, parseEvent } from "facevault";

const body = request.body; // raw string or Buffer
const signature = request.headers["x-facevault-signature"];

if (verifySignature(body, signature, "whsec_your_secret")) {
  const event = parseEvent(body);
  console.log(event.event); // "verification.completed"
  console.log(event.sessionId);
  console.log(event.faceMatchPassed);
  console.log(event.trustScore);     // 0-100
  console.log(event.trustDecision);  // "accept", "review", "reject"
  console.log(event.sanctionsHit);   // true/false
}

Error handling

import {
  FaceVaultClient,
  AuthError,
  NotFoundError,
  RateLimitError,
} from "facevault";

const client = new FaceVaultClient({ apiKey: "fv_live_your_api_key" });

try {
  const status = await client.getSession("nonexistent");
} catch (err) {
  if (err instanceof AuthError) {
    console.log("Invalid API key");
  } else if (err instanceof NotFoundError) {
    console.log("Session not found");
  } else if (err instanceof RateLimitError) {
    console.log("Too many requests — back off");
  }
}

Security

The SDK enforces security best practices out of the box:

  • HTTPS onlyhttp:// URLs are rejected at init to prevent credentials leaking over plaintext
  • Key validation — empty or whitespace-only API keys throw TypeError immediately
  • Secret redaction — custom inspect and toJSON() mask the API key, safe for logging
  • True private fields — ES2022 # private fields make the API key inaccessible at runtime
  • Timing-safe comparison — webhook signature verification uses crypto.timingSafeEqual

What's new in 1.0.1

  • Webhook signature verification now HMACs the raw request body instead of re-serializing the parsed JSON. The old approach couldn't reproduce the server's exact signed bytes for payloads containing non-ASCII characters (names, addresses) or whole-number floats, so valid webhooks could be silently rejected. Verification is now byte-exact — pass the body exactly as received.
  • README + examples now document the webhook header as X-FaceVault-Signature (the API has always sent this; v1.0.0 docs incorrectly showed X-Signature).
  • Reusable identity credentials (/credentials/*) are noted in the Roadmap section — these are planned for the v2 SDK line alongside FacePass / FaceKey, not v1.x.

Documentation

Roadmap

The FaceVault platform also offers reusable identity credentials ("verify once, prove forever" — credential challenge / verify / renew / status). These endpoints aren't wrapped by this SDK yet; they're planned for a future release. Until then, call them directly via the REST API.

Contributing

Pull requests welcome! See CONTRIBUTING.md for repo layout, local dev commands, and PR rules.

Reporting a vulnerability

To report a vulnerability, email [email protected] — do not open a public issue. See SECURITY.md for scope and response times.

Changelog

See CHANGELOG.md for a full history of changes.

License

MIT © Kaditham Holdings Pte Ltd