Skip to content

Use cases

Mercure is a thin protocol; it covers a wide range of "I need to push something to a connected client" problems. The pages below are concrete walkthroughs, each one ships a working example you can run.

#Modern AI workloads

  • LLM token streaming: stream tokens from a server-side OpenAI / Anthropic / local-model call to the browser as they arrive, without a WebSocket gateway in front of your inference server.
  • 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

#Server-rendered apps with Mercure

#API integrations with Mercure

#Mercure in production: case studies

Mercure is used at scale today, a few public examples:

#Don't see your case?

Mercure is the right answer when "the server has fresh data, push it to clients" is the shape of the problem. If you're unsure, ask in GitHub Discussions, most "should I use Mercure for X?" questions have already been answered there.