I tried out Johnny-Five and it works but I am confused. As I understand it I have to
Plug in my Arduino to my PC and install a proper firmware, like Firmata
Install Node on my PC and write my NodeJs Script on my PC
Run the NodeJs on my PC and keep the Arduino Plugged in while running it
This baffles me a bit. Does this mean I can run my Node / Arduino only together with a PC while I have it plugged in via USB? What is the purpose of this? Is there not a way to have my Arduino work on its own running my NodeJS scripts?
If you really want to run javascript/nodejs on microcontrollers (not Linux SBCs) consider the following. Both are have nothing to do with Arduino boards or IDE.
Or run J5 on a Raspberry Pi or similar Linux SBC then mount the Pi on the robot. The Pi has GPIO, I2C, and SPI. Tethering and Arduino boards running firmata are optional.