Skip to main content

Web push channel (declarative JSON, no PII)

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: PWA · Tier: light · Risk: low — no PII in payload, subscriptions capped and pruned per user

Web push uses one Declarative Web Push JSON payload carrying no PII (brand title, generic body, same-origin navigate path) so real content only loads after tap-through session auth, delivered synchronously and bypassing the outbox.

When to use: Use when adding browser push notifications that must render on iOS Safari without SW code while staying privacy-safe on lock screens.

Docs

Code

  • src/lib/server/notifications/providers/ (GitHub · GitLab)

Machine-readable record: pwa-web-push in mcp/patterns.registry.json.

← Back to Pattern Library

Think this pattern could be better? Tell us how.

Leave feedback