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. Vivo X300 FE, iQOO 15R and More Discounted During Amazon Mega Deal Days Sale
  2. Vivo Y31s Launched in Malaysia With These Features
  3. OnePlus Could Launch a New Budget Smartphone Lineup in India Soon
  4. Infinix Hot 70 Pro India Launch Timeline, Key Specifications Leaked
  5. Samsung Galaxy S26 FE Tipped to Get New Look With Glossy Rear Panel
  6. New Leak Shows Us What Apple's Foldable iPhone Might Look Like
  7. Infinix Smart 20 vs Lava Bold N2 5G vs Redmi A7 Pro 5G: Here Is a Quick Comparison
  8. Samsung Galaxy S27 Pro's Battery May Match the One on the Galaxy S26 Ultra
  9. How to Watch WWDC 2026 Live on YouTube, Apple TV, and More
  10. Vivo V70 Lite 5G Silently Launched in Select Markets With These Features
  1. Samsung Galaxy S26 FE Said to Ditch Matte Finish for a Glossy Rear Panel
  2. OnePlus N Series Tipped to Launch in India Next Month, Could Be More Affordable Than the OnePlus Nord CE 6 Lite
  3. Vivo Y31s 5G Launched With Snapdragon 4 Gen 2 Chip, 6,500mAh Battery: Price, Specifications
  4. Chinese Court Classifies Bitcoin as Property in Case Involving 107 BTC Theft
  5. Resident Evil Veronica Revealed at Summer Game Fest; Launch Set for 2027
  6. iQOO Neo 12 Said to Bring Major Display Upgrade With Up to 185Hz Refresh Rate
  7. Samsung Galaxy Watch Ultra 2, Galaxy Watch 9 Clear Key Regulatory Hurdle Ahead of Anticipated Launch
  8. Microsoft Reportedly Working on Shared Audio Feature on Windows 11 Alongside Tweaked Widgets
  9. Redmi K100 Specifications Leak Again; May Feature 185Hz Display, 8,500mAh Battery
  10. WhatsApp Multi-Account Support on iOS Reportedly Rolling Out to More Users
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.