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

mail-debugger

v0.3.2

Published

Lightweight fake SMTP server that catches emails during development. Inspect, filter, and manage caught emails through a REST API, web UI, or terminal client.

Readme

Mail Debugger

Lightweight fake SMTP server that catches emails during development. Inspect, filter, and manage caught emails through a REST API, web UI, or interactive terminal client.

Quick Start

# Run the server (no install needed)
pnpx mail-debugger

Or install it once as a dev dependency:

pnpm add -D mail-debugger
pnpx mail-debugger

This starts an SMTP server on port 2525 and an API server on port 3000 with Swagger UI at http://localhost:3000/swagger and a web inbox at http://localhost:3000.

# Custom ports with persistent storage
pnpx mail-debugger --smtp-port 1025 --api-port 8080 --persist

TLS

TLS is disabled by default. Use --tls to enable it. A self-signed certificate is generated on startup -- disable certificate validation in your client.

| Mode | Flag | Description | | ------------ | ---------------- | ------------------------------------------------ | | none | --tls none | No encryption (default) | | starttls | --tls starttls | Starts unencrypted, client upgrades via STARTTLS | | implicit | --tls implicit | Encrypted from the start (SMTPS) |

pnpx mail-debugger --tls starttls
pnpx mail-debugger --tls implicit --smtp-port 4650

CLI Client

The terminal client is available as a separate package mail-debugger-cli:

pnpx mail-debugger-cli                   # Interactive TUI
pnpx mail-debugger-cli list              # List all emails
pnpx mail-debugger-cli show 5            # Show email details
pnpx mail-debugger-cli health            # Server status

See packages/cli/README.md for all commands and options.

Slim API build for CI / E2E

Need only the SMTP + REST API without the bundled web UI? Install mail-debugger-api -- same wire protocol, smaller footprint:

pnpx mail-debugger-api --smtp-port 1025 --api-port 8080

SMTP Configuration

Point any SMTP client to localhost:2525. Authentication is optional -- any credentials are accepted.

import { createTransport } from 'nodemailer';

// No TLS (default)
const transport = createTransport({
  host: 'localhost',
  port: 2525,
  secure: false,
});

// STARTTLS (--tls starttls)
const tlsTransport = createTransport({
  host: 'localhost',
  port: 2525,
  secure: false,
  tls: { rejectUnauthorized: false },
});

// Implicit TLS (--tls implicit)
const smtpsTransport = createTransport({
  host: 'localhost',
  port: 2525,
  secure: true,
  tls: { rejectUnauthorized: false },
});

Packages

| Package | Description | Docs | | --------------------- | -------------------------------- | ------------------------------------------------ | | mail-debugger | SMTP server + REST API + web UI | apps/server/README.md | | mail-debugger-cli | Terminal client (TUI + commands) | packages/cli/README.md | | mail-debugger-api | Slim API build for CI/E2E | packages/api/README.md |

Roadmap

  • [x] Web UI -- Browser-based inbox
  • [x] CLI UI -- Terminal-based inbox viewer
  • [x] Full SMTP features -- SIZE, STARTTLS, authentication
  • [ ] JS/TS API client -- Interact with the REST API programmatically
  • [ ] IMAP server -- Email client support
  • [ ] MCP support -- Model Context Protocol for AI agents

License

MIT