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

Advertisement
By Ketan Pratap | Updated: 12 April 2016 14:50 IST
Two Google Developers Create API That Connects USB Devices to the Web
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."

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.

 

For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.

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

Related Stories

Popular Mobile Brands
  1. OnePlus 13s With Snapdragon 8 Elite Chip to Launch in India on This Date
  2. iQOO Neo 10 Pro+ Battery and Charging Details Revealed Ahead of Debut
  3. Apple AirPods With Built-in Camera Tipped to Launch Next Year
  4. Google I/O 2025: What to Expect From Google's Developer Conference
  5. Vivo S30, S30 Pro Mini, Pad 5, TWS Air 3 Launch Date, Key Features Confirmed
  6. Xiaomi Civi 5 Pro Design, Key Features Revealed; May Launch on May 22
  7. Samsung Galaxy S25 FE Tipped to Retain Galaxy S24 FE Rear Cameras
  8. HP Launches OmniBook 5 Series AI PCs With Snapdragon X Series Chipsets
  1. Realme P3 5G Series to Receive a Limited Period Discount in India: Offers, Availability
  2. Gemini Nano-Enabled API Released to Android Developers Ahead of Google I/O 2025
  3. Vivo S30, S30 Pro Mini Launch Date Set for May 29; Vivo Pad 5, TWS Air 3 to Tag Along
  4. HP OmniBook 5 Series AI PCs With Snapdragon X Series Chipsets Launched: Price, Specifications
  5. Realme GT 7T Leaked Renders Suggest Design, Colour Options; Said to Get MediaTek Dimensity 8400 Max SoC
  6. iQOO Neo 10 Pro+ Battery, Charging Specifications Revealed; Will Be Equipped With 6,800mAh Battery
  7. Red Dead Redemption 2 Reportedly Coming to Nintendo Switch 2 in 2025 Alongside Next-Gen Patch
  8. Bitcoin Price Drops Below $103,000 Amid Ongoing Market Uncertainty
  9. Epic Games Asks Court to Force Apple to Approve Fortnite on US Store
  10. Xiaomi Civi 5 Pro Design, Key Features Revealed; Likely to Launch on May 22
Gadgets 360 is available in
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.