开源推荐
morning
GitHub热门项目: cloudflare-saas-stack
2026-09-23
1 阅读
约10分钟阅读
GitHub Trending
字号:
GitHub项目:cloudflare-saas-stack
仓库地址:https://github.com/supermemoryai/cloudflare-saas-stack
Stars:3747 | 作者:supermemoryai
项目描述:Quickly make and deploy full-stack apps with database, auth, styling, storage etc. figured out for you. Add all primitives you want.
==================================================
README 内容:
# 🚀 Full-Stack Cloudflare SaaS Kit
**_Build and deploy scalable products on Cloudflare with ease._**
An opinionated, batteries-included starter kit for quickly building and deploying SaaS products on Cloudflare. This is a [Next.js](https://nextjs.org/) project bootstrapped with [`c3`](https://developers.cloudflare.com/pages/get-started/c3).
This is the same stack used to build [Supermemory.ai](https://Supermemory.ai) which is open source at [git.new/memory](https://git.new/memory)
Supermemory now has 20k+ users and it runs on $5/month. safe to say, it's _very_ effective.
## The stack includes:
- [Next.js](https://nextjs.org/) for frontend
- [TailwindCSS](https://tailwindcss.com/) for styling
- [Drizzle ORM](https://orm.drizzle.team/) for database access
- [NextAuth](https://next-auth.js.org/) for authentication
- [Cloudflare D1](https://www.cloudflare.com/developer-platform/d1/) for serverless databases
- [Cloudflare Pages](https://pages.cloudflare.com/) for hosting
- [ShadcnUI](https://shadcn.com/) as the component library
## Getting Started
1. Make sure that you have [Wrangler](https://developers.cloudflare.com/workers/wrangler/install-and-update/#installupdate-wrangler) installed. And also that you have logged in with `wrangler login` (You'll need a Cloudflare account)
2. Clone the repository and install dependencies:
```bash
git clone https://github.com/Dhravya/cloudflare-saas-stack
cd cloudflare-saas-stack
npm i -g bun
bun install
bun run setup
```
3. Run the development server:
```bash
bun run dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Cloudflare Integration
Besides the `dev` script, `c3` has added extra scripts for Cloudflare Pages integration:
- `pages:build`: Build the application for Pages using [`@cloudflare/next-on-pages`](https://github.com/cloudflare/next-on-pages) CLI
- `preview`: Locally preview your Pages application using [Wrangler](https://developers.cloudflare.com/workers/wrangler/) CLI
- `deploy`: Deploy your Pages application using Wrangler CLI
- `cf-typegen`: Generate typescript types for Cloudflare env.
> __Note:__ While the `dev` script is optimal for local development, you should preview your Pages application periodically to ensure it works properly in the Pages environment.
## Bindings
Cloudflare [Bindings](https://developers.cloudflare.com/pages/functions/bindings/) allow you to interact with Cloudflare Platform resources. You can use bindings during development, local preview, and in the deployed application.
For detailed instructions on setting up bindings, refer to the Cloudflare documentation.
这篇文章对您有帮助吗?
订阅66必读
每日精选科技资讯,直达你的邮箱