I have this idea burning a hole in my head, and since I've no time to work on it I need to write it up so I can focus on other things.
I'll walk through my thinking in bullet-points:
- In essence, Node-RED is just a way of structuring Node.js into flows which are more natural to think about. I assume everyone here thinks this is an improvement over weaving function calls through a giant wall of text
Now, if I were you I would be rolling my eyes at this point but hear me out:
- I'm not suggesting to run Node-RED fully in the browser, that is
nonsensetotally feasible, RE: PageNodes, lol.
- What if you were to dream up a set of nodes that have meaning in the browser context (http request, button clicks, html appends, cookies, etc...) and made "hollow" / logic-less nodes for these purposes, just so you can architect it out in NR.
- Then, what if you had a script that interpreted the
flows.jsonfile in the browser context and executed the flow as it would be intended in the browser.
This is essentially what I did with this project, but from C to A instead of A to B: Procedural function block programming with node red (like PLC FBD)
Is it my lucky day and someone has already done this?
Thanks for reading, all thoughts are welcome,