Cloudflare Starter
A starter by Leitware

Cloudflare
Starter

Auth, data, files, payments and email. One TypeScript repo, running on Cloudflare.

Quick start

  1. Clone
    git clone https://github.com/rowanhen/pnpm-cloudflare-tanstack-template.git my-idea
  2. Install
    cd my-idea && corepack enable && pnpm install
  3. Run
    pnpm dev

Node.js · pnpm · No cloud account needed locally

TanStack Start · Drizzle · Composables / Kumo

Included

Better Auth

Email code sign-in

Email code sign-in, sessions and a protected dashboard.

D1 + Drizzle

Database

D1 tables, Drizzle migrations and shared API types.

R2

File storage

Private uploads, downloads and deletion.

Stripe

Payments and credits

Custom checkout, credits and metered API requests.

REST

API keys

Scoped keys, revocation and rate limits.

Email

Email

Waitlist confirmations and transactional email.

PostHog

Analytics and errors

Analytics, masked replay and API monitoring.

Examples

Try the dashboard or submit the waitlist form.

Stripe, email and PostHog need provider setup.

Try the waitlist

Run the tests

pnpm check runs lint, formatting, unit and API tests, type checks and builds.