leaningtech / webvm

Virtual Machine for the Web
https://webvm.io
Apache License 2.0
4.95k stars 1.15k forks source link

Device interfaces like USB, Serial & HID #7

Open beriberikix opened 2 years ago

beriberikix commented 2 years ago

https://twitter.com/reillyeon/status/1488651155647254529

Great work! Have you looked at supporting interacting with real devices via their web API counterparts? Ex. WebUSB, Web Serial and/or WebHID?

sere commented 2 years ago

Thanks! :)

Yes, it's been taken into consideration. While it's technically feasible, it's not in our plans for the time being. Should there be commercial interest for supporting these features, though, we will reconsider it.

If that's the case, feel free to contact us at info@leaningtech.com.

hello-smile6 commented 2 years ago

Thanks! :) Yes, it's been taken into consideration. While it's technically feasible, it's not in our plans for the time being. Should there be commercial interest for supporting these features, though, we will reconsider it. If that's the case, feel free to contact us at info@leaningtech.com.

wdym that's not practical?

first of all, it would allow you to insert files into the WebVM. any normal linux distro can read USB, and it's hella useful too. if WebVM supported USB, then it could be used to unpack tar and gzip archives, and also allow for an easy way to make USB linux installers.

see? i just proved you wrong, AND i made you look dumb on the internet.

get told lmao

ok bye have a nice day

:3

Actually, not possible to do USB installers via WebUSB. You can install a different of Android on a phone and do ADB though.

r3dg0d commented 1 year ago

Just do what @hello-smile6 said, and use WebUSB to emulate USB storage in the host OS.