WebAssembly / WASI

WebAssembly System Interface
Other
4.84k stars 251 forks source link

Proposal: WASI USB API #570

Open Wouter01 opened 10 months ago

Wouter01 commented 10 months ago

This early proposal suggests the addition of USB support to WASI through an interface inspired by WebUSB (and the WebUSB equivalent in node.js).

The proposed USB interface for WASI should include methods for:

Additionally, it's probably interesting to consider adding user permission for accessing USB devices.

I'm currently experimenting with WebUSB and WASI and I'm working on a proof of concept. @Wadu436 is also looking into this.

If you have any feedback, let me know!

merlijn-sebrechts commented 9 months ago

FYI: I would be co-champion of this proposal to ensure continuity. I'm a researcher at Ghent University in association with imec.

Given we mainly have a research background, it would be beneficial if an interested party from the industry could join us. We're happy to collaborate on this!

RReverser commented 9 months ago

Hey, I'm an author of the Wasm+WebUSB backend in libusb and ported couple of projects using USB to the web (e.g. gphoto2 as an open-source example).

While I'm not strictly in hardware industry, I'd love to help with reviewing design if you need more eyes.