Writing automations in pure JavaScript—is this possible?

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.