Mercure use cases
Bring your application to life with streaming AI responses, live dashboards, and notifications that arrive as things happen. These guides show how to build them with Mercure and your existing backend.
Start with Mercure Cloud to focus on your application. Need a supported deployment on your own servers? Mercure Enterprise adds clustering, shared transports, and direct access to the maintainers.
#AI streaming
- LLM token streaming: stream tokens from a server-side OpenAI / Anthropic / local-model call to the browser as they arrive, over a shared SSE subscription.
- AI agent progress: push state changes from a long-running agent ("searching the web", "running tool", "summarizing") to the UI in real time.
#Application real-time use cases
- Live data and dashboards: stock tickers, availability counters, IoT telemetry, observability dashboards.
- Collaborative editing: multiple users edit the same document, changes broadcast as they happen.
- Async jobs and progress: kick off a long-running job, push progress to the requester, deliver the result when ready.
- Notifications: in-app toasts, mention badges, mailbox counters.
#Server-rendered apps with Mercure
- Hotwire / Turbo Streams: stream HTML fragments to swap into the page, no JSON layer required.
#API integrations with Mercure
- GraphQL subscriptions: deliver GraphQL results through Mercure.
- Laravel Broadcasting: publish Laravel events and receive them with Echo.
#Mercure in production: case studies
These talks and articles describe Mercure deployments:
- mail.tm reported 8 million notifications per day in 2022.
- Mercure deployment examples from a conference talk.
- Raven Controls: Mercure at Euro 2020 and COP26 (2022 talk).
#Don't see your case?
For help choosing an approach, search or ask in GitHub Discussions.