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

verifly-email

v1.0.0

Published

Official TypeScript/Node SDK for the Verifly email-verification API (verifly.email)

Readme

verifly-email (Node / TypeScript)

Official TypeScript/Node SDK for the Verifly email-verification API.

Package naming. The scoped name verifly-email is the official package. The unscoped verifly name on npm is not maintained by this project — always install the scoped verifly-email. (On PyPI, the Python SDK is verifly-email (plain verifly/verifly-sdk on PyPI are unrelated products).)

  • Zero runtime dependencies — uses the built-in fetch (Node 18+).
  • Fully typed request/response interfaces derived from the live OpenAPI spec.
  • Built-in retry with backoff on 429 / 5xx (honors Retry-After).
  • Automatic Idempotency-Key for buyCredits and submitBulk.
  • Typed VeriflyError (code, message, requestId) on API errors.

Install

npm install verifly-email        # once published

Quick start

import { VeriflyClient, VeriflyError } from "verifly-email";

const client = new VeriflyClient("vf_your_api_key"); // baseUrl defaults to https://verifly.email

try {
  const r = await client.verify("[email protected]");
  console.log(r.result);         // "deliverable" | "undeliverable" | "risky" | "unknown"
  console.log(r.recommendation); // "safe_to_send" | "risky" | "do_not_send"
  console.log(r.credits);        // { used: 1, remaining: 99 }
} catch (e) {
  if (e instanceof VeriflyError) {
    console.error(e.code, e.message, e.requestId);
  }
}

CommonJS works too:

const { VeriflyClient } = require("verifly-email");

Authentication

Every call (except register) authenticates with your vf_ key, sent as Authorization: Bearer <api_key>.

const client = new VeriflyClient("vf_...", { baseUrl: "https://verifly.email" });

Create an account programmatically

const res = await VeriflyClient.register("[email protected]", "a-strong-password");
const apiKey = res.api_key!.key; // shown ONCE — store it now
const client = new VeriflyClient(apiKey);

Methods

| Method | Description | | --- | --- | | verify(email) | Verify a single address → VerificationResult. | | verifyBatch(emails, options?) | Verify up to 100 addresses synchronously. | | clean(emails, options?) | Clean/filter a list (no verification, no credits). | | extract(text, options?) | Pull email addresses out of text/CSV. | | submitBulk({ emails?, text?, webhook_url?, ... }) | Create an async bulk job (up to 1M). | | jobs({ status?, limit?, offset? }) | List bulk jobs. | | job(jobId) | Get a bulk job's status. | | jobResults(jobId) | Get a completed job's per-email results. | | account() | Account profile + credit summary. | | credits() | Current credit balance. | | usage({ period?, limit? }) | API usage summary (day/week/month). | | packages() | List credit packages and prices. | | paymentHistory() | List payment history. | | buyCredits(packageId, { method?, currency? }) | Create a Stripe/crypto checkout. | | VeriflyClient.register(email, password) (static) | Self-register, returns account + API key. |

Verdict shape (VerificationResult)

interface VerificationResult {
  success: boolean;
  email: string;
  is_valid: boolean | null;
  result: "deliverable" | "undeliverable" | "risky" | "unknown";
  reason: string;
  details: {
    syntax_valid: boolean; domain_exists: boolean; mx_records: boolean;
    smtp_valid: boolean; is_disposable: boolean; is_role_account: boolean;
    is_catch_all: boolean; is_free_provider: boolean; provider: string;
  };
  recommendation: "safe_to_send" | "risky" | "do_not_send";
  confidence?: number;
  did_you_mean?: string | null;
  credits: { used: number; remaining: number };
}

Examples

// Batch (<=100), synchronous
const batch = await client.verifyBatch(["[email protected]", "[email protected]"], {
  exclude_role_accounts: true,
});
for (const item of batch.results) console.log(item.email, item.result);

// List hygiene without spending credits
await client.clean(["[email protected] ", "[email protected]", "bad"]);
await client.extract("contact us at [email protected] or [email protected]");

// Async bulk + polling
const created = await client.submitBulk({ emails, webhook_url: "https://you/webhook" });
const status = await client.job(jobId);
const results = await client.jobResults(jobId);

// Account / billing
await client.credits();
await client.packages();
await client.buyCredits("pro");                              // Stripe
await client.buyCredits("pro", { method: "crypto", currency: "USDT" });

Errors

API error envelopes ({ success: false, error: {...} }) and non-2xx responses throw VeriflyError:

try {
  await client.verify("nope");
} catch (e) {
  if (e instanceof VeriflyError) {
    e.code;       // "invalid_email" | "insufficient_credits" | "rate_limit_exceeded" | ...
    e.message;
    e.requestId;  // from the x-request-id response header
    e.status;     // HTTP status
    e.suggestion; // optional remediation hint
  }
}

Retries & idempotency

  • 429 and 5xx are retried (default 3×) with exponential backoff, honoring Retry-After. Configure via new VeriflyClient(key, { maxRetries, timeoutMs }).
  • buyCredits and submitBulk send an Idempotency-Key header (auto-generated per call; override with { idempotencyKey }).

Build

npm install
npm run build   # emits dist/index.js + dist/index.d.ts

License

MIT