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

azrael-antismurf

v1.0.0

Published

Lightweight smurf/dupe-detection scoring for signups: disposable domains, fuzzy matches, entropy, IP/device reuse. Includes a daily disposable-domain refresher, CLI, and multi-source merge.

Readme

azrael

Lightweight, dependency-free risk scoring to spot smurf / duplicate accounts during signup.

Signals included:

  • Disposable domains (pluggable list)
  • Email & username normalization
  • Fuzzy similarity (Levenshtein)
  • Shannon entropy (randomness) & vowel ratio heuristic
  • IP/device fingerprint reuse
  • Optional MX check for email domains
  • Daily disposable-domain refresher from one or multiple URLs (newline- or JSON-array formatted) with merge + dedup
  • CLI: npx azrael refresh <urls...> to fetch, merge, and print or write to file

Install

npm i azrael

Quick start (CommonJS)

const az = require('azrael');


// Optional: start daily refresh from multiple curated lists
az.startDisposableRefresher({
urls: [
'https://your.cdn.example/disposable_1.txt',
'https://another.example/domains.json'
],
intervalMs: 24 * 60 * 60 * 1000,
logger: console,
});


const score = az.scoreAccount({ email: '[email protected]', username: 'userone_' });
console.log({ score, decision: az.decideAction(score) });

CLI

Fetch, merge, dedup, and output a combined list.

npx azrael refresh https://list1.txt https://list2.json \
--out disposable_domains.txt # optional: write to file
--json # output JSON array instead of newline list
--silent # suppress logs

Without --out, prints to stdout.

Refresher options

az.startDisposableRefresher({
urls: [url1, url2, ...], // preferred
url: url1, // still supported for single source
intervalMs: 86_400_000,
initial: true,
logger: console,
parse, // optional custom parser
});


az.stopDisposableRefresher();


// Manual one-off refresh
await az.refreshDisposableDomainsFromUrls([url1, url2], { logger, parse });

Accepted formats:

  • Newline-separated domain.tld per line (comments starting with # ignored)
  • JSON array of strings: ["mailinator.com", "yopmail.com"]

API

scoreAccount(input, weights?) => number // 0..100


decideAction(score, thresholds?) => 'allow' | 'challenge' | 'review' | 'block'


// helpers
normalizeEmail, normalizeUsername, levenshtein, normalizedDistance,
shannonEntropy, vowelRatio, isDisposableDomain, getEmailParts, hasMXRecord,
setDisposableDomains, addDisposableDomains, getDisposableDomains,
startDisposableRefresher, stopDisposableRefresher,
refreshDisposableDomainsFromUrl, refreshDisposableDomainsFromUrls,
mergeDisposableDomainLists,
defaultWeights, defaultThresholds