Two Google Developers Create API That Connects USB Devices to the Web

Advertisement
By Ketan Pratap | Updated: 12 April 2016 14:50 IST
Google Developers Reilly Grant and Ken Rockot have published a draft document to the World Wide Web Consortium's Web Incubator Community Group (W3C WICG) detailing a newly created API (application program interface) for directly connecting USB devices to webpages. It is envisioned for use as a Web connectivity platform for hardware manufacturers.

The new API created by Google developers, dubbed WebUSB API, was published late last month and is still unofficial. The API is described as a "way to safely expose USB device services to the Web." The new API addresses all devices that can be connected to desktop system via USB port, from USB keyboards to IoT (Internet of Things) devices. The API is backward compatible, and is aimed to work with older USB devices.

"With this, API hardware manufacturers will have the ability to build cross-platform JavaScript SDKs for their devices. This will be good for the Web because, instead of waiting for a new kind of device to be popular enough for browsers to provide a specific API, new and innovative hardware can be built for the web from day one," explained Reilly Grant and Ken Rockot. The duo added, "WebUSB does not attempt to provide a general mechanism for any webpage to connect to any USB device."

Advertisement

The developers have also touched upon the security and privacy issues with their new WebUSB API and plan to build a system dubbed CORS or Cross-Origin Resource Sharing. The system "employed by browsers" will prevent page resources (such as fonts, JS scripts) from requesting data from other domains apart from the initiated one.

Grant and Rockot add that an attacker could write a malicious code that can use WebUSB API to access user's system for all available peripherals and their serial numbers leading any third-party to collect data. The CORS system for the new WebUSB API is aimed to "limit direct access to peripherals."

Advertisement

The developers have also confirmed that the WebUSB API is backward compatible which will mean that it will support old manufactured USB-capable devices to work without any additional firmware.

"For devices manufactured before this specification is adopted information about allowed origins and landing pages can also be provided out of band by being published in a public registry," they added. Developers can make suggestions at the WebUSB API GitHub repository.

 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Further reading: Google, USB, WebUSB, WebUSB API
Advertisement

Related Stories

Popular Mobile Brands
  1. New OTT Releases This Week: Musafir Cafe, Adarsh Baal Vidyalaya, and More
  2. Xiaomi Power Bank 5i 20000 67W With Built-In USB Type-C Cable Launched in India
  3. Planning to Buy an iPhone 17? Apple Could Hike India Prices Soon
  4. Samsung Galaxy Watch Ultra 2 vs Galaxy Watch Ultra: Which One Is Better?
  5. iQOO Neo 11S Could Launch in August With 144Hz OLED Screen, 100W Charging
  6. Poco F9 Ultra, Poco F9 Pro Spotted on Multiple Certification Sites Ahead of Launch
  7. Here's How the Oppo Find X10 Series Could Look
  8. Boat Nirvana Eutopia 2 ANC Launched in India With Up to 80 Hours of Battery Life
  9. Android 17 Makes Switching From iPhone Easier With Expanded Data Transfer Support
  10. Here's When the OnePlus N6x Will Launch in India: See Expected Specs
  1. Samsung Galaxy Z Fold 9 Ultra May Match Galaxy S27 Ultra With 200-Megapixel Camera, 5x Periscope Zoom
  2. Google Introduces Selfie Video Sign-In for Account Recovery
  3. Boat Nirvana Eutopia 2 ANC Launched in India With 45dB Hybrid ANC, Up to 80 Hours of Battery Life: Price, Features
  4. WhatsApp Could Replace Two-Step Verification PIN With a Stronger Password
  5. Oppo Find X10 Series Spotted Alongside iPhone 17 Pro in New Leak
  6. Microsoft Launches Xbox Backward Compatibility on PC With Four Original Xbox Games: Check System Requirements
  7. Vivo S2 Leak Reveals Expected Price and Storage Options Ahead of Rumoured India Launch
  8. New Redmi Note India Launch Appears Imminent After Official Teaser Goes Live; Could be Redmi Note 17
  9. Poco F9 Ultra, Poco F9 Pro Spotted on Multiple Certification Sites Ahead of Launch
  10. Google Pixel 11, Pixel 11 Pro, Pixel 11 Pro XL Design, Colourways Reportedly Leak via Renders Ahead of Launch
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.