Ship SaaS on Cloudflare—at the speed of thought.
The open-source SaaS foundation for coding agents. Clone the starter, point your coding agent at the AGENT.md, and describe your SaaS in your own words. Long tasks, affiliates, analytics — included.
One stack, all of Cloudflare underneath.
Saasflare wires up every Cloudflare developer product you'd reach for — with sensible defaults, typed bindings, and local-first dev that mirrors production exactly.
Run your TanStack Start and Hono Workers on Cloudflare without managing regions or replicas.
SQLite on the edge with read replicas. Drizzle ORM wired up out of the box.
Low-latency key/value reads from any edge. Perfect for sessions and feature flags.
S3-compatible storage with zero egress fees. User uploads, exports, backups.
Producer/consumer with automatic retries and DLQ. Backbone of the task system.
Strongly consistent state at the edge. Powers realtime, rate limiting, and locks.
How a request flows through your stack.
A decoupled front/back architecture — each side deploys independently and scales further, unlike other toy SaaS templates.
An open core,
+ everything a SaaS needs.
Start with the free TanStack + Hono template. Pay only when you need visual long-running jobs, affiliates, analytics — or a US company set up for you. Each is a self-contained system that deploys seamlessly onto Cloudflare Workers.
saasflare-dev/starter
A Cloudflare SaaS starter, ready for AI agents.
Clone the repo and one command runs the full stack. It is the base every Saasflare product is built on — free, MIT-licensed, yours.
- AGENTS.md and rule packs includedThey explain the whole project to Claude, Codex, or Cursor.
- Two Workers, typed end to endWeb and API deploy independently, connected by oRPC + Zod types.
- A real preview environment per PRAlchemy IaC deploys an isolated Cloudflare stack; closing the PR destroys it.
Saasflare/notify
A free desktop notification center.
Webhook in, toast on your desktop. When something happens on your server, your screen knows in seconds — no dashboard left open, no inbox to dig through.
- One curl to integrateNo SDK. Anything that can send an HTTP request can reach your desktop.
- Offline is handledThe latest 1,000 messages queue and replay in order on reconnect.
- History stays on your machineStored in local SQLite, readable offline. Free on macOS today.
Saasflare/newsletter
A self-hosted newsletter tool for all your sites.
A self-hosted email list manager deployed to your own Cloudflare account. Collect and manage subscribers, edit content visually, and send email in bulk. Add signup forms to any number of sites, with double opt-in support — every subscriber lives in your own D1 database, with no per-subscriber SaaS bill.
- Lists with real statusesEvery subscriber is pending, active, or unsubscribed — searchable by email, name, and signup source.
- Embed in three flavorsCopy a zero-dependency HTML form, a generated React component, or POST to the JSON endpoint. Allowed origins per list.
- Broadcasts with sent countsDraft an HTML email, queue one delivery per active subscriber, and watch sent/total tick up on each broadcast.
Build notes, launches, and early access.
Get product updates delivered to your inbox.
Saasflare/tasks
Background tasks that survive the page reload.
Run video transcodes, AI generations, weekly reports — any task longer than 30 seconds — on top of Workflows and Queues. Durable retries, scheduled runs, exactly-once delivery, and a dashboard your team can actually use.
- Built on WorkflowsType-safe steps with automatic checkpointing. Resume from any failure without re-running expensive work.
- Scheduled & event-drivenCron triggers, webhook triggers, manual triggers. All from the same SDK.
- Observable by defaultPer-step traces, replay, and a task inspector. Debug long tasks like you debug requests.
Saasflare/affiliate
Referral program in 4 lines of code.
Drop in a referral system that doesn't leak signups. Cookieless attribution, partner dashboards, automated payouts via Stripe Connect — all running on the edge so referral redirects add zero latency.
- Edge attributionTrack by token, IP+UA hash, or first-touch link. No third-party JS, no cookie consent nightmare.
- Partner portal includedBranded sign-up, payout history, real-time clicks/conversions. Use it or theme it.
- Stripe Connect payoutsAuto-pay partners on a schedule with tax forms. Or export CSV — your call.
Saasflare/analytics
Cookieless analytics in your own Cloudflare account.
Stop sending visitor data to a third party. Buy once and deploy the whole system — tracker, API worker, dashboard — into your own Cloudflare account, with every hit landing in your own Analytics Engine dataset. GDPR-clean by construction.
- No third-party JS~1 KB gzipped script. No cookies, no fingerprints, no persistent IDs — visitors are counted with a one-way hash salted daily.
- Every site, one dashboardUnlimited sites on a single deployment: KPIs, trends, top pages, exact referrers, auto-sorted channels, country→city geography, UTM campaigns.
- No monthly meterBuy once; traffic runs on your own Cloudflare allowance — no per-event or per-site fees from us, ever.
- Direct57%
- Google20%
- GitHub13%
- Hacker News10%
- 🇺🇸 United States32%
- 🇨🇳 China17%
- 🇩🇪 Germany11%
- 🇬🇧 United Kingdom9%
- Chrome65%
- Safari15%
- Firefox12%
- Edge6%
- desktop79%
- mobile21%
saasflare-dev/company
Spin up a US company without lawyers.
Everything you need to get a US company running, not just registered. Built for solo founders and small teams going global — Wyoming LLC, EIN, US business phone, banking, and payment processing in one $499 flow. Our agent files the paperwork; you stay focused on shipping.
- LLC + EIN, end-to-endWyoming LLC, registered agent, Wyoming legal address, optional US mailing address. Same-Day EIN available (+$99) — otherwise about 3 weeks via standard filing.
- Banking & payments, white-gloveLili US business bank account opened with our 1-on-1 support. Stripe onboarding guidance + Telnyx US phone number registration handled.
- Annual compliance, handledForm 5472 + pro forma 1120 and the Wyoming annual report — both filings tracked and submitted for $399/year, starting year 2. Miss neither.
One-time payment.
Own it for life.
Every current Saasflare product, and every future update to it, for a single payment. No subscriptions, no per-seat pricing, no renewals.
- saasflare-dev/starter (AGENT.md + rule packs)
- Deploy to your own Cloudflare account
- GitHub Discussions community support
- All future starter updates — free
- Everything in STARTER
- Private GitHub repo seat + all product source code
- Notify — webhook-to-desktop alerts
- Analytics — 1KB privacy-first analytics
- Tasks — long tasks that survive reloads
- Affiliate — referral system
- Smart Wallet — stablecoin payments & payroll
- Lifetime free updates to ALL current products
- Priority email support · < 24h
- PRO — every current product, lifetime free updates
- SaaS-optimized LLC US company structure
- Wyoming LLC + EIN + registered agent
- 1-on-1 Lili US bank account opening
- 1-on-1 Stripe onboarding guidance
- VoIP US phone number
- US business address (yr 1)
- Architecture review on request
You deploy to your own account. Most Saasflare apps fit inside Cloudflare's free tier until you hit real scale.
No recurring license fees. Every tier is a one-time payment that includes lifetime updates to what you bought.
Bring your whole team. Pricing is per project, not per seat. No "user-based" pricing nonsense.
Questions you
probably have.
Still uncertain? Hop into GitHub Discussions — most maintainers are typing in there right now.
Open GitHub DiscussionsFollow what we’re building.
We’ll only email you when we have a product update or industry news genuinely worth your attention. No inbox noise—only content that’s useful to you.