Complex automations using purely code (javascript/nodejs), is there a way?

This is an old and recurring topic.

I ended up developing my own solution for personal use, but I have decided to make it publicly available after more than a year of stable use.

Hopefully this will help.