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-influxdb3-read

v1.0.2

Published

A Node-RED node for executing SQL queries against InfluxDB 3 using the HTTP API.

Readme

node-red-contrib-influxdb3-read

A Node-RED node that allows querying InfluxDB 3 using SQL over the HTTP API.

This node complements write-only packages such as node-red-contrib-influxdb3, enabling complete read/write workflows.


⭐ Features

  • Execute SQL queries against InfluxDB 3
  • HTTP-based implementation
  • Custom host, database and authentication token
  • Node-RED–friendly output format
  • Fully open source and extensible

🚀 Requirements

| Component | Version | |-------------|---------| | Node.js | ≥ 16 | | npm | ≥ 8 | | Node-RED | ≥ 3.0.0 | | InfluxDB 3 | Any HTTP-compatible edition |


📦 Installation

Node-RED Palette Manager

Search for:

node-red-contrib-influxdb3-read

Or install manually:

cd ~/.node-red npm install node-red-contrib-influxdb3-read

Restart Node-RED afterwards.


⚙️ Configuration

The node requires:

  • Hosthttp://host.docker.internal:8181 or http://localhost:8181 or host in the cloud
  • Database → the InfluxDB 3 database name
  • Token → an InfluxDB 3 API token

📥 Input Format

Send a message with a SQL query in:

{
  "q": "SELECT * FROM tanque LIMIT 10"
}

Node-RED example:

msg.payload = { q: "SELECT * FROM tanque WHERE sensor = 'ultrasonico'" }; return msg;


📤 Output Format

The result is returned inside:

{ "payload": { "results": [...] } }


📚 Example Flows

  1. Read last 5 minutes of data msg.payload = { q: "SELECT * FROM tanque WHERE time >= now() - interval '5 minutes'" }; return msg;

  2. Filter by tag msg.payload = { q: "SELECT * FROM tanque WHERE sensor IN ('ultrasonico')" }; return msg;

  3. Select specific fields msg.payload = { q: "SELECT time, value FROM tanque ORDER BY time DESC LIMIT 20" }; return msg;


🛠 Development

Clone this repo:

git clone https://github.com/DanielVickG87/node-red-contrib-influxdb3-read.git

Install dependencies:

npm install

Link into Node-RED:

npm link cd ~/.node-red npm link node-red-contrib-influxdb3-read

Restart Node-RED.


🐛 Issues

Report bugs at:

https://github.com/DanielVickG87/node-red-contrib-influxdb3-read/issues


📜 License

MIT License

© 2025 Daniel Vick