flarestarter  by FlareStarter

Full-stack, edge-native SaaS starter template

Created 1 month ago
269 stars

Top 95.4% on SourcePulse

GitHubView on GitHub
Project Summary

A full-stack, edge-native SaaS starter template built with TanStack Start and Cloudflare Workers. It provides pre-integrated modules for authentication, billing, email, i18n, SEO, and an operational backend, designed for immediate use. The project targets developers aiming to build scalable SaaS applications quickly, offering global millisecond response times and significantly reduced operational costs by leveraging Cloudflare's serverless infrastructure.

How It Works

FlareStarter is architected around Cloudflare Workers, enabling edge-native computation for global, millisecond-level responsiveness and eliminating cold start issues. It utilizes Cloudflare's cost-effective services like D1 (SQLite), KV, and R2 for data storage, caching, and object storage, facilitating a near-zero cost entry point. The project emphasizes end-to-end type safety, integrating Drizzle ORM with TanStack Start (React 19) for a robust TypeScript development experience across the stack.

Quick Start & Requirements

  • Primary install/run command: pnpm install, configure wrangler.jsonc and .dev.vars, pnpm db:migrate:local, then pnpm dev.
  • Prerequisites: Node.js >= 22 (nvm/volta recommended), pnpm >= 9, a Cloudflare account, and the wrangler CLI (included as a dev dependency).
  • Setup: Local development is designed for ease, with optional integrations (Stripe, Resend) degrading gracefully if keys are omitted.
  • Links: Online Demo, Documentation (English/简体中文).

Highlighted Details

  • Integrated SaaS Modules: Comprehensive features include email/password and OAuth authentication, Stripe subscriptions and one-time payments, R2 object storage with avatar upload examples, Resend email delivery, a waitlist system, an MDX-driven changelog, a sponsorship page, a feedback system, i18n routing, and SEO optimizations.
  • Edge-Native Stack: Built with TanStack Start (React 19, Server Functions), Cloudflare Workers, D1/Drizzle ORM, KV, R2, better-auth, Stripe, Resend, Tailwind CSS v4, and Vitest for testing.
  • Operational Backend: Includes an admin panel powered by better-auth with user management, role control, impersonation, and a real-data statistics dashboard.
  • AI-Friendly Deployment: Generates indexed content (llms.txt, docs-md/*) and provides agent-readable code documentation (AGENTS.md) for AI crawlers and development agents.

Maintenance & Community

  • Community: Active engagement via Telegram and WeChat groups. Author is active on X (Twitter) @0xdinglv.
  • Contribution: Guidelines provided in CONTRIBUTING.md.
  • Sponsorship: Encouraged via GitHub or WeChat to support ongoing maintenance.

Licensing & Compatibility

  • License: Apache License 2.0.
  • Compatibility: Permissive license suitable for commercial use and integration into closed-source projects.

Limitations & Caveats

Optional third-party integrations (e.g., Stripe, Resend, OAuth providers, Turnstile, Sentry) are designed for graceful degradation if API keys are not configured, automatically disabling the feature. However, critical environment variables are validated at startup with a fail-fast mechanism to prevent runtime errors. Specific Cloudflare resources, such as R2 buckets, require manual creation before deployment.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
1
Star History
269 stars in the last 30 days

Explore Similar Projects

Starred by John Resig John Resig(Author of jQuery; Chief Software Architect at Khan Academy), Georgios Konstantopoulos Georgios Konstantopoulos(CTO, General Partner at Paradigm), and
2 more.

mcp-server-cloudflare by cloudflare

0.2%
4k
MCP servers for LLM integration with Cloudflare services
Created 1 year ago
Updated 6 days ago
Feedback? Help us improve.