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

@theotherwillembotha/node-red-loki

v0.0.55

Published

Grafana Loki logger config node for Node-RED. Built on @theotherwillembotha/node-red-plugincore.

Readme

@theotherwillembotha/node-red-loki

Grafana Loki logger config node for Node-RED. Extends the logging infrastructure provided by @theotherwillembotha/node-red-plugincore with a Loki transport, so any node built with the @Logger decorator can ship structured log entries directly to a Loki instance.


Usage in Node-RED

Installation

Either use the Manage Palette option in the Node-RED editor, or run the following command in your Node-RED user directory (typically ~/.node-red):

npm install @theotherwillembotha/node-red-loki

[!IMPORTANT] This plugin requires @theotherwillembotha/node-red-plugincore to be installed.

node-red-plugincore is declared as a dependency and npm will install it automatically alongside this package. However, due to a known Node-RED limitation, packages that arrive as transitive npm dependencies are only discovered by the Node-RED runtime on the next startup.

You have two options:

  • Install @theotherwillembotha/node-red-plugincore via the palette manager or npm install first, then install this plugin — both will be available immediately without a restart.
  • Install this plugin directly — node-red-plugincore will be installed automatically alongside it. Restart Node-RED once and both packages will be fully loaded.

Config node

This package adds a single config node: Loki Logger.

The Loki Logger config node appears in the logger selector of any node that uses the @Logger decorator (e.g. the Logger Node from node-red-telemetry, or any custom node built on this framework).

Configuration fields

| Field | Description | |-------|-------------| | Name | Optional label for this config node | | Host | Hostname or IP address of your Loki instance (e.g. loki or 192.168.1.10) | | Port | Loki HTTP port (default: 3100) | | Tenant ID | Optional. Set the X-Scope-OrgID header for multi-tenant Loki deployments. Leave blank for single-tenant mode. | | Level | Minimum log level to ship: Debug, Info, Warning, or Error | | Template | Handlebars template that shapes each log entry. The default message:{{msg}} passes the raw message through. Customise to include only the fields you need (e.g. {{msg.topic}}: {{msg.payload}}). |

Example

A typical setup for a single-tenant Loki instance running on the same Docker network:

  • Host: loki
  • Port: 3100
  • Tenant ID: (blank)
  • Level: Info
  • Template: message:{{msg}}

For multi-tenant deployments, set the Tenant ID to match your Loki organisation ID. The value is sent as the X-Scope-OrgID HTTP header on every push request.


Prerequisites

  • Node.js 18+
  • Node-RED 3+
  • A running Grafana Loki instance reachable from your Node-RED host

Repository

License

ISC