New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gregoriusrippenstein/node-red-contrib-flow2uml

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gregoriusrippenstein/node-red-contrib-flow2uml

Convert Node-RED to Mermaid UML flowchart diagram.

  • 0.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-10%
Maintainers
1
Weekly downloads
 
Created
Source

Flow to UML (Mermaid flowchart)

Convert the current flow tab to a Mermaid UML flowchart diagram.

Warning: will replace the contents of the clipboard, aka pasteboard.

Also this is best used with Node-RED 3.1.x because that has inbuilt support for rendering Mermaid diagrams. The generated UML can then be pasted to the info box for the flow.

Generating diagram

Either use the Action List drop down, selecting Convert flow to UML:

img

Or using the sidebar, first select the Flow to UML menu point

img

Then select a drection - either TB - top to bottom or LR - left to right:

img

After that the generate button will copy the UML to the pasteboard:

img

Discussion

This is a purely editor-based node with no interaction with the Node-RED server. The diagram generated is based on the current flow in the editor not the flow that has been deployed. Therefore any changes made in the editor will be reflected in the diagram generated.

Mermaid Syntax

Beaware that Node-RED supports v9.4.3 of Mermaid, the Mermaid live editor, at time of writing, stands at 10.4.0 - there are differences.

Also the Node-RED editor sometimes shows an Mermaid Syntax error that can be resolved by doing a reload - your mileage might vary.

Artifacts

Keywords

FAQs

Package last updated on 25 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc