认证与订阅计费统一由 Clerk 提供,Webhook 用于接收 Clerk 事件
nextjs-saas-starter — Next.js SaaS模板
作者 aarushkx
基于 Next.js 与 TypeScript 的 SaaS 启动器,集成 Clerk 认证与订阅计费、Neon 数据库与 Drizzle ORM、Resend 邮件、Clerk Webhook 以及 Google Gemini AI,并提供 ShadCN 界面与明暗主题。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
数据库采用 Neon 搭配 Drizzle ORM,并提供 npm run db:migrate 迁移脚本
邮件发送接入 Resend,AI 能力接入 Google Gemini
界面基于 ShadCN 组件,包含响应式侧边栏导航与可直接使用的落地页
使用 TypeScript 开发,内置基于 ThemeProvider 的明暗模式切换
附带预配置 ESLint,可通过 eslint.config.mjs 调整规则
模板详细介绍
这是一个面向 SaaS 应用的 Next.js 全栈启动器,仓库采用 MIT 许可。README 说明其目标是把认证、数据库、邮件、计费和 AI 等常见模块预先接好,让开发者从产品功能开始写起,而不是从零搭建样板代码。
功能层面,认证与订阅计费都由 Clerk 承担,数据库使用 Neon 配合 Drizzle ORM,邮件通过 Resend 发送,Webhook 用于接收 Clerk 事件,AI 能力接入 Google Gemini。前端提供 ShadCN 组件、响应式侧边栏导航、可直接使用的落地页,以及基于 ThemeProvider 的明暗模式切换。项目使用 TypeScript,并附带预配置的 ESLint(配置文件为 eslint.config.mjs,可按团队规范调整)。
使用前需要自行准备各外部服务的密钥与凭据:把 .env.sample 重命名为 .env.local 并填入自己的 API Key,然后执行数据库迁移(npm run db:migrate),再启动开发服务器。仓库提供 Vercel 上的在线演示,以及桌面端和手机端首页截图。
限制方面,资料未说明样式风格的具体取向,也未给出依赖版本、性能或生产可用性的结论。免费范围仅指该版本代码本身,域名、托管、数据库、支付、邮件和 AI 等外部服务可能另行收费;演示图片、字体、图标等第三方素材需按各自许可单独核对。
适合你的项目吗?
适用场景
- 需要快速搭建带登录注册与订阅计费的 SaaS 项目骨架
- 希望把 Neon 数据库与 Drizzle ORM 的迁移流程预先接好的项目
- 要在应用内接入 Google Gemini 提供 AI 功能并配合 Resend 发送邮件
- 需要一套含落地页、侧边栏导航和明暗主题的 Next.js 前端起点
适合人群
- 熟悉 Next.js 与 TypeScript、准备开发 SaaS 产品的开发者
- 愿意使用 Clerk、Neon、Resend、Google Gemini 等外部服务的团队
- 希望以 MIT 许可代码为基础自行修改和分发的项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
克隆仓库后执行 npm install 安装依赖
- 2
将 .env.sample 重命名为 .env.local,并填入自己的 API Key 与凭据
- 3
执行 npm run db:migrate 完成数据库迁移
- 4
运行 npm run dev 启动开发服务器,访问 http://localhost:3000 查看效果
- 5
生产构建使用 npm run build 与 npm run start
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 使用前必须自行申请并配置外部服务的 API Key 与凭据(如 Clerk、Neon、Resend、Google Gemini),这些服务需单独注册账号,可能产生费用。
- 认证功能依赖第三方服务 Clerk,需注册 Clerk 账号并配置密钥,非本地自包含实现。
- 数据库依赖外部服务 Neon,需自行创建 Neon 数据库并提供连接凭据。
- 邮件发送依赖第三方服务 Resend,需注册账号并配置 API Key。
- AI 功能依赖 Google Gemini 外部服务,需申请 API Key,可能产生调用费用。
- 订阅计费由 Clerk 提供,需配置 Clerk 计费相关凭据,实际收款涉及第三方支付服务。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Rename the `.env.sample` file to `.env.local` and replace with your own API keys and credentials.
README 原文
- 🔒 Secure authentication with Clerk
README 原文
- 📊 Database management with Neon and Drizzle ORM
README 原文
- 📧 Email integration using Resend
README 原文
- 🤖 AI capabilities powered by Google Gemini
README 原文
https://github.com/aarushkx/nextjs-saas-starter/blob/main/LICENSEhttps://github.com/aarushkx/nextjs-saas-starter/blob/main/README.md- 💳 Billing and subscriptions via Clerk
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-01。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 82 / 100
- 技术栈
- Next.js · React
- 网站类型
- SaaS · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2025-07-27
- 截图检查日期
- 2026-10-01
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 7bd27c077e8dadff36e62027ac0af8c9c10239d799e2d0ea5666653a397fc215
2026-10-01T01:24:11.416Z
来源文件 / 仓库# 🚀 Next.js SaaS Starter
A production-grade, full-stack SaaS starter kit built with **Next.js**, **TypeScript**, and a thoughtfully curated modern tech stack. Launch your product faster with secure authentication, scalable database integration, AI integration, subscription billing, and a sleek UI — all out of the box.

## 🌐 Live Demo
Want to see it in action?
👉 [Visit the live demo](https://nextjs-mysaas.vercel.app/)
## 📋 Overview
This starter kit provides a solid foundation for building SaaS applications. It includes everything from user authentication to billing, all set up with best practices so you can focus on your product instead of boilerplate.
## ✨ Features
- 🔒 Secure authentication with Clerk
- 📊 Database management with Neon and Drizzle ORM
- 📧 Email integration using Resend
- ⚡ Real-time webhooks setup
- 📱 Responsive sidebar navigation
- 🤖 AI capabilities powered by Google Gemini
- 💳 Billing and subscriptions via Clerk
- 🎨 Beautiful UI components from ShadCN
- 🖥️ Ready-to-use landing page with sleek and modern UI
- 📝 TypeScript for type-safe development
- 🌙 Light/dark mode support (via ThemeProvider)
## 🛠️ Tech Stack
- Next.js
- TypeScript
- Neon
- Drizzle ORM
- Clerk (Auth & Billing)
- Resend (Email)
- Webhooks (Clerk)
- Google Gemini AI
- ShadCN UI
## 🧠 Configuration
This starter kit includes a preconfigured ESLint setup.
If you’d like to adjust the linting rules to match your team’s preferences or coding style, you can easily do so by modifying the configuration in `eslint.config.mjs`.
## ⚙️ Getting Started
Follow the steps below to get your development environment running:
1. **Clone the repository**
```bash
git clone https://github.com/aarushkx/nextjs-saas-starter.git
cd nextjs-saas-starter
```
2. **Install dependencies**
Install dependencies
```bash
npm install
```
3. Configure environment variables
Rename the `.env.sample` file to `.env.local` and replace with your own API keys and credentials.
4. Run migrations
```bash
npm run db:migrate
```
5. Start the development server
```bash
npm run dev
```
Visit http://localhost:3000 to see it in action.
6. Build for production
```bash
npm run build
npm run start
```
## 🤝 Contributing
Contributions are welcome! Please follow these steps:
1. Fork the repository
2. Create a feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m "Add some AmazingFeature"`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
## 📄 License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## 🙋 Questions?
If you have any questions or need help, just open an issue on GitHub or reach out directly.
Happy building! 🎉
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

ai-website-cloner-template
Clone any website with one command using AI coding agents
Next.js · 启动器

Next.js SaaS Starter
Next.js SaaS Starter 是 Next.js 官方维护的 SaaS 起点模板,定位介于学习资源和可直接部署的脚手架之间。
Next.js · SaaS

Next.js Commerce
Next.js Commerce 是 Vercel 团队维护的电商启动模板,基于 Next.js App Router 构建,采用服务端渲染、React Server Components、Server Actions …
Next.js · 电商

Next-js-Boilerplate
Next-js-Boilerplate 是一个面向 Next.js 16、Tailwind CSS 4 和 TypeScript 的启动器,核心定位是开发者体验优先。
Next.js · 启动器

tailwind-nextjs-starter-blog
tailwind-nextjs-starter-blog 是一个面向个人技术博客的 Next.js 与 Tailwind CSS 启动模板,其 v2 版本基于 App Router 与 React Server Comp…
Next.js · 博客

next-forge
Production-grade Turborepo template for Next.js apps.
Next.js · 启动器
