svelte-supabase-stripe Svelte Themes

Svelte Supabase Stripe

A boilerplate project allowing for OTP signup, login and upgrade.

Bare-bones Supabase OTP + MongoDB + Stripe starter

Minimal SvelteKit TypeScript frontend and FastAPI backend.

Recommended deployment path:

  • Supabase for Auth (required)
  • MongoDB for database (required) [Recommended to deploy to railway for lowest cost, Atlas for production scale]
  • Fly.io, Railway or AWS ECS for server deployment.

Features:

  • Supabase OTP code signup/login with JWKS-based JWT verification
  • MongoDB user/profile storage
  • Stripe subscription checkout
  • User-controlled activity tracking via /telemetry/action
  • Tiers: free, plus monthly/annual, pro monthly/annual
  • Frontend loads plans from GET /plans
  • Google Analytics loaded only after cookie consent
  • All styling lives inside Svelte files

This project was built to make it easy to start commercial apps - and provide coding agents a solid base for success on the important stuff.

Out of the box you get user management, payments, database setup, telemetry foundations, and a frontend.

Docs

See docs/ for concise guides:

  • docs/auth.md
  • docs/payments.md
  • docs/client.md
  • docs/server.md
  • docs/user.md
  • docs/telemetry.md
  • docs/gdpr.md
  • docs/schemas.md

GDPR notes

Current privacy controls:

  1. Users can opt in and out of product activity tracking from account settings.
  2. The backend checks tracking_enabled before storing telemetry.
  3. Telemetry is disabled by default for new users.

Implemented self-service privacy endpoints:

  1. GET /me/export downloads the user's Mongo profile data.
  2. DELETE /me deletes the Mongo user and Supabase auth user.

Top categories

Loading Svelte Themes