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

@bizverify/sdk

v0.1.0

Published

Official Node.js/TypeScript SDK for the BizVerify API — verify business entities against official government registries (Secretary of State, Companies House). Supports 61 jurisdictions across the US and Europe.

Downloads

105

Readme

@bizverify/sdk

Official TypeScript/Node.js SDK for the BizVerify business verification API.

Installation

npm install @bizverify/sdk

Requires Node.js 18+ (uses built-in fetch). Zero runtime dependencies.

Quick Start

import { BizVerify } from '@bizverify/sdk';

const biz = new BizVerify({ apiKey: 'bv_live_...' });

// Quick pre-check
const result = await biz.verification.verify({
  entity_name: 'Acme Corporation',
  jurisdiction: 'us-fl',
});

// Full verification with polling
const full = await biz.verification.verifyAndWait({
  entity_name: 'Acme Corporation',
  jurisdiction: 'us-fl',
  verification_level: 'full',
});

Authentication

BizVerify uses API key authentication. Get your key via the passwordless auth flow:

const biz = new BizVerify();

// Step 1: Request access (sends OTP to email)
await biz.auth.requestAccess({ email: '[email protected]', accept_terms: true });

// Step 2: Verify with the code from your email
const { api_key } = await biz.auth.verifyAccess({
  email: '[email protected]',
  code: '123456',
  label: 'my-app',
});

// Client is now auto-configured with the new API key.
// For future sessions, pass the key directly:
const biz2 = new BizVerify({ apiKey: api_key });

Credit & Rate-Limit Tracking

Every API response captures credit and rate-limit headers:

await biz.verification.verify({ entity_name: 'Acme', jurisdiction: 'us-fl' });

const meta = biz.lastResponseMeta;
console.log(meta?.creditsRemaining);    // 85
console.log(meta?.creditsCharged);      // 15
console.log(meta?.rateLimitRemaining);  // 59

Resources

Auth

await biz.auth.requestAccess({ email, accept_terms: true });
const { api_key } = await biz.auth.verifyAccess({ email, code, label: 'my-agent' });

Verification

// Start verification
const job = await biz.verification.verify({
  entity_name: 'Acme Inc',
  jurisdiction: 'us-fl',
  verification_level: 'full',
  webhook_url: 'https://example.com/hook', // optional
});

// Poll until complete
const result = await biz.verification.verifyAndWait(
  { entity_name: 'Acme Inc', jurisdiction: 'us-fl', verification_level: 'full' },
  { timeoutMs: 120_000, onStatusChange: (s) => console.log(s.status) },
);

// Check job status manually
const status = await biz.verification.getStatus(jobId);

Search

// Single page
const page = await biz.search.find({ entity_name: 'Acme', jurisdiction: 'us-fl' });

// Auto-paginate all results
for await (const entity of biz.search.findAll({ entity_name: 'Acme' })) {
  console.log(entity.entity_name);
}

Entities

const entity = await biz.entities.get(entityId);
const history = await biz.entities.history(entityId, { limit: 10 });

Account

const account = await biz.account.get();
const usage = await biz.account.usage({ days: 7 });
const data = await biz.account.dataExport();
await biz.account.updateEmail({ email: '[email protected]' });
const key = await biz.account.createKey({ label: 'Production' });
await biz.account.revokeKey(keyId);

Billing

const billing = await biz.billing.get();
const { url } = await biz.billing.purchase({ package_id: 'starter' });

Config (no auth required)

const biz = new BizVerify();
const config = await biz.config.get();
console.log(config.jurisdictions.supported.us); // ['us-fl', 'us-de', ...]
console.log(config.pricing.creditCosts);        // { verify: 15, search: 2 }

const { jurisdictions } = await biz.config.jurisdictions();

Checker (free, no auth)

const biz = new BizVerify();
const result = await biz.checker.check({ entity_name: 'Acme', jurisdiction: 'us-fl' });

Error Handling

All API errors are thrown as typed exceptions:

import { BizVerify, InsufficientCreditsError, RateLimitError } from '@bizverify/sdk';

try {
  await biz.verification.verify({ entity_name: 'Test', jurisdiction: 'us-fl' });
} catch (err) {
  if (err instanceof InsufficientCreditsError) {
    console.log('Buy more credits');
  } else if (err instanceof RateLimitError) {
    console.log(`Retry after ${err.retryAfter}s`);
  }
}

| Exception | Status | When | |-----------|--------|------| | ValidationError | 400, 422 | Invalid request parameters | | AuthenticationError | 401 | Bad/missing API key | | InsufficientCreditsError | 402 | Not enough credits | | AuthorizationError | 403 | Forbidden (email not verified, account disabled) | | NotFoundError | 404 | Entity/job not found | | ConflictError | 409 | Duplicate email, already refunded | | RateLimitError | 429 | Too many requests | | InternalError | 5xx | Server error (auto-retried) | | TimeoutError | — | Polling timeout | | JobFailedError | — | Verification job failed |

Configuration

const biz = new BizVerify({
  apiKey: 'bv_live_...',
  baseUrl: 'https://api.bizverify.co', // default
  maxRetries: 2,                        // retries on 5xx (default: 2)
  timeout: 30_000,                      // per-request timeout ms (default: 30s)
  fetch: customFetch,                   // custom fetch implementation
});

License

MIT