In-app SSE stream & notification center
Generated from
mcp/patterns.registry.json— do not edit by hand; change the registry and runbun 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
src/lib/server/notifications/stream.ts(GitHub · GitLab)src/lib/state/notifications.svelte.ts(GitHub · GitLab)
Proof
Machine-readable record: notifications-sse-stream in mcp/patterns.registry.json.