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

@vigilhq/sdk

v0.1.1

Published

Official TypeScript/JavaScript SDK for the Vigil compliance screening API

Readme

@vigilhq/sdk

Official TypeScript/JavaScript SDK for the Vigil compliance screening API.

Installation

npm install @vigilhq/sdk
# or
pnpm add @vigilhq/sdk
# or
yarn add @vigilhq/sdk

Quick Start

import { Vigil } from "@vigilhq/sdk";

const client = new Vigil({ apiKey: "vgl_sk_live_..." });

// Screen an entity
const result = await client.screen({ entity: "John Doe" });
console.log(result.status);          // "clear"
console.log(result.risk_score);      // 12
console.log(result.recommendation);  // "approve"

// Screen with context to reduce false positives
const result2 = await client.screen({
  entity: "Jane Smith",
  context: "onboarding",
  date_of_birth: "1990-01-15",
  nationality: "CA",
});

// Check a sanctioned entity
const result3 = await client.screen({ entity: "Osama bin Laden" });
console.log(result3.status);          // "match"
console.log(result3.risk_level);      // "critical"
console.log(result3.recommendation);  // "block"

API Reference

new Vigil(config)

| Option | Type | Default | Description | |-----------|----------|--------------------------|----------------------| | apiKey | string | — | Your Vigil API key | | baseUrl | string | https://api.vigilhq.dev | API base URL | | timeout | number | 30000 | Request timeout (ms) |

Screening

// Screen an entity
const result = await client.screen({ entity: "John Doe", context: "onboarding" });

// Get a past screening result
const past = await client.getScreening("scr_abc123");

// List screenings (paginated)
const list = await client.listScreenings({ page: 1, per_page: 25 });

Batch Screening

// Submit batch (up to 1,000 entities)
const job = await client.batchScreen([
  { entity: "Entity A" },
  { entity: "Entity B" },
]);

// Wait for completion
const completed = await client.waitForBatch(job.job_id);

Continuous Monitoring

// Add entity to monitoring
await client.addMonitoredEntity({ entity: "Acme Corp", entity_type: "organization" });

// List monitored entities
const monitored = await client.listMonitoredEntities();

// Remove from monitoring
await client.removeMonitoredEntity("mon_abc123");

API Keys

const newKey = await client.createApiKey({ name: "production" });
const keys = await client.listApiKeys();
await client.revokeApiKey("key_abc123");

Webhooks

await client.createWebhook({ url: "https://example.com/webhook", events: ["screening.completed"] });
const webhooks = await client.listWebhooks();
await client.deleteWebhook("wh_abc123");

Organization & Usage

const org = await client.getOrg();
const usage = await client.getUsage("2026-02");

Error Handling

import { Vigil, VigilError } from "@vigilhq/sdk";

try {
  await client.screen({ entity: "test" });
} catch (err) {
  if (err instanceof VigilError) {
    console.log(err.code);    // "RATE_LIMIT_EXCEEDED"
    console.log(err.status);  // 429
    console.log(err.message); // "Monthly screening limit reached..."
  }
}

License

MIT