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

@ng-galien/node-red-pulsar

v1.2.0

Published

Node-RED nodes for Apache Pulsar

Readme

.github/workflows/build.yml

node-red-pulsar

Build Status npm version License: ISC Node.js Version

Add Apache Pulsar support to Node-RED.

This package provides nodes to send and receive messages from Apache Pulsar in your Node-RED flows.

All Nodes

Table of Contents

Features

  • Producer: Send messages to Pulsar topics with configurable routing, batching, and compression
  • Consumer: Subscribe to topics with shared, exclusive, or failover subscription modes
  • Reader: Read messages from topics with seek support (earliest, latest, or timestamp)
  • Schema Support: Avro and JSON schema validation
  • Authentication: Token, OAuth2, and TLS certificate authentication
  • TLS: Secure connections with certificate validation

Based on the Pulsar Node.js client.

Requirements

  • Node.js >= 18.0.0
  • Node-RED >= 3.0.0
  • Apache Pulsar cluster (standalone or distributed)

Installation

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

npm install @ng-galien/node-red-pulsar

Or install via the Node-RED Palette Manager by searching for @ng-galien/node-red-pulsar.

Quick Start

  1. Start a Pulsar instance (for testing):
docker run -it -p 6650:6650 -p 8080:8080 apachepulsar/pulsar:3.0.2 bin/pulsar standalone
  1. Configure the Pulsar Client node with pulsar://localhost:6650

  2. Add a Producer node to send messages to a topic

  3. Add a Consumer node to receive messages from the topic

Nodes

Pulsar Client

Configuration node for Pulsar connection settings.

| Property | Description | |----------|-------------| | Service URL | Pulsar broker URL (e.g., pulsar://localhost:6650) | | Authentication | Optional authentication configuration | | Use TLS | Enable TLS encryption | | Operation Timeout | Timeout for operations in seconds |

Pulsar Authentication

Configuration node for authentication methods.

| Method | Description | |--------|-------------| | Token | JWT token authentication | | OAuth2 | OAuth 2.0 client credentials flow | | TLS | Client certificate authentication |

Pulsar Schema

Configuration node for message schemas.

| Type | Description | |------|-------------| | JSON | JSON schema validation | | Avro | Avro schema validation |

Pulsar Producer

Send messages to a Pulsar topic.

Input: msg.payload - Message content to send

Output: Status messages (sent, error)

| Property | Description | |----------|-------------| | Topic | Target topic name | | Compression | Compression type (None, LZ4, ZLIB, ZSTD, SNAPPY) | | Batching | Enable message batching |

Pulsar Consumer

Receive messages from a Pulsar topic subscription.

Output 1: Received messages (msg.payload)

Output 2: Status messages

| Property | Description | |----------|-------------| | Topic | Topic to subscribe | | Subscription | Subscription name | | Subscription Type | Shared, Exclusive, Failover, or Key_Shared |

Pulsar Reader

Read messages from a topic with seek capability.

Input: Seek commands (msg.topic = "seek", msg.payload = "Earliest" | "Latest" | timestamp)

Output 1: Read messages

Output 2: Status messages

| Property | Description | |----------|-------------| | Topic | Topic to read | | Start Position | Initial position (Earliest, Latest) |

Example Flow

A sample flow is provided in examples/pulsar-nodes.json. Import it into Node-RED to get started.

Sample Flow

The example demonstrates:

  • Sending string and JSON messages with a Producer
  • Receiving messages with a Consumer using JSON schema
  • Reading messages with a Reader and seek operations

Development

Setup

git clone https://github.com/ng-galien/node-red-contrib-pulsar.git
cd node-red-contrib-pulsar
npm install

Commands

npm run build       # Compile TypeScript
npm run lint        # Run ESLint
npm test            # Run tests
npm run clean       # Remove build artifacts

Testing with Docker

See CLAUDE.md for detailed E2E testing instructions with Docker.

Contributing

Contributions are welcome! Please read our Contributing Guide for details on:

  • Code of Conduct
  • Development setup
  • Submitting pull requests
  • Reporting issues

License

ISC - Copyright (c) Alexandre Boyer