Using NodeJS / JavaScript from within HASSOS

Since NodeJS is my natural habitat and I got the WS interface in JS working, I’d like to run NodeJS scripts on hassos 17.2 / homeassistant 2026.4.4. Preferably as linux services.

I know that there were many people asking similar questions, but I still haven’t found a good answer. Sorry if I’m missing the obvious, I’m a novice HA user.

If this is not possible, it would be helpful if someone competent could state this here.

Then I’d have to set up a dedicated VM for this purpose, what is a bit over the top imho. I found GitHub - puzzle-star/homeassistant-jsengine: Create Javascript automations for Home Assistant · GitHub but this seems to be a rather individual approach to me.

This is about NodeJS, NOT Node-RED.

Coincidentally, I stumbled on this project, yesterday:

Thank you, looks quite interesting.

But I’d like to have just a plain NodeJS environment with all the opportunities the ecosystem provides.