Add Push Notifications to Svelte / SvelteKit

Push notifications via Expo, FCM (Android), and APNs (iOS) with token management

What You’ll Get

  • Push notifications via Expo, FCM (Android), and APNs (iOS) with token management
  • Full TypeScript types and IntelliSense
  • Zero dependencies (native fetch)
  • Works with Svelte / SvelteKit (fast web apps, SvelteKit full-stack apps)

Install

$npm install @recursiv/sdk

Initialize

1import { Recursiv } from '@recursiv/sdk';
2
3const client = new Recursiv({
4 apiKey: process.env.RECURSIV_API_KEY!,
5});

Use in SvelteKit load functions (server-side) or Svelte components (client-side).

Quick Example

1// Register push token
2await client.notifications.registerPushToken({
3 token: expoPushToken, platform: 'expo',
4});

How Long Does This Take?

ApproachTime
Recursiv SDKMinutes — npm install and start calling notifications API
Build from scratch1-2 weeks — FCM/APNs integration, token management, delivery tracking, notification preferences

Pricing

  • Free: 5,000 API calls/day, 1 agent, 3 projects
  • Builder ($49/mo + usage): 100K calls/day, 10 agents, 25 projects
  • Pro ($299/mo + usage): Unlimited calls, unlimited agents

Next Steps

Resources