Skip to content
Saasflare.dev
Get started
Notify v0.1.1 for macOS is here

Ship SaaS on Cloudflareat 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.

$0/ mo to run
330edge locations
100%type-safe
Trusted by 1,200+ indie SaaS teams
Instagen.clickNotifyPatchworkAsideAnalyticsGranite LabOutpostNimbus AIMizuFinancialNshen.netInstagen.clickNotifyPatchworkAsideAnalyticsGranite LabOutpostNimbus AIMizuFinancialNshen.net
Built on Cloudflare

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.

Workers
Edge compute

Run your TanStack Start and Hono Workers on Cloudflare without managing regions or replicas.

100Krequests / day · free
D1
Serverless SQL

SQLite on the edge with read replicas. Drizzle ORM wired up out of the box.

5 GBstorage · free
KV
Global cache

Low-latency key/value reads from any edge. Perfect for sessions and feature flags.

100Kreads / day · free
R2
Object storage

S3-compatible storage with zero egress fees. User uploads, exports, backups.

10 GBfree / mo · $0 egress
Queues
Message bus

Producer/consumer with automatic retries and DLQ. Backbone of the task system.

10Koperations / day · free
Durable Objects
Stateful primitives

Strongly consistent state at the edge. Powers realtime, rate limiting, and locks.

100Krequests / day · free
Architecture

How a request flows through your stack.

User
Web WorkerTanStack Start
React NativeiOS · Android
DesktopTauri 2.0
API WorkerHono · typed RPC
Saasflare/analytics1KB privacy-first analytics
Saasflare/tasksLong tasks · visualized
Saasflare/affiliateReferrals · growth engine
Cloudflare primitives
D1KVR2QueuesDO

A decoupled front/back architecture — each side deploys independently and scales further, unlike other toy SaaS templates.

Every product. One stack.

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.

OPEN SOURCE · AGENT-READY · MIT

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.
~/starterMIT
$git clone https://github.com/saasflare-dev/starter.git
$cd starter && pnpm install && pnpm dev
webTanStack Starthttp://localhost:3000
serverHono APIhttp://localhost:4000
rpcoRPC + Zod · typed end to end
d1Drizzle migrations applied
authBetter Auth sessions ready
bindingsKV · R2 · Queues connected
$
AGENTS.mdWritten for coding agents — clone it and hand it straight to Claude, Codex.
PRODUCT · DESKTOP · FREE01 / 06

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.
Notify4 unread
deploynow
Build finished
branch main · status ok
offline? queued (last 1,000) · replayed on reconnect · history in local SQLite
PRODUCT · EMAIL · PRIVATE BUILD02 / 06

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.
newsletter.saasflare.dev
Product updates New list
Product updatesNewsletter

Build notes, launches, and early access.

247
Active subscribers
SubscribersBroadcastsEmbed
Broadcasts
Draft, queue, and track emails sent to this list.
New broadcast
SubjectStatusDeliveryAction
What we shipped in Junesent247/247 sent Send
Beta invites · wave 3sending24/247 sent Send
Welcome email refreshdraft0/247 estimated recipients Send
Join the list

Get product updates delivered to your inbox.

Email address
you@example.com
Join the list
<form data-sf-subscribe="product-updates">
PRODUCT · CLOUD03 / 06

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.
Tasks
184,293 runs · last 30 days
AllRunningFailed
running
transcode-video
job_8f2a · encoding-h264
64%
running
generate-report
job_3e1b · aggregating-rows
22%
queued
send-newsletter
job_a7c5 ·
0%
done
sync-stripe
job_4d9f · finished
100%
done
embed-docs
job_2b8e · finished
100%
failed
cleanup-r2
job_6c1d · retry-3/5
84%
PRODUCT · GROWTH04 / 06

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.
CLICKS · 30D
24,817
↑ 18.2%
CONVERSIONS
1,247
↑ 24.0%
PAID OUT · USD
$0
↑ 11.4%
JulAugSepOctNovDec
PartnerCodeClicksConv.Payout
JJames Carter/JAMES204,821312$2,840
LLin Wei/LINW3,902247$2,204
AAisha Khan/AISHA2,841188$1,672
MMarco Bianchi/MARCO1,992142$1,268
PRODUCT · INSIGHTS05 / 06

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.
analytics.saasflare.dev
24h7d30d
saasflare.dev
PAGE VIEWS
48,201
VISITORS
12,540
SESSIONS
18,933
AVG. DURATION
1m 12s
Page views & visitorsViewsVisitors
Pages
/14,102
/starter6,480
/analytics5,214
/company4,890
/pricing3,660
Referrers
news.ycombinator.com4,213
www.google.com3,882
github.com2,940
x.com1,764
www.reddit.com1,208
Channels
Channels
  • Direct57%
  • Google20%
  • GitHub13%
  • Hacker News10%
Geography
Geography
  • 🇺🇸 United States32%
  • 🇨🇳 China17%
  • 🇩🇪 Germany11%
  • 🇬🇧 United Kingdom9%
Browsers
Browsers
  • Chrome65%
  • Safari15%
  • Firefox12%
  • Edge6%
Devices
Devices
  • desktop79%
  • mobile21%
Metrics are estimates (Analytics Engine sampling).
AGENT SERVICE · INCORPORATE06 / 06

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.
Incorporation wizardsession · saasflare-dev/company
Acme Cloud, LLC
WY · single-member
58%
Wyoming LLC filing
Articles of Organization
filed
EIN · Same-Day
IRS Form SS-4
filed
Registered agent + address
Wyoming legal address
filed
Lili US bank account
Prepared · awaiting decision
in progress
5
Stripe onboarding
Payment processing guidance
queued
6
Telnyx US phone number
US business line
queued
TOTAL · ONE-TIME
$499
LLC · EIN · banking · payments
COMPLIANCE
$399 / yr
Form 5472 + pro forma 1120, WY annual report
ETA
~2 weeks
banking & payments ready
Pricing

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.

EARLY-BIRD PRICING · WHILE THE SITE IS STILL BEING BUILT
STARTER
MIT-licensed and free forever.
$0MIT · open source
Clone on GitHub
  • saasflare-dev/starter (AGENT.md + rule packs)
  • Deploy to your own Cloudflare account
  • GitHub Discussions community support
  • All future starter updates — free
No checkout and no license fee. Fork it and deploy to your own Cloudflare account.
MOST POPULAR
PRO
Every product. Lifetime free updates.
$169$79one-time · early-bird price
  • 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
Early-bird privilege price.
MAX
PRO + US company registration service.
$799$599one-time · white-glove
  • 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
First-year US incorporation included. Annual compliance ($399/yr) starts year 2.

Paid? Message us and we will set you up — early-bird access is unlocked by hand.

Email@nshen121
Cloudflare costs are yours.

You deploy to your own account. Most Saasflare apps fit inside Cloudflare's free tier until you hit real scale.

Pay once, ship forever.

No recurring license fees. Every tier is a one-time payment that includes lifetime updates to what you bought.

Unlimited team members.

Bring your whole team. Pricing is per project, not per seat. No "user-based" pricing nonsense.

FAQ

Questions you
probably have.

Still uncertain? Hop into GitHub Discussions — most maintainers are typing in there right now.

Open GitHub Discussions
Three things. Task-scoped docs explain the conventions, AGENTS.md tells coding agents where code belongs and what not to touch, and worked examples give them patterns to follow. That reduces project-structure guesswork while keeping the plan, diff, and tests in your review loop.
Less than you'd think. The agent reads AGENT.md and handles bindings, wrangler.toml, deploy commands, and edge-specific gotchas. You should still understand the basics — what a Worker is, what D1 vs KV vs R2 are for — to review the agent's plan before it ships. But you should not have to remember the exact Drizzle JOIN syntax at 2am. That's what AGENT.md is for.
For most apps, yes. Cloudflare's free tier includes 100,000 Worker requests/day, 5GB R2, 1GB D1, and 1M KV reads — more than enough for early-stage SaaS. You only pay Cloudflare when you cross into paid territory. PRO and Studio plans cover Saasflare modules, separately from your Cloudflare bill.
Independent deploy cadence, independent bindings, and a cleaner blast radius. The TanStack Start Worker does SSR and routing; the Hono Worker handles your API and queue producers. They share a typed contract but ship separately. Crucially, this also gives the AI agent a clean mental model — "frontend changes go here, API changes go there" — so no monolithic file becomes a 4,000-line context-window nightmare.
Saasflare/tasks runs entirely on your Cloudflare account, using Workflows + Queues + Durable Objects. No third-party SaaS, no egress, no per-event pricing. The trade-off: it's tied to the Cloudflare stack — if you ever need to leave, tasks are the part you'd need to port.
Yes. The D1 binding is just the default — every product accepts a Drizzle adapter, so swap in HyperDrive→Postgres, Supabase, Neon, or PlanetScale. You lose some edge-locality, but the rest of the stack works unchanged.
TanStack Start is the default because it has the cleanest Workers integration and the best type-safe routing right now. The API Worker (Hono) is framework-agnostic — pair it with anything that runs on Cloudflare Pages or Workers.
The starter is used in production by 200+ teams (per our anonymous telemetry). Tasks and Analytics are stable since 0.3. Affiliate is in public beta — solid but expect breaking changes through 0.5. We follow semver; 1.0 lands when all four are GA.
No. The starter stands alone. Each paid module is a separate package — install only what you need, when you need it. Removing a module is `pnpm remove` + delete one config block (or just ask the agent to do it).
Yes — we maintain a showcase at /showcase with case studies, public repos, and live deployments. If you ship something, tell us and we'll add you.
SAASFLARE NEWSLETTER

Follow 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.

Product updates and selected industry news. Unsubscribe in one click.