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

@gemini86/node-red-sendgrid

v1.2.0

Published

Sending e-mail node using SendGrid service

Readme

@gemini86/node-red-sendgrid

Send e-mails using the SendGrid service from Node-RED. This node provides a reliable alternative to the default e-mail node, especially when using cloud or remote deployments.

Inputs

  • msg.from (string): Sender e-mail address
  • msg.to (string): Recipient e-mail address
  • msg.cc (string, optional): Carbon copy recipient(s)
  • msg.bcc (string, optional): Blind carbon copy recipient(s)
  • msg.topic or msg.subject (string): E-mail subject
  • msg.payload (string): E-mail body (plain text or HTML)
  • msg.attachments (Buffer | Array | Object): One or more attachments. Use a Buffer for a single attachment, or an array of Buffers/objects for multiple. Objects must match SendGrid's attachment format. Filenames are auto-generated unless provided.
  • msg.templateId (string, optional): SendGrid dynamic template ID
  • msg.templateData (object or string, optional): Data for dynamic template

Details

To use this node:

  1. Install via the Node-RED palette manager (@gemini86/node-red-sendgrid).
  2. Get an API key from SendGrid.
  3. Paste the API key into the node's configuration.
  4. Configure your flow to set the required message properties.

Attachments

To add attachments, set msg.attachments:

  • For a single attachment, use a Buffer.
  • For multiple attachments, use an array of Buffers or objects in SendGrid's format.
  • If using Buffers, filenames will be auto-generated unless you provide att.filename or msg.filenames (array of names in the same order as the Buffers).
  • msg.payload is always used as the e-mail body (string or HTML), never as an attachment.

SendGrid attachment object example:

{
  content: "<base64-encoded string>",
  filename: "document.pdf",
  type: "application/pdf", // optional
  disposition: "attachment", // optional
  content_id: "unique-id" // optional
}

Skip Bad Attachments

If enabled, attachments that cannot be normalized (invalid or unsupported) will be skipped and a warning will be logged instead of failing the node. If disabled, the node will error on the first bad attachment.

Note: Legacy usage of msg.payload as a Buffer for attachments is no longer supported. Always use msg.attachments for attachments.

References