News for hackers. Stuff that matters.
Re:Porting USB applications to the web. Part 1: libusb by tehlike on Friday January 21, 2022 @12:34AM (#30019563)
One thing i recently attempted (and still looking into it as i have time to work on it) was to do a usbip-bridge for webusb. The idea is using a device attached to user's machine and exposing it to a vm in cloud. There are various use cases for this.

So far - i could only bridge USBIP communication, not much success with binding a proxied usb to a vm.

Did you see something like this?

Re:Porting USB applications to the web. Part 1: libusb by RReverser on Friday January 21, 2022 @09:17PM (#30032555)
I didn't see it but did think about it. I think it should be possible by wrapping WebUSB into something like Comlink, e.g. I know Surma experimented with allowing Comlink to be used with WebSockets: https://twitter.com/dassurma/status/1218207376899235840

Comlink takes care of the RPC part of any API, so you only need to choose and hook up a communication backend.

Re:Porting USB applications to the web. Part 1: libusb by tehlike on Sunday January 23, 2022 @02:54PM (#30049824)
This is actually at a lower level. This is to bind webusb remote device as a virtual device in Linux. It would be more flexible and has very interesting use cases.
Re:Porting USB applications to the web. Part 1: libusb by RReverser on Thursday January 27, 2022 @09:46AM (#30101170)
Ah, I see. That would be interesting, but removes the cross-platform compatibility from the equation, which, for me, is the most valuable piece of WebUSB and other similar APIs.