cfstack
A Next.js starter with authentication, documentation and Cloudflare integrations.
Built with modern technologies
Explore Features
See what's included in this template
Start locally, choose your integrations, and verify each feature before deploying your own application.
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.
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.
Workers
Application runtime
- ✓OpenNext deployment configuration
- ✓Local preview scripts
- ✓Deployment-owned bindings
D1
Database adapter
- ✓Drizzle schema
- ✓Local development setup
- ✓Explicit database targets
KV
Key-value storage
- ✓Runtime store adapter
- ✓Configured cache consumers
- ✓Deployment-owned namespace
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.