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

@canitsend/client

v1.0.0

Published

Client for the CanItSend API — SPF/DKIM/DMARC audit from live DNS, SPF flattening, and email validation.

Downloads

146

Readme

@canitsend/client

Zero-dependency client for the CanItSend API. Two questions, one API.

npm install @canitsend/client

Every endpoint needs an API key. The free tier includes 100 audits/month — instant, self-serve, no sales call: https://canitsend.com/#pricing

import { CanItSendClient } from "@canitsend/client";
const cis = new CanItSendClient({ apiKey: process.env.CANITSEND_KEY });

1. Can my domain send?

const a = await cis.check("acme.com");   // also accepts "[email protected]" or a URL

console.log(a.grade, a.score);           // "F" 40

// Plain-language answer to "but my email works!"
console.log(a.explanation?.headline);
// → "Your mail works — but you can't prove you sent it."

// The exact records to paste, chosen for YOUR detected mail provider
for (const r of a.suggestedRecords) console.log(r.type, r.host, r.value);
// → TXT @        v=spf1 include:_spf.google.com ~all
// → TXT _dmarc   v=DMARC1; p=none; rua=mailto:[email protected]

The SPF 10-lookup limit

Over 10 DNS lookups means PermError — SPF fails entirely, not partially. We count it correctly: mx costs 1, not one per MX host. Most tools get this wrong.

const spf = await cis.spfCheck("acme.com");
console.log(spf.lookupCount, "/ 10", spf.lookupLimitExceeded ? "PermError!" : "");

// Fix it: resolve every include: down to raw IPs (which cost 0 lookups)
const { flattened } = await cis.spfFlatten("acme.com");

2. Should I send to this address?

const v = await cis.validate("[email protected]");
console.log(v.verdict);      // "risky"
console.log(v.didYouMean);   // "[email protected]"

await cis.validate("[email protected]");  // risky   — disposable
await cis.validate("[email protected]");     // risky   — role account
await cis.validate("[email protected]");        // invalid — no MX, will bounce

What we don't claim: we do not verify the mailbox exists and do not detect catch-alls. Both need an SMTP probe on port 25, which we deliberately don't run. mailboxVerified is always false. The strongest verdict is deliverable_domain — meaning the domain accepts mail.

Bulk (Agency+): auditBulk([...]) up to 100 domains · validateBulk([...]) up to 1,000 addresses.

Monitoring

await cis.createMonitor("acme.com", { webhookUrl: "https://you/hook", frequency: "daily" });
// We re-audit on a schedule and POST your webhook when the posture regresses.

Errors throw CanItSendError with .status and .problem (RFC 9457 problem+json).