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

@proofwire/sdk

v0.2.0

Published

TypeScript client for Proofwire: email, phone and IP validation with three-state verdicts and the evidence behind them.

Readme

@proofwire/sdk

Email, phone and IP validation for TypeScript and JavaScript.

npm install @proofwire/sdk
import { Proofwire } from '@proofwire/sdk';

const proofwire = new Proofwire();  // reads PROOFWIRE_API_KEY

const result = await proofwire.email('[email protected]');

const action = result.match({
  valid:   () => 'send',
  invalid: () => 'drop',
  unknown: () => 'ask them to confirm the address',
});

The one design decision worth knowing

There is no result.valid.

That property would be the most convenient thing this package could offer and the most damaging, because if (result.valid) files every inconclusive answer under "not valid" — and inconclusive is the case the product exists to surface. A large minority of business mail servers accept every address you ask about, so nothing observable distinguishes a real mailbox from a fictional one. Most validators resolve that into "valid" and invoice you. You find out when it bounces.

So verdicts have three states, and match requires a handler for all three. Leave one out and it does not compile:

Property 'unknown' is missing in type '{ valid: ...; invalid: ...; }'
but required in type 'VerdictHandlers<string>'.

Inconclusive verdicts are never billed. You are not paying for the honesty.

What a result carries

const result = await proofwire.email('[email protected]');

result.verdict;              // 'unknown'
result.confidence;           // 0.52
result.attributes.catchAll;  // true
result.billing.credits_charged;  // 0
result.billing.reason;       // why it cost what it did, in plain language

for (const e of result.evidence) {
  console.log(`[${e.source}] ${e.detail} (${e.weight})`);
}
// [syntax] Address is syntactically well formed. (0.8)
// [mx]     1 MX record published. (1.9)
// [smtp]   Control probe: the server also accepted an address that cannot
//          exist, so its acceptance carries no information. (-1.4)

The control probe is the part worth noticing. Before trusting an acceptance, the server is asked about an address that cannot exist. If that is accepted too, the acceptance of the real one means nothing, and the verdict says so.

Retries and double charges

Every call carries an idempotency key, generated for you. A retry after a timeout replays the original response instead of spending again, so the client retries on 5xx and 429 by default without risking a double charge. A 429 is respected by the header it came with, not by a guess.

Pass your own key when a retry has to survive a process restart:

await proofwire.email(address, { idempotencyKey: `signup:${userId}` });

Errors

Separated by what you should do about them, because a malformed key is a deploy problem, an empty balance is a billing problem, and a 502 is a wait-and-retry problem.

| | | |---|---| | AuthenticationError | Key missing, malformed or revoked | | InsufficientCreditsError | Out of credits, or past your spend cap | | InvalidRequestError | The value or the request is wrong | | RateLimitError | Carries retryAfterSeconds | | ServiceError | Our side; already retried | | ConnectionError | Never reached us |

An inconclusive verdict is not among them. It is a successful response.

Configuration

new Proofwire({
  apiKey: 'pk_live_...',   // or PROOFWIRE_API_KEY
  timeoutMs: 15_000,
  maxRetries: 2,
});

A pk_test_ key answers from fixed sandbox fixtures and is never billed, which is what makes it usable in a test suite. proofwire.isTestMode tells you which kind you have.

Links

MIT.