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 🙏

© 2025 – Pkg Stats / Ryan Hefner

node-red-contrib-wysiwyg

v1.0.3

Published

A stable and reliable WYSIWYG editor for Node-RED with rich text editing capabilities, perfect for email templates and HTML content. Battle-tested in production environments.

Readme

Node-RED WYSIWYG Editor

Node-RED WYSIWYG Editor

A WYSIWYG (What You See Is What You Get) editor node for Node-RED.

Overview

This node allows you to create and edit rich text content directly within your Node-RED flows. It's particularly useful for creating:

  • Email templates
  • HTML content
  • Formatted reports
  • Documentation
  • Any scenario requiring rich text editing

WYSIWYG Editor Node

Features

  • Rich Text Editor: Full-featured WYSIWYG editor with formatting options
  • Flexible Output: Store content in msg, flow, or global context
  • Email Ready: Perfect for creating HTML email templates
  • Easy Integration: Works seamlessly with Node-RED's email nodes
  • Customizable: Set custom field names for better flow organization

Installation

Run the following command in your Node-RED user directory (typically ~/.node-red):

npm install node-red-contrib-wysiwyg

After installation, restart Node-RED to make the node available in your palette.

Usage

  1. Drag the WYSIWYG node from the palette to your flow
  2. Double-click the node to open its configuration
  3. Enter a name for the node (optional but recommended)
  4. Configure the output settings:
    • Field: The property name to output to (default: 'payload')
    • Field Type: Where to store the output (msg, flow, or global context)
  5. Click "Done" to save the configuration
  6. Connect the node to other nodes in your flow as needed

Email Template Example

Here's how to use this node to create an email template:

  1. Add a WYSIWYG node to your flow
  2. Double-click to open the editor
  3. Create your email template with formatting, images, and links
  4. Set the output field to html (or your preferred property name)
  5. Connect it to an email node (like node-red-node-email)
  6. In your email node, use msg.html as the email body

Example Flow:

[ WYSIWYG (Email Template) ] --> [ Email Node ]

Using Template Variables

You can include dynamic content using handlebars syntax in your templates:

<h1>Hello {{msg.name}}!</h1>
<p>Your order #{{msg.orderId}} has been shipped.</p>

These placeholders will be replaced with actual values from the message when the flow runs.

Configuration

Node Properties

  • Name: A friendly name for the node (appears under the node in the flow)
  • Text: The rich text content to output
  • Field: The property name to output to (default: 'payload')
  • Field Type: Where to store the output:
    • msg: Output to message object (default)
    • flow: Store in flow context
    • global: Store in global context

Example

A simple flow that uses the WYSIWYG node to set a welcome message:

[ WYSIWYG ] --> [ Debug ]

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

SEE LICENSE IN LICENSE.md