Cloudflare Workers Nextjs Saas Template screenshot

Cloudflare Workers Nextjs Saas Template

Author Avatar Theme by Lubomirgeorgiev
Updated: 20 May 2025
391 Stars

Cloudflare Workers/Next.js SaaS Template

Categories

Overview:

The Cloudflare Workers SaaS Template is a comprehensive template for building SaaS applications using Cloudflare Workers and the OpenNext framework. This template offers a wide range of features for authentication, database management, email services, deployment automation, user interface design, and developer experience, making it a valuable resource for developers looking to create robust SaaS applications.

Features:

  • Authentication with Lucia Auth
  • Google OAuth/SSO Integration
  • Session Management with Cloudflare KV
  • Database with Drizzle and Cloudflare D1
  • Email Service with React Email and Resend or Brevo
  • Modern UI with Tailwind CSS
  • Dark/Light Mode Support
  • Server-side Rendering with React Server Components

Installation:

To run the Cloudflare Workers SaaS Template locally, follow these steps:

  1. Run pnpm install to install the necessary dependencies.
  2. Copy .dev.vars.example to .dev.vars and fill in the values.
  3. Copy .env.example to .env and fill in the values.
  4. Run pnpm db:migrate:dev to migrate the database for local development.

Summary:

The Cloudflare Workers SaaS Template is a feature-rich solution for building SaaS applications, offering a wide range of functionalities from authentication and database management to deployment automation and UI design. With its comprehensive set of features and straightforward installation process, this template provides developers with a solid foundation for developing modern and efficient SaaS applications.