Arduino Nano/Uno and js sketch compiling/uploading from browser I need to compile generated source code in js runtime then upload it to my device.

Compiling:

I have found arduino-cli

Uploading:

There is only avrgirl but it doesn't work in browser. What should I do?
You can't, and that's a good thing. If the browser could let a Web site access your hardware, that would be a huge security breach. You may be able to bypass this security restriction if you can write an extension (plugin) for your browser.