Folder Structured Flows

Hi everyone,

I have seen quite a few comments about Node-RED’s flat flow structure, and for larger projects I personally find it frustrating to scroll through endless flows.

I am working on a plugin that adds some structure to the Node-RED Explorer.

I know Node-RED is designed as a flat, tab-based editor, and that flows are stored in a single flows.json file. However, for larger projects, I think many users could benefit from an extra layer of visual organization for readability and maintainability.

Here a preview of what I have working so far:


The plugin currently allows you to:

  • Drag and drop flows
  • Create folders
  • Move flows into folders
  • Customize icons and colors
  • Apply bulk actions such as hide, lock, and more
  • Export/import your flows.json while keeping the same structure for another user

The plugin is available through the Node-RED Palette Manager if anyone would like to try it.

I am looking for people who are interested in testing it, giving feedback, and helping shape it into something stable, foolproof, and useful for larger Node-RED projects.

Feel free to reply here or send me a DM if you would like to help.

Note: I am not a good developer, I made this for me and collegues. However I think it could be beneficial for anyone.

I think Node-RED version 5 provide something similar ?

As far as I read and see, its the same explorer as from earlier version. Not sure what they changed.

Maybe so, although now you can put the panel on the left in the UI. I don't really see a difference to your plugin :grimacing:

Yes, i tried to visually recreate the original explorer to keep it authentic.

So visually its the same explorer, but then with all the features I mentioned in the main post.

Oh I just noticed what you meant. You meant to say that 5.0 has folders in the flow explorer?

Im not dure if that is right. I have it here but it doesnt show any structured set up.

I did believe one of the developers said maybe in v6.0+

To be clear, Robert's new plugin enables you to organise your tabs into folders visually. The built-in Explorer does not do this AFAIK and I couldn't see any way to do it.

Apart from the comments on Discord Robert ...

There is an issue with indentation. In the above example, the first 3 entries are inside the "Disabled" folder, the rest are not. There is no visual difference.

It would also, I think, be helpful to have disabled folders in grey like the built-in explorer since the little icons are not really very clear as to their meaning.

Unfortunately, there do appear to be other issues.

I tried to move the sidebar to the left-top instead of right-top, deployed and the sidebar icon disappeared, reloading the page made the sidebar disappear as well. Only restarting node-red and reloading the page made the icon reappear - but it was back in its original place and my folders had disappeared.

In addition, at this point, trying to add a new folder again adds the folder but does not let me edit the name. In addition, the browser is now using around 10% CPU which it wasn't before.

I'm also getting a bunch of console errors from the Editor page as well - VM464 is your node.

Will have to remove for now I'm afraid.


Oh, and I see that you have manually embedded a bunch of CSS in the Editor code, you don't need to do that, you can load it as a CSS file from your HTML file.


Ah, and this doesn't look quite right:

There should be a plugin listed there I think.

Thank you for the feedback.
I have addressed the problems and pushed a fixed to a new npm name.
The name should make it more clear, when searching for something like folders.

The error messages seemed to come from when I attempt to overwrite the information panel with random data of something that is not selected and does not exist (folders). I left it out for now as it did not have much value.

  • Mass locking, hiding, disabling works properly now. Avoiding the subflows as they can only be hidden.
  • I merged the flows and subflows for now.
  • I added rihght click for easy access.

Let me know if there is anything else!

node-red-contrib-folders

I pushed an update to make it now replace the current explorer instead of copying it. Added some features and cleaned up some buggy stuff.