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-turbo

v1.1.0

Published

Ensemble d'outils utilitaires pour Node-RED

Readme

Node-RED Contrib Turbo

A collection of utility nodes for Node-RED that simplify common message manipulation and value assignment tasks.

Installation

npm install node-red-contrib-turbo

Migration Notice

⚠️ turbo-ts has been migrated
The turbo-ts node has been moved to a dedicated package: node-red-contrib-ts

For TypeScript support, please install:

npm install node-red-contrib-ts

This package now focuses on utility nodes (turbo-set, turbo-exec) for message manipulation and shell execution.

Available Nodes

turbo-set

Versatile node that allows setting message property values from different sources: paths, static values, or templates.

Configuration

  • Target Path: Destination path (ex: payload, result[0].value)
  • Source Type: Type of data source
  • Source Path: Source path (visible for Message Path)
  • Content: Static value (visible for JSON/Text Value)

Source Types

| Type | Description | Interface | Example | |------|-------------|-----------|---------| | Message Path | Sets value from message path | Source Path field | payload.user.name, data.items[0] | | JSON Value | Static JSON automatically parsed | Monaco JSON editor | {"key": "value", "array": [1, 2, 3]} | | JSON Template | JSON with interpolated templates | Monaco JSON editor | {"user": "{{payload.name}}", "id": {{data.id}}} | | Text Value | Static text without processing | Monaco text editor | Hello World, Configuration complete | | Text Template | Text with interpolated templates | Monaco text editor | Hello {{payload.name}}!, Status: {{data.status}} |

Usage Examples

Set from path:

Target: payload
Source Type: Message Path
Source Path: data.user.name
→ Sets msg.payload = msg.data.user.name

Set static JSON:

Target: config
Source Type: JSON Value
Content: {"enabled": true, "retries": 3, "timeout": 5000}
→ Sets msg.config = JSON object

Set with JSON template:

Target: result
Source Type: JSON Template
Content: {"user": "{{payload.name}}", "count": {{data.items.length}}}
→ Sets msg.result = JSON object with interpolated variables

Set static text:

Target: status
Source Type: Text Value
Content: Processing completed successfully
→ Sets msg.status = string

Set with text template:

Target: message
Source Type: Text Template
Content: Hello {{payload.user}}, you have {{data.count}} messages
→ Sets msg.message = text with interpolated variables

Features

  • ✅ Conditional interface based on selected source type
  • ✅ Monaco editor with syntax highlighting (JSON/text)
  • ✅ Support for nested paths and array indices
  • ✅ Templates with variable interpolation {{...}}
  • ✅ Automatic JSON parsing to JavaScript object
  • ✅ Error handling with detailed messages
  • ✅ 5 modes: Message Path, JSON/Text Value/Template

turbo-exec

Execute shell commands with configurable execution modes and timeout control.

Configuration

  • Mode: Execution method (Exec or Spawn)
  • Timeout: Maximum execution time in seconds (1-300)
  • Script: Shell commands to execute with Monaco editor

Execution Modes

| Mode | Description | Outputs | Use Case | |------|-------------|---------|----------| | Exec | Buffered execution, collects all output | 1 output: {out, err, success, code} | System commands, quick scripts | | Spawn | Streaming execution, real-time output | 3 outputs: stdout, stderr, result | Long-running processes, log monitoring |

Examples

System Information (Exec mode):

uname -a
df -h
free -m

→ Returns complete system info in single result

Log Monitoring (Spawn mode):

tail -f /var/log/application.log

→ Streams log entries in real-time

Build Process (Spawn mode):

npm install
npm run build
npm test

→ Monitor build progress with real-time feedback

Features

  • ✅ Two execution modes: buffered (exec) and streaming (spawn)
  • ✅ Configurable timeout protection (1-300 seconds)
  • ✅ Monaco editor with shell script syntax highlighting
  • ✅ Process cleanup on node shutdown
  • ✅ Cross-platform support (Windows/Linux/macOS)
  • ✅ Real-time output streaming in spawn mode
  • ✅ Comprehensive error handling and reporting

Security Notes

  • Commands run with Node-RED process permissions
  • Validate input to prevent command injection
  • Use timeout to prevent runaway processes
  • Consider restricted shells for untrusted input

License

MIT