Skip to main content

In-app SSE stream & notification center

Generated from mcp/patterns.registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: Notifications · Tier: light · Risk: low — same-origin authenticated stream, connection-limited

A container-mode in-memory connection map pushes notifications over SSE in real time (falling back to invalidate()-based polling on Vercel serverless) and feeds a Svelte 5 runes notification-center state.

When to use: Use when the UI needs near-real-time in-app notification delivery without standing up a third-party pub/sub service.

Docs

Code

Proof


Machine-readable record: notifications-sse-stream in mcp/patterns.registry.json.

← Back to Pattern Library

Think this pattern could be better? Tell us how.

Leave feedback