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

sendr-client

v1.0.1

Published

**Sendr Mail API Client** is a simple and lightweight Node.js SDK for sending and broadcasting emails via the [sendr.live](https://sendr.live) API. With this package, you can quickly integrate email-sending functionality into your Node.js applications usi

Readme

Sendr Mail API Client

Sendr Mail API Client is a simple and lightweight Node.js SDK for sending and broadcasting emails via the sendr.live API. With this package, you can quickly integrate email-sending functionality into your Node.js applications using a plug-and-play approach.


Features

  • Simple Integration: Just plug and play with your API key.
  • Send Emails: Send individual or broadcast emails.
  • Broadcast Emails: Easily send emails to multiple recipients using a comma-separated list.
  • Error Handling: Provides detailed error messages for better debugging.

Installation

Install the SDK via npm:

npm install sendr-client

Getting Started

1. Get an API Key

  1. Go to sendr.live and create an account.
  2. Create a Team.
  3. Generate a new API key within the team.

2. Send Emails

You can send individual emails or broadcast emails by passing a comma-separated list of recipient email addresses.

Here’s an example of how to use the SDK:

const Sendr = require('sendr-client');

(async () => {
  try {
    const response = await Sendr({
      recipients: '[email protected]',
      subject: 'Test Email',
      body: '<h1>Hello, this is a test!</h1>',
      apiKey: 'your-api-key-here',
    });
    console.log('Response:', response);
  } catch (error) {
    console.error('Error:', error.message);
  }
})();

API Reference

Sendr(params)

Parameters:

  • recipients (string, required)
    A single email address or a comma-separated list of email addresses for broadcast emails.

  • subject (string, required)
    The subject of the email.

  • body (string, required)
    The email body in HTML format.

  • apiKey (string, required)
    Your API key obtained from sendr.live.

Returns:

A Promise that resolves to the response from the Sendr API.

Example:

const response = await Sendr({
  recipients: '[email protected],[email protected]',
  subject: 'Broadcast Email Test',
  body: '<p>This is a broadcast email.</p>',
  apiKey: 'your-api-key-here',
});
console.log(response);

Error Handling

If the API encounters an error, it throws an error with a detailed message. For example:

  • Missing required fields:
    Error: All parameters (recipients, subject, body, apiKey) are required.

  • Invalid API key:
    Error: API Error: Invalid API key

  • Network issues or other errors:
    Error: Request Error: Network Error


Additional Notes

  • Ensure your API key is kept secure and not exposed publicly.
  • For optimal performance when broadcasting emails, keep the recipient list size manageable to avoid timeouts.

Support

For issues, feature requests, or contributions, please visit the GitHub repository.

If you encounter API-related issues, contact Sendr Live Support.


License

This project is licensed under the MIT License.