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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@gbl-sasm-alert/node-red-contrib-moduleflows

v1.0.1

Published

Flow Modularization Nodes for Node-RED

Downloads

17

Readme

@gbl-sasm-alert/node-red-contrib-moduleflows

This module provides several nodes that can easily customize a flow by modularizing the flow and making it easy to change the properties of nodes in the flow.

Description

Using the moduleflows module, you can divide flows into modular units, making it easy to manage and reuse them. The moduleflows offers three key functionalities

  1. Modularization : It allows you to break down your flows into smaller, self-contained modules, making it easier to manage and understand complex workflows. You can determine which property to use within the “moduleflows in” node, and you have the flexibility to modify and apply that property within the "moduleflows" node.

Untitled

Untitled

Untitled

Untitled

  1. Reuse : You can reuse these modules by module across different projects or within the same project, promoting code reusability and reducing development time. The "Reuse" feature in the current version of "moduleflows" allows you to save your modules locally and load them for reuse within your Node-RED projects.

Untitled

Untitled

  1. Isolation : moduleflows module have the capability to conceal the underlying logic of moduleflows in and moduleflows out nodes, allowing you to exclusively manipulate the properties within the "moduleflows" node. This enables you to create the desired flow by simply modifying the properties of the "moduleflows" node without exposing the inner workings of the associated modules

Untitled


Untitled

Pre-requisites

The @gbl-sasm-alert/node-red-config-moduleflows requires Node-RED to be installed.


Install

cd ~/.node-red/
npm install @gbl-sasm-alert/node-red-config-moduleflows

Restart your Node-RED instance and you should have nodes available in the palette.


Nodes

  • moduleflows in : This node is the starting point for "moduleflows," allowing you to provide the name and description of the module. Additionally, you can choose specific node properties within this flow that you wish to customize and provide descriptions for them.

Untitled

Untitled

  • moduleflows out : This node is the end of the “moduleflows”.

Untitled

  • submoduleflows : This node is the start of the “subflow”, allowing you to provide the name and description of the submodule. This node allows for the execution of a portion of the logic within the “moduleflows”.

Untitled

  • moduleflows : This node allows you to select and reuse the flow between "module in" and "module out" as a single module. Additionally, you can customize the properties of nodes within "moduleflows" from this node.

Untitled

Untitled


Management Tools

moduleflows in current tab

Untitled

This tool can manage the moduleflows in the currently open tab of the nodeRED workspace.

그림1.png

① show/hide button: It allows to visually hide or show the selected moduleflows in the nodeRED workspace.

② jump to moduleflows in node link button: It shows the position of the moduleflows in node of the selected moduleflow.

③ jump to submoduleflows node link button: It shows the position of the submoduleflows node of the selected submoduleflow.

④ save in local button: It allows to save the selected moduleflow in local storage. The moduleflows will be stored in the following subdirectory of your Node-RED path: /utils/<moduleflow name>.

moduleflows in your local

Untitled

This tool can manage the moduleflows in the local directory. You can use the moduleflows in the local directory whenever, wherever you want via this tool.

그림2.png

① search bar: It allows to search moduleflows in local directory by name and description.

② delete button: It allows to delete the selected moduleflows not only in the management tool but also in local directory.

③ moduleflows container: When you drag and drop the moduleflow container into the nodeRED workspace, the nodes and links of moduleflows are immediately created.

④ open local directory button: It allows to open file explorer/finder/etc where the moduleflows are stored. If you place the moduleflow files here, they can be managed from this management tool.


ModuleFlows Usage Guide

1. Wrapping Logic with moduleFlows:

  • To create a module, you'll need to wrap your desired flow logic with moduleflows in and moduleflows out nodes. These nodes act as entry and exit points for your module.
  • Place the moduleflows in node at the beginning of your logic and the moduleflows out node at the end.

Untitled

2. Specifying Properties in moduleflows in:

  • Inside the moduleflows in node, you can specify which properties you want to expose and make editable when reusing the module.
  • Use the "Edit Properties" feature in the node's configuration to define the properties you want to make available.

Untitled

3**. Modifying Properties in moduleflows:**

  • The moduleflows node serves as the central point for managing your module's properties.
  • To reuse the module, simply add a moduleflows node to your flow where you want to use it.
  • Configure the moduleflows node to match the properties you exposed in the moduleflows in node.
  • You can now modify these properties within the moduleflows node to adapt the module's behavior to your specific needs.
  • You can conceal the underlying logic of moduleflows in and moduleflows out nodes by ModuleFlows in Current Tab

Untitled

Untitled

4. Saving and Reusing moduleflows:

  • Use the moduleflows manage tab within Node-RED to save your modules for future use.
  • To save a module:
    • Select the ModuleFlows in Current Tab.
    • Locate the module you want to save and click Save in Local.
  • To reuse a saved module:
    • Drag a moduleflows at tab into your flow.
    • In the ModuleFlows in Your Local you can choose the saved module from the list.
    • Configure the node's properties as needed.

Untitled

Untitled


Discussions and suggestions

Use GitHub Issues to ask questions or to discuss new features.


Authors

GBL-SASM-ALERT in SSAFY(Samsung Software Academy for Youth) 9th


Copyright and license

Copyright Samsung Automation Studio Team under the Apache 2.0 license


Reference