node-red-contrib-stream-client 0.1.1

A Node-RED node to stream NDJSON over HTTP with auto-reconnect and configurable headers.

npm install node-red-contrib-stream-client

node-red-contrib-stream-client

A Node-RED input node that connects to an HTTP NDJSON stream and parses each line into a separate message.

Features

  • Auto-reconnect with configurable delay
  • Supports Bearer token and custom headers
  • Accepts any query parameters
  • Line-by-line JSON parsing (NDJSON)
  • Debug option for verbose logging

Install

In your Node-RED user directory:

npm install node-red-contrib-stream-client

Usage

Add the Stream Client node to your flow. Configure:

  • URL: Base endpoint URL
  • Bearer Token: (optional) Authorization token
  • Extra Headers: JSON string for additional headers
  • Query Params: e.g. foo=1&bar=2
  • Reconnect Delay: ms to wait before retrying
  • Debug: Logs more info to Node-RED console

Output

Each message has:

{
  "payload": { ...parsed line from stream... }
}

Example

curl -H "Authorization: Bearer token" \
  'https://example.com/api/stream?type=event&id=123'

This would stream lines like:

{"event":"start","id":123}
{"event":"stop","id":123}

And emit one Node-RED message per line.

License

MIT

Node Info

Version: 0.1.1
Updated 15 hours ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

0 in the last week

Nodes

  • stream-client

Keywords

  • node-red
  • stream
  • ndjson
  • http
  • flowfuse

Maintainers