Mercure: Real-time Made Easy
Mercure is an open solution for real-time communications designed to be fast, reliable and battery-efficient. It is a modern and convenient replacement for both the Websocket API and the higher-level libraries and services relying on it.
Mercure is especially useful to add streaming and asynchronous capabilities to REST and GraphQL APIs. Because it is a thin layer on top of HTTP and SSE, Mercure is natively supported by modern web browsers, mobile applications and IoT devices.
A free (as in beer, and as in speech) reference server as well as a hosted service are available.
Mercure: at a glance
Pure HTTP, full-duplex, leverage HTTP/2+
High performance, low latency
Native browser support, works everywhere
Publish with a simple POST request
Subscribe using Server-Sent-Events
Automatic reconnection, refetch missed messages
Designed for REST and GraphQL
Private updates (JWT authorization)
Presence API and subscription events
Compatible with serverless, PHP and the like
Supports end-to-end encryption
They use Mercure
Need help ?
Reading the documentation is an excellent way to discover Mercure.
Chat with the community on Slack and Stack Overflow
Improve your Mercure skills thanks to our trainings.
Les-Tilleuls.coop provides professional services: web development, trainings or consulting.