Open source · MIT

Ship your SaaS on Cloudflare, in Svelte.

Svelteflare is a production-ready boilerplate: a SvelteKit SPA, a typed Hono API, auth, subscriptions, and a themed component library — deployed edge-first on Cloudflare Workers.

  • Svelte 5
  • SvelteKit
  • Hono
  • Better Auth
  • Drizzle
  • Cloudflare D1
  • Stripe
  • shadcn-svelte
  • Tailwind v4
  • Cloudflare Workers
  • Alchemy

Everything a SaaS needs, already wired

Skip the first month of plumbing and start on the product.

Auth that just works

Email OTP and Google OAuth via Better Auth. Sessions, verification, and password reset wired end to end.

Stripe subscriptions

Plans, checkout, webhooks, and entitlement checks built in. Gate any route or feature on an active subscription.

56-component UI kit

Real shadcn-svelte components with semantic tokens and automatic dark mode. Customize the shared variables and component implementations as one cohesive design system.

Typed end to end

The SvelteKit client consumes the Hono API through a typed RPC client. Rename a field on the server and the frontend fails to compile.

Hardened API

CORS, CSRF protection, rate limiting, and secure headers as middleware on every Worker request.

Deploys itself

Alchemy provisions Workers, D1, R2, and email per stage. Every PR gets its own preview behind Cloudflare Access; staging and prod deploy from GitHub Actions.

Up and running in minutes

Clone, install, and you have a full-stack app running locally.

git clone https://github.com/pinebasedev/svelteflare.git my-app
cd my-app
pnpm install
pnpm dev             # marketing on :9001, web on :9002, api on :9003

Requires Node 24+, pnpm, and just. Full setup notes in the README.

Frequently asked

Start building, today.

MIT License · GitHub Built with SvelteKit, Hono, and Cloudflare Workers