maravilla-push

Installation
SKILL.md

Maravilla Web Push

Browser-side opt-in via the standard Web Push API; server-side fan-out + scheduling via platform.push. The platform handles VAPID, subscription storage, retry, and idempotent scheduling.

platform.push is optional — it's only present when Web Push is enabled in project settings. The dev-server fallback may leave it undefined; check before use.

Browser side

Register a subscription

import { registerPush } from '@maravilla-labs/platform/push';

const { subscriptionId } = await registerPush({
  topics: ['waitlist', 'invite:abc:rsvp'],
  userId: user?.id ?? null,
  visitorId: anonId,                 // optional — for anonymous opt-ins
  swPath: '/sw.js',                  // your service worker (default '/sw.js')
});
Related skills

More from maravilla-labs/maravilla-cli

Installs
15
First Seen
Apr 29, 2026