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."

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. Apple Music's New Branding Uses Vibrations to Turn Music Into Visuals
  2. Infinix GT 50 Pro Gaming Bundle Revealed Ahead of October 27 India Launch
  3. Redmi K100 Confirmed to Get a 50-Megapixel Rear Camera
  4. Cyberpunk 2077 Is Getting a Free Update Inspired by Edgerunners 2 This Week
  5. EA Shuts Down BioWare, Cancels Next Mass Effect Weeks After Going Private
  6. Oppo K14 Plus Sees Notable Price Hike in India Across Storage Variants
  7. Poco X8s With a 6,330mAh Battery Debuts at This Price
  1. iQOO 16R Spotted on TKDN Certification Website, Launch Could Be Imminent
  2. Vivo X500 Ultra Could Pack a Larger 200-Megapixel Telephoto Sensor, Tipster Claims
  3. Oppo K14 Plus Price Hiked by Up to Rs. 5,000 in India Within Weeks of Launch
  4. EA Shuts Down BioWare, Cancels Next Mass Effect and Lays Off 400 Workers Weeks After Going Private
  5. OnePlus Ace 7, Ace 7 Pro Launch Date Confirmed for October 27 With New Dual-Airflow Design
  6. Vivo Buds Ultra Announced With Up to 60dB ANC, Up to 50 Hours of Total Battery Life: Price, Features
  7. iPhone Duo to Get Apple Pencil Support With iOS 27.2 Update, Reachability Feature Later This Year: Report
  8. Google Adds Personal Intelligence to Gemini on Android Auto
  9. iOS 27.2 Update to Reportedly Bring New iPhone Features Across Messages, Apple TV and More Apps
  10. Apple Music Gets a New Black-and-White Brand Identity Inspired by Sound, Liquid Glass
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.