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

ehlo

v0.0.9

Published

SMTP server to rest

Readme

Ehlo SMTP Server

NPM version license Downloads

Build Status Coverage Status Codacy Badge Code Climate

Dependencies Status devDependencies Status peerDependencies Status

Ehlo is a SMTP server which send every mails to an api in a nice json format

Install

npm i -g ehlo

Using It

ehlo -p 10025 -a http://localhost/myAwesomApi

Now send a mail with your favorite lib (like nodemailer) with localhost:10025 as SMTP server.

Your mail will be send with a POST request to http://localhost/myAwesomApi. All the json is posted in a mail form-data variable.

Here a tcpdump of a POST request :

13:41:45.987903 IP 127.0.0.1.52340 > 127.0.0.1.80: Flags [P.], seq 1:274, ack 1, win 12759, options [nop,nop,TS val 756661265 ecr 756661265], length 273
E..EP!@[email protected]...:jef..1..9.....
-...-...POST / HTTP/1.1
host: localhost
content-type: multipart/form-data; boundary=--------------------------511395648416127300743092
content-length: 249
Connection: close

----------------------------511395648416127300743092
Content-Disposition: form-data; name="mail"

13:41:45.987961 IP 127.0.0.1.52340 > 127.0.0.1.80: Flags [P.], seq 274:422, ack 1, win 12759, options [nop,nop,TS val 756661265 ecr 756661265], length 148
E...%.@[email protected]...:jef..1........
-...-...{"text":"Just an example\n","headers":{"subject":"Try"},"subject":"Try","priority":"normal"}

You can also store emails to disk with the --save [path] or -s [path] option. Demo

For more informations about the json results, look at the mailparser library.

Setting DNS

If you want to receive real emails on your api, you should setup your DNS RECORDS. For example, if you want to receive emails at *@example.com.

  • An MX Record: example.com MX 10 mx.domain.com
  • A a record: mx.subdomain A <ip of your ehlo server>

Contributing

Provide a pull request (with tested code) to include your work in this main project. Issues may be awaiting for help so feel free to give a hand, with code or ideas.

License

Ehlo is under the MIT license. Please see LICENSE