Skip to main content
cfstack
Create account
Cloudflare starterConfigure and verifyshadcn UI

cfstack

A Next.js starter with authentication, documentation and Cloudflare integrations.

🔐Sign-in and personal account screens
🧰Existing countdown and iframe tool examples
📝Documentation and configurable blog sources
🎨Shared shadcn/ui components

Built with modern technologies

Next.js
Cloudflare
TypeScript
Drizzle ORM
Auth.js
Tailwind CSS

Explore Features

See what's included in this template

Configure and verify

Start locally, choose your integrations, and verify each feature before deploying your own application.

Template modules

Explore the included modules

These modules provide starting points for an application. Configuration and deployment checks determine which integrations are available.

Cloudflare Configuration

Configuration and adapters for Workers, D1, KV and R2; each deployment supplies its own resources.

Account Flows

Auth.js sign-in, account forms and session handling with optional OAuth providers.

Checkout Adapters

Provider-specific checkout code and a demo return flow. Verify payment and access behavior for your deployment.

Admin Tools

Role-gated screens for accounts, plans, orders, messages, feedback and events.

Content Sources

Blog sources for MDX, Notion, Sanity and stored posts, selected by deployment configuration.

Background Events

Event processing, retry handling and scheduled trigger code for configured runtimes.

Powered by Cloudflare

Built for Cloudflare's edge platform

The template includes adapters and configuration for these services. Connect your own resources and validate their behavior in the intended runtime.

Included

Workers

Application runtime

  • ✓OpenNext deployment configuration
  • ✓Local preview scripts
  • ✓Deployment-owned bindings
Included

D1

Database adapter

  • ✓Drizzle schema
  • ✓Local development setup
  • ✓Explicit database targets
Included

KV

Key-value storage

  • ✓Runtime store adapter
  • ✓Configured cache consumers
  • ✓Deployment-owned namespace
Included

R2

Object storage

  • ✓Optional feedback attachments
  • ✓Explicit upload selection
  • ✓Deployment-owned bucket

Service availability, limits and costs depend on your own Cloudflare configuration.

Ready to ship your SaaS?

Start with an account, explore the available tools, and read the setup documentation.