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

Hi Kevin,

Events Query does not need to be subject resource-centric. As you suggest at the end of the mail, it can work with a hub resource as well (baring section 10) in a similar way as SSE, with a minor extension to the QUERY data-model. I mentioned it precisely because I also see it as composable, something that could benefit Mercure users in the future.

Best Regards,
Rahul 


On Wednesday, August 12th, 2026 at 10:42 PM, Kévin Dunglas <kevin@dunglas.fr> wrote:

> Hi Rahul,
> 

> Fair point on venue. Mercure does not extend HTTP; it is an application
> protocol on top of it, so HTTPAPI may well be the better home. I would
> rather have that routed than assume it, so I am putting the question to
> the HTTP WG chairs and the AD, and will follow whichever answer comes
> back.
> 

> Thanks for your work on Events Query. I follow the proposal, and it looks indeedmore complementary to Mercure, than an alternative to it.
> 

> Events Query is resource-centric: notifications for events on a given resource, temporal
> coordination across responses out of scope, authorization left to the
> server.
> 

> On the other hand, Mercure is deliberately hub-based (It was heavily inspired by
> WebSub in the beginning).
> 

> Topics are decoupled from origin resources, one connection multiplexes many topics,
> authorization is specified (RFC 9396 authorization_details in an RFC 9068 access token,
> discoverable per RFC 9728 etc), and reconnection is defined with
> Last-Event-ID replay from the hub.
> 

> Also, the refreshed draft already allows QUERY (RFC 10008) for subscription.
> Hubs must support GET, since that is what EventSource uses,
> and can also accept any other safe method (QUERY is explicitly listed) that
> can carry the topic matcher parameters in the request body,
> so subscribers can send matcher lists too large for
> intermediary URI length limits.
> 

> So the two look composable rather than exclusive. A hub is itself a
> resource, and I see nothing that would stop a hub from serving its
> stream via Events Query alongside Event Stream.
> 

> Best regards and thanks for your reply,
> 

> Kévin Dunglas
> Les-Tilleuls.coop
> 

> On Wed, Aug 12, 2026 at 2:38 AM Rahul Gupta <cxres@protonmail.com> wrote:
> 

> > Hi Kevin,
> > 

> > For Mercure, HTTPAPI might be a more appropriate venue for discussion. Nothing in it modifies HTTP or requires HTTP extension itself.
> > 

> > As a shameless plug: you might want to check out my Events Query proposal https://cxres.github.io/events-query/draft-gupta-httpapi-events-query.html as a powerful SSE alternative, which should be useful even for Mercure.
> > 

> > BR/Rahul
> > 

> > On Tuesday, August 11th, 2026 at 6:10 PM, Kévin Dunglas <kevin@dunglas.fr> wrote:
> > 

> > > 

> > > 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 Thursday, 13 August 2026 13:57:29 UTC