UsbKit provides a WebUSB API-compatible interface for communicating with USB devices from Ruby using usb-ruby with a Linux usbfs fallback.