Skip to content

Peripheral APIs Workstream Proposal#264

Open
tantek wants to merge 5 commits intomainfrom
tantek-patch-1
Open

Peripheral APIs Workstream Proposal#264
tantek wants to merge 5 commits intomainfrom
tantek-patch-1

Conversation

@tantek
Copy link
Copy Markdown
Member

@tantek tantek commented Apr 16, 2026

This is a Workstream Proposal following https://whatwg.org/workstream-policy#workstream-proposals for a new Workstream for standards for Peripheral APIs.

Answers to Workstream Proposal numbered points in workstream-policy:

  1. Proposed Workstream name:
  • Provided in PR
  1. Statement of purpose, including problem to be solved, proposed solution, status of the proposed solution, and how it is consistent with the WHATWG Principles and appropriate for a Workstream.
  • A variety of de facto approaches to connecting peripheral devices to web applications have recently been implemented or are in the process of being implemented. This proposal would provide a central workstream for these standards, which share common considerations, and would support enhanced user experience by providing reference standards for web connections to peripherals which major browser makers would implement.
  1. Specific Scope of work (included and excluded).
  • Web APIs for implementing local peripheral connectivity standards in web browsers, including but not limited to Serial, USB, HID, Bluetooth, and NFC.
  1. Proposed deliverables.
  • A standard per API defining that API’s interfaces and usage.
  1. Draft of the proposed Living Standard plus (optionally) a list of other proposed deliverables.
  • Draft(s) below.
  1. A list of similar or related work being undertaken or proposed elsewhere and its relationship to the proposed Workstream.
  1. Anticipated Workstream Participants.
  • The editor will be the participant
  1. Description or list of those likely to implement or otherwise have an interest in the work.
  • Chromium and Gecko are interested, should be sufficient
  1. Expectations regarding long-term maintenance of the Living Standard.
  • Editor volunteering should be effectively fulfilled.

This is a Workstream Proposal following https://whatwg.org/workstream-policy#workstream-proposals for a new Workstream for standards for Peripheral APIs.
Copy link
Copy Markdown

@reillyeon reillyeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this together. Just a few nitpicks on naming and scope to make this clearer.

Comment thread db.json Outdated
Comment thread db.json
],
"standards": [
{
"name": "WebBluetooth",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been referred to as "Web Bluetooth" (with a space) so far.

Copy link
Copy Markdown
Member Author

@tantek tantek Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Figuring better for web-searchability/discovery as a singleword term and this is a good opportunity to tweak that, especially in alignment with others like WebNN, WebMCP. No strong feeling about this.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged. I don't have a strong opinion one way or another. I'm happy to use the migration to WHATWG to choose a consistent naming convention.

Comment thread db.json
"twitter": ""
},
{
"name": "WebNFC",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, the existing "Web NFC" draft uses a space.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, figuring better for web-searchability/discovery as a singleword term and this is a good opportunity to tweak that, especially in alignment with others like WebNN, WebMCP. No strong feeling about this.

Comment thread db.json
"twitter": ""
},
{
"name": "WebSerial",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A space in "Web Serial" as well.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as others, figuring better for web-searchability/discovery as a singleword term and this is a good opportunity to tweak that, especially in alignment with others like WebNN, WebMCP. No strong feeling about this.

Comment thread db.json Outdated
{
"name": "WebSerial",
"href": "https://serial.spec.whatwg.org/",
"description": "The WebSerial Standard defines an API for web applications to provide user access to peripherals via the serial port standard.",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There isn't quite a unified "serial port standard" but you could say, "RS-232, RS-485, Bluetooth RFCOMM and related standard interfaces."

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok with "RS-232, RS-485, and related standard interfaces". Can you write an edit accordingly?

Would prefer scoping "Bluetooth RFCOMM" with WebBluetooth if that makes sense.

Copy link
Copy Markdown

@reillyeon reillyeon Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RFCOMM is out-of-scope for WebBluetooth because that specification is focused on the modern Bluetooth Generic Attribute Profile provided by Bluetooth Low Energy, while RFCOMM is part of the older Bluetooth Classic protocol and was specifically designed for emulating RS-232 connections over an radio interface.

Standard protocols for emulating serial over more modern transports like Bluetooth RFCOMM and USB CDC-ACM should be included in WebSerial rather than WebBluetooth or WebUSB.

What do you think of, "[...]access to peripherals via standard serial interconnects such as RS-232 or RS-422 or emulations there of over transports such as USB or Bluetooth."

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

access to peripherals via standard serial interconnects such as RS-232 or RS-422 or emulations there of over transports such as USB or Bluetooth

LGTM except s/there of/thereof/ :)

Can you make a suggested edit and I'll merge into the PR?

tantek and others added 3 commits April 27, 2026 10:26
Co-authored-by: Reilly Grant <reillyeon@users.noreply.github.com>
Reilly and Matt will share the editor role and split authorship of the standards.
* Update WebSerial description in db.json

Expanded the description of the WebSerial Standard to include details about standard serial interconnects and transport methods.

* there of -> thereof

Co-authored-by: Jeffrey Yasskin <jyasskin@gmail.com>

---------

Co-authored-by: Jeffrey Yasskin <jyasskin@gmail.com>
@tantek tantek requested a review from reillyeon April 29, 2026 23:35
@reillyeon
Copy link
Copy Markdown

This proposal looks good to me however I don't have the necessary repo permissions to approve it formally through the GitHub UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants