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

verifex

v0.2.0

Published

Official Node.js SDK for Verifex — Real-time Sanctions Screening API

Readme

Verifex Node.js SDK

Official Node.js/TypeScript SDK for Verifex — Real-time Sanctions Screening API.

Screen persons and entities against OFAC, UN, EU, UK, Canada, Australia, Switzerland sanctions lists and 700K+ PEP records in a single API call.

Installation

npm install verifex

Quick Start

import { Verifex } from "verifex";

const verifex = new Verifex({ apiKey: "vfx_your_api_key" });

// Screen a person
const result = await verifex.screen({ name: "Vladimir Putin" });

if (result.isMatch) {
  console.log(`Risk: ${result.riskLevel}`);  // "critical"
  for (const match of result.matches) {
    console.log(`${match.name} (${match.source}) — ${match.confidence}%`);
  }
} else {
  console.log("Clear — no sanctions match");
}

API Reference

new Verifex(config)

const verifex = new Verifex({
  apiKey: "vfx_your_api_key",    // Required
  baseUrl: "https://api.verifex.dev",  // Optional
  timeout: 30000,                 // Optional (ms)
});

verifex.screen(options)

Screen a single person or entity.

const result = await verifex.screen({
  name: "Hezbollah",        // Required
  type: "entity",            // Optional: "person" | "entity"
  country: "Lebanon",        // Optional
  dateOfBirth: "1952",       // Optional
  mode: "broad",             // Optional: "exact" | "broad" (default: "broad")
});

console.log(result.riskLevel);      // "critical"
console.log(result.totalMatches);   // 15
console.log(result.isClear);        // false
console.log(result.isMatch);        // true
console.log(result.matches[0].name);       // "HIZBALLAH"
console.log(result.matches[0].confidence); // 100
console.log(result.matches[0].source);     // "OFAC"
console.log(result.matches[0].matchType);  // "EXACT"

verifex.batchScreen(entities)

Screen multiple entities in one request (Pro plan+).

const batch = await verifex.batchScreen([
  { name: "Vladimir Putin", type: "person" },
  { name: "Sberbank", type: "entity" },
  { name: "John Doe" },
]);

for (const result of batch.results) {
  console.log(`${result.query.name}: ${result.riskLevel} (${result.totalMatches} matches)`);
}
console.log(`Total time: ${batch.totalDurationMs}ms`);

verifex.usage()

Get current usage statistics.

const usage = await verifex.usage();
console.log(`Plan: ${usage.plan}`);
console.log(`Used: ${usage.currentMonthUsage} / ${usage.monthlyQuota}`);
console.log(`Remaining: ${usage.remaining}`);

verifex.health()

Check API status (no authentication required).

const health = await verifex.health();
console.log(`Status: ${health.status}`);        // "ok"
console.log(`Entries: ${health.totalEntries}`);  // 745648
console.log(`Healthy: ${health.isHealthy}`);     // true

verifex.listKeys() / verifex.createKey() / verifex.revokeKey()

Manage API keys programmatically.

// List keys
const keys = await verifex.listKeys();

// Create a new key
const newKey = await verifex.createKey("Production");
console.log(newKey.key); // "vfx_..." (shown only once!)

// Revoke a key
await verifex.revokeKey(keys[0].id);

Error Handling

import { Verifex, VerifexError, RateLimitError, QuotaExceededError } from "verifex";

try {
  const result = await verifex.screen({ name: "Test" });
} catch (err) {
  if (err instanceof RateLimitError) {
    console.log(`Rate limited. Retry in ${err.retryAfter}s`);
  } else if (err instanceof QuotaExceededError) {
    console.log("Monthly quota exceeded. Upgrade your plan.");
  } else if (err instanceof VerifexError) {
    console.log(`API error: ${err.message} (${err.code})`);
  }
}

TypeScript

Full TypeScript support with exported types:

import type { ScreenResult, Match, RiskLevel, ScreenOptions } from "verifex";

CommonJS

const { Verifex } = require("verifex");
const verifex = new Verifex({ apiKey: "vfx_your_key" });

Links

License

MIT