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

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.

Cloudflare-native

Workers, one D1 database, email delivery, and static assets — no servers to manage and a generous free tier.

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
cp apps/web/.env.example apps/web/.env
cp apps/api/.dev.vars.example apps/api/.dev.vars
just migrate-local   # create the local D1 database
just 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