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

no-disposable-email

v1.0.20260328

Published

A fast, reliable tool to check if an email address uses a disposable domain. Includes an Express API, CLI, and utility function. Perfect for validation in web apps, and scripts.

Downloads

806

Readme

no-disposable-email

CI npm version NPM Downloads Docker

A fast, reliable tool to check if an email address uses a disposable domain. Includes an Express API, CLI, and utility function. Perfect for validation in web apps, and scripts.


Table of Contents


Features

  • 🚀 Express API: /check?email=... endpoint
  • 🛠️ CLI: npx no-disposable-email <email>
  • 🧩 Utility: isDisposable(email)
  • 🐳 Docker support
  • ⚡ Domains are regularly updated from https://github.com/disposable-email-domains/disposable-email-domains/blob/main/disposable_email_blocklist.conf

Demo

Try it online UptimeObserver uptime ratio (30 days) :
Is Disposable Email API or Is Disposable Email GUI


Installation

NPM (CLI & Utility)

npm install no-disposable-email

Clone & Run Locally

git clone https://github.com/yassirh/no-disposable-email.git

cd no-disposable-email

npm install

Usage

API

Start the server:

node index.js

Check an email:

curl 'http://localhost:3000/[email protected]'

Response:

{
  "email": "[email protected]",
  "disposable": true
}

CLI

npx no-disposable-email [email protected]
# or if installed globally
no-disposable-email [email protected]

Utility Function

const { isDisposable } = require('no-disposable-email');

console.log(isDisposable('[email protected]')); // true or false

Heartbeat Endpoint

A simple health check endpoint is available:

GET /heartbeat

Response:

{
  "status": "ok"
}

You can use this to verify the service is running (e.g., for Docker health checks or uptime monitoring).


Docker

Running with Docker

To run the service using Docker:

Start the container, mapping port 3000 inside the container to port 3000 on your host:

docker run -d -p 3000:3000 yassirh/no-disposable-email

The API will be available at: http://localhost:3000/[email protected]

Build and run with Docker:

docker build -t no-disposable-email .

docker run -p 3000:3000 no-disposable-email

Multi-Architecture Image for Docker Hub

To build and push a multi-architecture image to Docker Hub:


docker buildx create --use
# Build for amd64 and arm64 v8
docker buildx build --platform linux/amd64,linux/arm64/v8 -t yassirh/no-disposable-email:latest --push .

Updating the Blocklist

To update the list of disposable domains to the latest version from the official source, run:

npm run update-blocklist

This will download the latest disposable_email_blocklist.conf from the upstream repository.


Development

  • Add domains to disposable_email_blocklist.conf (one per line)
  • Run tests:
npm test

Contributing

Pull requests welcome! For major changes, open an issue first to discuss what you would like to change.


License

You can copy, modify, distribute and use the work, even for commercial purposes, all without asking permission.

Licensed under CC0