Web-push Svelte-kit Sample Set your VAPID in .env (use my .env.exampl) bun install bunx web-push generate-vapid-keys # then it will give you keys Create and Migrate DB bun run db:create bun run db:migrate Run dev server bun run dev --open Clicks subscribe Button (src/+page.svelte) Subscribe alarm (src/api/subscribe/+server.ts) Visit /web-push endpoint. it will send you a alarm (src/web-push/+server.ts) Tech stack Sveltekit for frontend and backend web-push for push notification drizzle for Orm (to save Subscription in DB) sqlite