Mercure Protocol: spec stabilized for 1.0, refreshed Internet-Draft

Hi there,

I am re-announcing the Mercure Protocol on this list. The spec was first
published in 2018 (draft-dunglas-mercure-00, October 2018) and has been
in continuous use and revision since. It has now stabilized for a 1.0
release. The reference implementation is currently tagged v1.0.0-alpha.3
while the code catches up to the spec, and I have refreshed the
Internet-Draft accordingly.

- Datatracker: https://datatracker.ietf.org/doc/draft-dunglas-mercure/
- Spec source (pinned):
https://github.com/dunglas/mercure/blob/v1.0.0-alpha.3/spec/mercure.md
- Reference implementation: https://github.com/dunglas/mercure

Mercure is a hub-based publish/subscribe protocol over HTTP and SSE,
designed to push updates to web browsers and HTTP clients. It targets
the "server-to-client real-time updates" use case that today is usually
served by ad-hoc WebSocket protocols.

For context, the I-D was first submitted in October 2018, brought to
this list in 2020
(https://lists.w3.org/Archives/Public/ietf-http-wg/2020JulSep/0020.html),
and surfaced again in 2022 in Michael Toomim's "Mnot's Pub/Sub for the
Web" thread
(https://lists.w3.org/Archives/Public/ietf-http-wg/2022JanMar/0164.html).
The protocol has been in production use across multiple ecosystems for
roughly seven years.

A note on timing and relevance: SSE has become the de-facto transport for
streaming output from AI systems. The OpenAI and Anthropic APIs, and the
Model Context Protocol, all stream tokens over SSE. Mercure is SSE-native
and
adds the pieces those ad-hoc uses lack: authorization, multiplexing,
discovery,
and reconnection with state reconciliation, all over plain HTTP. A
standardized,
authenticated way to stream incremental results to browsers and HTTP
clients is
more useful now than when this work started.

What is new since draft-dunglas-mercure-07 (2020) is largely a matter of
removing Mercure-specific machinery in favor of standards that did not
exist,
or were not mature, when the protocol was first drafted in 2018:

- URL matching now uses the WHATWG URL Pattern standard instead of URI
  Templates. URI Templates (RFC 6570) define expansion, not matching, and
  Mercure had to specify matching itself; URL Pattern is purpose-built for
  matching and did not exist in 2018. The matcher set is reduced to two
types,
  Exact and URL Pattern.
- Authorization now uses OAuth 2.0 Rich Authorization Requests
  (authorization_details, RFC 9396) instead of a bespoke "mercure" JWT
claim.
  The hub is an OAuth 2.0 protected resource; access tokens follow the JWT
  access token profile (RFC 9068), are presented and error-reported per the
  Bearer usage spec (RFC 6750), and auth requirements are discoverable via
  OAuth 2.0 Protected Resource Metadata (RFC 9728, published 2025). None of
  these existed or were usable in 2018.
- Security hardening
- Editorial pass for IETF style and consistency.

The result is a smaller spec that reuses existing IETF and web standards
rather
than reinventing them, and that a generic OAuth resource-server library can
enforce.

Deployment status:

- Reference hub (Go, ~5k GitHub stars) used in production:
  https://github.com/dunglas/mercure
- FrankenPHP, the modern PHP application server (~11.1k GitHub stars,
  now supported by the PHP Foundation), ships a native Mercure hub,
  exposes it through native PHP functions, and uses it internally for
  its hot-reload feature: https://frankenphp.dev
- First-class integration in Symfony (official real-time solution),
  API Platform, Laravel, Spiral, and others; community clients across
  JavaScript, Python, PHP, Java, .NET, Rust, Swift, and more.
- Production deployments include UEFA Euro 2020, COP26, France Titres
  (ANTS, French government agency for secure documents), France Médias
  Monde, M6, Treezor (Société Générale group), Multitude Bank,
  BRAC Bank, Yousign, Rectangle Health,
  Lush, Adore Me, Printify, Sellsy, and others. A fuller list:
  https://mercure.rocks/references

I would like to gauge whether there is interest in pursuing this work
within HTTP, or whether the WG would prefer that I take it to the
independent stream. I will follow up with the co-chairs separately with
a concrete request.

Reviews and feedback on the refreshed draft are very welcome.

Thanks,

Kévin Dunglas
Les-Tilleuls.coop

Received on Tuesday, 11 August 2026 12:38:21 UTC