Have a look at Erlang-Red[1] which uses Erlang for the basis of making a visual programming environment.
Erlang-Red is inspired by Node-RED which itself is inspired by flow based programming.
[1] https://github.com/gorenje/erlang-red
Disclaimer: I’m the author of Erlang-Red.