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

postal-ts

v1.0.4

Published

Typescript SDK for Postal Server, an open source mail delivery platform

Readme

Postal Server SDK for TypeScript

license

Welcome to Postal Server SDK for TypeScript! 🎉

This is a friendly and easy-to-use library for interfacing with the open source mail delivery platform, Postal. It's written in TypeScript, to provide type safety and autocompletion for a better developer experience. Our aim is to make sending emails as enjoyable and as painless as possible!

Installation

You can easily install this SDK with npm:

npm install postal-ts

Or with yarn:

yarn add postal-ts

Usage

Here's a simple example of how to send an email ✉️ with this SDK:

import { Postal } from "postal-ts";

const postal = new Postal("postal.your-domain.com", "your-server-key");

postal.send({
    from: "[email protected]",
    to: "[email protected]",
    subject: "Hello, Postal!",
    body: "This is a simple test email.",
  });

You can also use an html body just with the isHtml label:

postal.send({
    ...
    body: "<h1>This is an awesome title</h1><p>Followed by a paragraph</p>",
    isHtml: true,
  })

Do you have multiple recipients? Just use an array:

postal.send({
    to: ["[email protected]", "[email protected]"],
    ...
  })

You can also add cc, bcc, sender and replyTo fields:

postal.send({
    cc: "[email protected]",
    bcc: "[email protected]",
    sender: "[email protected]",
    replyTo: "[email protected]",
    ...
  })

You can also pass an array for cc and bcc fields:

postal.send({
    cc: ["[email protected]", "[email protected]"],
    bcc: ["[email protected]", "[email protected]"],
    ...
  })

The send method returns sent messages with their ids:

const { id, messages } = await postal.send(...);

Acknowledgements

Huge thanks to the creators of Postal, the open source mail delivery platform that inspired this project. We are standing on the shoulders of giants! 🙏 Check out their official documentation to learn more about what you can do with Postal and this SDK.

Contributing

As an open source project, we welcome contributions of all sorts! Whether it's filing an issue, fixing a bug, improving documentation, or adding a new feature, your contributions are greatly appreciated. Please take a look at our Contributing Guidelines for more information on how you can contribute.

License

This project is licensed under the MIT License.

Questions? Need Help?

Please don't hesitate to open an issue if you have any questions or need any help. We're here to help you out! You can also reach us at [email protected].

Happy emailing! 💌


Made with 🖤 by Widenex