Características

https://github.com/LubomirGeorgiev/cloudflare-workers-nextjs-saas-template

  • 🔐 Authentication with Lucia Auth

    • 📧 Email/Password Sign In

    • 📝 Email/Password Sign Up

    • 🔑 WebAuthn/Passkey Authentication

    • 🌐 Google OAuth/SSO Integration

    • 🔄 Forgot Password Flow

    • 🔒 Change Password

    • ✉️ Email Verification

    • 🗝️ Session Management with Cloudflare KV

    • 🤖 Turnstile Captcha Integration

    • ⚡ Rate Limiting for Auth Endpoints

    • 🛡️ Protected Routes and Layouts

    • 📋 Session Listing and Management

  • 💾 Database with Drizzle and Cloudflare D1

    • 🏗️ Type-safe Database Operations

    • 🔄 Automatic Migration Generation

    • 💻 SQLite for Local Development

    • ⚡ Efficient Data Fetching

    • 🔍 Type-safe Queries

  • 📨 Email Service with Cloudflare Email Service

    • 🎨 Beautiful Email Templates

    • 👀 Email Preview Mode

    • 🔧 Local Email Development Server

    • 📬 Transactional Emails

    • ✉️ Email Verification Flow

    • 📱 Responsive Email Templates

  • 🚀 Deployment with Github Actions

    • ⚙️ Automatic Deployments

    • 🔐 Environment Variables Management

    • 📦 Database Migrations

    • 🔄 Comprehensive CI/CD Pipeline

    • 🧹 Cache Purging

    • ✅ Type Checking

    • 🧪 Integration Tests

    • 🧪 End-to-end Tests

    • 📏 Deploy Size Tracking

  • 🎨 Modern UI

    • 🎨 Tailwind CSS

    • 🧩 Shadcn UI Components

    • 🌓 Dark/Light Mode

    • 📱 Responsive Design

    • ⚡ Loading States and Animations

    • 🔔 Toast Notifications

    • ⚙️ Settings Dashboard

    • 🏠 Landing Page

    • ✨ Beautiful Email Templates

    • 👤 Profile Settings Page

    • 🎯 Form Validation States

  • 💳 Team Subscription Billing

    • 🧩 Per-team plans (Free / Pro / Enterprise) defined in code

    • 💳 Embedded Stripe Elements (Payment Element) for checkout — no redirect to hosted pages

    • 🔔 Webhook-driven subscription lifecycle (Stripe is the source of truth)

    • 🔁 In-app plan changes and cancellation

    • 🧾 Stripe Customer Portal for payment methods, invoices, and billing details

    • 🔒 Plan-based entitlements and feature gating (e.g. seat limits)

    • 🛠️ One-command Stripe setup (pnpm stripe:setup)

  • 🤖 AI-agent platform (public API, OAuth, MCP)

    • 🌐 Versioned public REST API built with Hono, reusing the app's own service layer

    • 📘 OpenAPI 3.1 document generated from the same Valibot schemas the server validates with

    • 📖 Server-rendered API reference with client-side search — no spec-viewer bundle — plus authentication and error-code guides

    • 🔑 API keys for users and teams, with scopes, optional expiry, and one-time secret display

    • 🪪 OAuth 2.1 authorization server (PKCE, dynamic client registration, consent screen)

    • 🔌 Remote MCP server whose tools are derived from the OpenAPI document — no hand-written tool list

    • 🧭 Connect guides for Claude Code, claude.ai, ChatGPT, Cursor, VS Code, Codex, Antigravity, and Grok CLI

    • 🧹 Self-service revocation from Settings → API & MCP, plus an admin view of registered OAuth apps

  • 👑 Admin Dashboard

    • 👥 User Management

    • 🪪 OAuth app registry with verification and revocation

  • 📝 Content Management System

    • 🗂️ Config-driven collections for blog and docs content

    • ✍️ Rich TipTap editor with markdown paste, markdown copy, tables, code highlighting, and alert blocks

    • 🧭 Docs navigation builder with managed public URLs

    • 🖼️ Media library with R2-backed image uploads, alt text editing, and featured images

    • 🏷️ Tags and categories with entry usage tracking

    • 🕒 Draft, published, archived, and scheduled entry workflows

    • 🧾 Version history for CMS entries

    • ⚡ KV-backed CMS entry caching and cache maintenance actions

    • 🔍 Full-text docs search

    • 🤖 AI-assisted SEO description generation

    • 🧱 Blog, docs, sitemap.xml, and JSON-LD schema rendering

    • 📄 Markdown views for public pages through the .md URL suffix, or Accept: text/markdown on the page URL

    • 🤖 llms.txt index for the API specification, MCP endpoint, and docs tree

  • ✨ Validations with Valibot and React Hook Form

    • 🛡️ Type-safe Form Validations

    • 🔒 Server-side Validations

    • 🔍 Client-side Validations

    • 🧹 Input Sanitization

    • ⚡ Real-time Validation

    • 🔄 Form State Management

  • 👨‍💻 Developer Experience

    • 🧪 Local Development Setup

    • 📘 TypeScript Support

    • 🔍 Oxlint Configuration

    • 🧪 Co-located Vitest Unit Tests

    • 🧪 Cloudflare Workers Vitest Integration Tests

    • 🧪 Vitest and Playwright E2E Tests

    • ⚡ Vinext and Vite Build Pipeline

    • 🔐 Type-safe Environment Variables

    • 🏗️ Cloudflare Types Generation

    • 🤖 AI-powered Development with AI Agents

    • 📚 Comprehensive Documentation

    • 📐 Project Structure Best Practices

  • ⚡ Edge Computing

    • 🌍 Global Deployment with Cloudflare Workers

    • 🚀 Zero Cold Starts

    • 💨 Edge Caching

    • ⚛️ React Server Components

    • 🖥️ Server-side Rendering

    • 💾 Edge Database with D1

    • 🗄️ Session Storage with KV

    • 🖼️ Cloudflare Images-powered Image Optimization

    • ⚡ API Rate Limiting

  • 🏢 Multi-tenancy Support

    • 👥 Organization Management

    • 👤 User Roles and Permissions

    • 🔍 Tenant Isolation

    • 🔄 Resource Sharing Controls

    • 📊 Per-tenant Analytics

    • 🔐 Tenant-specific Configurations

    • 💼 Team Collaboration Features

  • 🌐 Internationalization (i18n) with next-intl

    • 🍪 Cookie-based locale with Accept-Language negotiation (no URL changes)

    • 🔀 Locale switcher in the footer

    • 🗂️ JSON message catalogs (English and Spanish included)

    • 🧭 Auto-detected by Vinext (no createNextIntlPlugin wrapper needed)

    • 🔒 Type-safe message keys

-