Built for Cloudflare Workers

Build SaaS on
Cloudflare's Edge

Deploy in 30 minutes. Scale to millions for $5/month.

Everything you need to ship

Production-ready features, configured and connected.

Edge Performance

Runs on Cloudflare's global network. Sub-50ms response times from 300+ locations worldwide.

D1 Database

SQLite at the edge with Drizzle ORM. Migrations, type safety, and local dev — all pre-configured.

File Uploads

R2 object storage with presigned URLs. Upload, serve, and manage files with zero egress fees.

Billing Ready

Polar integration with webhook handlers, subscription sync, and checkout — ready to accept payments.

Ship in hours, not weeks

From clone to production in three simple steps.

1

Clone & Install

Clone the repo, run `npm install`, and copy `.dev.vars.example` to `.dev.vars`.

2

Configure

Add your Google OAuth credentials, Polar API keys, and Cloudflare account.

3

Deploy

Run `npm run deploy` to push to Cloudflare Pages. Your SaaS is live.

Simple, transparent pricing

Start free, scale as you grow. No hidden fees.

Starter

For hobby projects and prototypes

$0 /month
  • Up to 100 users
  • 1GB file storage
  • Community support
Get Started Free
Most Popular

Pro

For production SaaS applications

$9 /month
  • Unlimited users
  • 100GB file storage
  • Priority support
  • Custom domain
Start Free Trial

Loved by developers

Join hundreds of teams shipping faster with Astro SaaS.

"Launched my side project in a weekend. The auth, database, and billing were already wired up. Unreal."

SJ
Sarah Johnson
Founder, Sidekick

"We switched from Next.js to Astro and our page speed scores went from 60 to 98. Customers notice."

MC
Mike Chen
CTO, GrowthLab

"Hosting went from $80/month to $5. The edge performance is no joke — our global users love it."

AR
Alex Rivera
Lead Dev, StartupXYZ

Built with the modern edge stack

Best-in-class tools, zero vendor lock-in.

Astro Cloudflare Workers D1 (SQLite) R2 Storage Drizzle ORM TypeScript Tailwind CSS

Frequently asked questions

Why Astro for SaaS?

Astro ships zero JavaScript by default, meaning your pages load instantly. For SaaS apps, you get the best of both worlds: static-like speed for marketing pages with full interactivity where you need it. Plus, edge rendering means sub-50ms response times globally.

How does billing work?

We integrate with Polar.sh for subscription management. You can set up monthly or yearly plans, handle trials, and manage cancellations — all through their dashboard. Webhooks automatically sync subscription status to your users.

Can I use my own database?

Absolutely. The starter uses Cloudflare D1 (SQLite at the edge), but you can swap it for PostgreSQL, MySQL, or any database that works with Drizzle ORM. The schema is entirely yours to modify.

What's the hosting cost?

Cloudflare Workers and D1 have generous free tiers. For a typical SaaS with 1,000 users, expect to pay around $5/month. Compare that to $50-100+ for equivalent VPS hosting — and you get global edge distribution.

Is this production-ready?

Yes. The starter includes proper security (CSRF protection, secure sessions, role-based access), error handling, TypeScript throughout, and follows Cloudflare's best practices. It's what we use for our own products.