Astro on Cloudflare Workers — Starter Template

An empty, production-ready Astro starter that runs on Cloudflare Workers. Astro runs on Cloudflare Workers using the @astrojs/cloudflare adapter. Clone it with one command, run locally with no login, then let your agent add modules.

cloudflare-workers astro @astrojs/cloudflare

Astro supports both SSR and hybrid (partial prerender) output modes on Cloudflare Workers via @astrojs/cloudflare, letting you mix static islands with server-rendered routes in a single deploy.

Get started

  1. 1
    pnpm create microservices-app@latest my-app --template astro Scaffolds an empty Astro app wired for Cloudflare Workers — no login, no account.
  2. 2
    cd my-app && pnpm install && pnpm dev Starts the Astro dev server; edit src/layouts/Layout.astro to make it yours.
  3. 3
    pnpm microservices add auth Composes a verified module (swap auth for billing, booking, email, …).
  4. 4
    pnpm dlx wrangler deploy Ships to your own Cloudflare account when you're ready.

What's wired

  • Cloudflare Workers runtime
  • Astro
  • @astrojs/cloudflare
  • wrangler.toml — ready to deploy
  • microservices.lock.json — module pinning

Add backend modules

Once scaffolded, extend your app with production-ready modules — auth, billing, booking, email, audit, and more — without writing the dangerous plumbing yourself:

pnpm microservices add auth

Swap auth for any module id. See what's available in product templates or browse modules.