Also I wonder if something like https://bun.sh/ could be used to get modern JS/TS support?
(Also your Discord invite is expired)
2) I never heard of bun.sh, I'll have a look!
3) I did not notice about the Discord link. Probably it has been like that for ages :/ I will replace it in the site. Meanwhile here you have a new up-to-date one https://discord.gg/Rt2mkWp
Thanks!
2) Sadly you cannot use node libs. The JS engine I use is pretty dated (Mozilla Rhino) and I dont have time these days to do big changes.
3) Yes, you can interface with Arduino compatible hardware via USB serial or Bluetooth / Bluetooth LE.
4) If you want to do something screen less, you can run a script as a service (background). A bunch of years ago, when the ESP modules were not common I used an Android device as a network interface for my Arduino :)
Have a look if you want https://phonk.app