A lightning-fast, serverless e-commerce store using an Astro storefront and a Hono API on Cloudflare Workers, backed by D1 and R2.

A premium bath and body brand wanted to move away from a bloated, subscription-heavy e-commerce platform to a bespoke, ultra-fast, and cost-effective serverless store.

Challenge

Off-the-shelf e-commerce platforms suffer from slow load times, rigid checkout flows, and high monthly costs. The client needed a store that could absorb flash-sale traffic spikes without slowing down, offer a fully customizable checkout, and keep infrastructure costs minimal.

Solution

We built a modern serverless monorepo using npm workspaces:

  • Astro SSR Storefront: A fast, SEO-optimized storefront deployed on the Cloudflare Pages adapter.
  • Hono API Worker: A lightweight, high-performance API on Cloudflare Workers handling cart logic, inventory, and checkout.
  • Edge Storage & Database: Cloudflare D1 for transactional data and R2 / Images for optimized product media.
  • Stripe Integration: Secure payment flows with webhook-driven order fulfillment.

Results

The storefront achieved top-tier Lighthouse performance scores, with sub-second global load times that lifted conversion rate. Infrastructure costs dropped to near-zero during off-peak hours thanks to the serverless edge architecture.