MIT 许可的开源 SaaS 启动模板,允许免费使用、修改、商用和分发
play-nextjs — Next.js SaaS模板
作者 NextJSTemplates
Play Next.js 是面向 SaaS 初创项目的开源 Next.js 启动模板,集成 PostgreSQL、NextAuth、Stripe 与 MDX,并提供登录、注册、博客、关于等页面。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
集成 PostgreSQL 与 Prisma、NextAuth 身份认证、Stripe 订阅支付、MDX 博客
使用 Tailwind CSS 样式,并引用 TailGrids 组件
包含登录、注册、博客、关于等 SaaS 网站常用页面与 UI 组件
提供 Vercel 与 Netlify 部署入口,README 附本地运行步骤
模板详细介绍
Play Next.js 是 NextJSTemplates 维护的开源 SaaS 启动模板与样板代码,仓库采用 MIT 许可,可免费用于个人和商业项目。模板基于 Next.js,使用 Tailwind CSS 进行样式设计,并引用 TailGrids 组件,提供登录、注册、博客、关于等 SaaS 网站常见页面与 UI 组件。
在功能集成方面,模板包含 PostgreSQL 数据库配合 Prisma、NextAuth 身份认证、Stripe 订阅支付,以及基于 MDX 的博客方案。README 说明这些集成用于简化开发流程,但外部服务(数据库、支付等)可能需要自行配置并可能产生费用。
使用限制方面,免费范围仅限该版本代码本身;演示图片、字体、图标等第三方素材需按各自许可核对。安装依赖时因 React 19 与部分包存在 peer dependencies 冲突,需要添加 --legacy-peer-deps 参数。模板提供 Vercel 和 Netlify 的部署入口,并指向 NextJSTemplates 的文档站点。
适合你的项目吗?
适用场景
- 为 SaaS 初创项目搭建包含认证与订阅支付的前端基础
- 快速创建带博客(MDX)的企业官网或产品站点
- 在 Next.js 项目中参考 Tailwind CSS 与 TailGrids 的页面组件实现
- 作为学习 NextAuth、Prisma 与 Stripe 集成的示例代码库
适合人群
- 需要现成 SaaS 页面与认证、支付集成的 Next.js 开发者
- 希望基于 MIT 许可代码快速启动商业或个人项目的团队
- 计划部署到 Vercel 或 Netlify 的前端项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
安装依赖需运行 npm install --legacy-peer-deps,因 React 19 与部分包存在 peer dependencies 冲突
- 2
使用 npm run dev 在本地启动,默认地址为 localhost:3000
- 3
数据库、认证与支付等外部服务需自行配置,可能产生额外费用
- 4
演示图片、字体、图标等第三方素材需按各自许可核对
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 安装依赖时必须使用 --legacy-peer-deps 参数,因为 React 19 与部分包存在 peer dependencies 冲突,直接 npm install 可能失败。
- 订阅支付功能依赖 Stripe 外部服务,需自行注册 Stripe 账户并配置 API 密钥,可能产生交易费用。
- 数据库功能依赖 PostgreSQL 外部服务,需自行搭建或使用托管数据库,可能产生费用。
- 身份认证依赖 NextAuth,需自行配置认证服务商及相应凭据(如 OAuth 应用的客户端 ID 与密钥)。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
npm install --legacy-peer-deps
README 原文
Stripe for Subscription Payments
README 原文
PostgreSQL for Database
README 原文
https://github.com/NextJSTemplates/play-nextjs/blob/main/LICENSEhttps://github.com/NextJSTemplates/play-nextjs/blob/main/README.mdNextAuth for Authentication
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-09-30。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 96 / 100
- 技术栈
- Next.js · React
- 网站类型
- SaaS · 企业官网 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-05-19
- 截图检查日期
- 2026-09-30
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: ef492c58c98fca4f1bcf8ce024a7c1ef5fa9da1abe0ad0e5f6b273bc3d6eaeec
2026-09-30T08:10:22.270Z
来源文件 / 仓库Play Next.js is a free and **Open-source SaaS starter kit and boilerplate, designed and built for SaaS startups**, apps, businesses, and more. With its premium design and essential UI components and pages, it provides everything you need to kickstart a feature-rich SaaS website.
[](https://play.nextjstemplates.com)
## Free SaaS Boilerplate and Starter Kit for Next.js 🚀
Play Next.js SaaS Boilerplate and Starter Kit is a free, open-source solution ideal for startups, SaaS companies, and more. It offers essential UI components, authentication and database integration, and Stripe integration. Its superior design and functionality make it a go-to choice for launching a feature-rich SaaS website efficiently.
### [🚀 View Live Demo](https://play.nextjstemplates.com/)
### [🔌 Documentation](https://nextjstemplates.com/docs)
### All Essential Integrations - DB, Auth, Payment, MDX, and more ⚡
Play Next.js SaaS Starter kit includes all the key integrations required to build a fully functional SaaS platform.
- **PostgreSQL for Database**: Comes with PostgreSQL integration with Prisma which is a powerful and open-source relational database system ensures data integrity and reliability.
- **NextAuth for Authentication**: Play Next.js utilizes NextAuth, a versatile solution that provides secure login and user management.
- **MDX for Blogs**: MDX uniquely combines Markdown and JSX, Play Next.js comes with complete blogging solution to create and maintain blog using MDX.
- **Stripe for Subscription Payments**: Stripe, a globally trusted payment processing platform, offers robust security features and smooth checkout experiences.
These integrations work together to simplify development and enhance the user experience.
### Essential SaaS Pages & Components and Styled Using Tailwind CSS 🎨
This Next.js SaaS Boilerplate and Starter Kit is **styled using Tailwind CSS**, a highly flexible and customizable utility-first CSS framework. Leveraging the power of Tailwind, each component and page of this kit, including **login, signup, blog, about, and others, has been handcrafted to offer top-notch aesthetics** while maintaining peak usability.
### Crafted Using [🎨 TailGrids Components](https://tailgrids.com)
Play Next.js SaaS boilerplate, you can enjoy a professional-looking website that offers seamless operation, all while significantly reducing your web development time and effort.
---
### 🚀 Deploy Now
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FNextJSTemplates%2Fplay-nextjs)
[](https://app.netlify.com/start/deploy?repository=https://github.com/NextJSTemplates/play-nextjs)
### Setup Instructions
Follow these steps to set up and run this template on your local machine:
1. Begin by downloading and extracting the template from **Next.js Templates**.
2. Once you've done that, navigate into the template directory using the **cd** command.
3. Install the necessary dependencies by running the following commands:
```bash
npm install --legacy-peer-deps
```
**Note:** As of right now React 19 causes peer dependencies issues with some packages, so the `legacy-peer-deps` flag is required.
4. Now you're ready to start the project on your local server. Use the following command to get it up and running:
```bash
npm run dev
```
This will launch the template on [localhost:3000](http://localhost:3000).
Our comprehensive documentation includes all the guides you'll need for integrating various features.
### Deployment on PaaS
If your project is hosted on a GitHub repository, you can deploy it using free and user-friendly platforms like [Vercel](https://vercel.com/) or [Netlify](https://netlify.com/). Both provide generous free tiers for hosting Next.js projects.
### License Information
Play is Free is completely free and open-source. Feel free to use it for both personal and commercial projects.
### Show Your Support
If you appreciate this project, please consider starring this repository. Your support encourages our team to continue creating more content like this and helps us to reach more users like you!
## Explore More Templates
For a wider range of options, feel free to browse our collection of [Next.js Templates, Boilerplates and Starter Kits](https://nextjstemplates.com/templates).
### Update Log
**03 December 2025** - v2.2.2
- Upgraded to Next.js 16
- Update prisma latest version
- Updated tailwindcss latest version
**06 August 2025** - v2.2.1
- fix: [#21](https://github.com/NextJSTemplates/play-nextjs/issues/21) - Moved context providers to `/src/app/providers.tsx`
- Removed initial loader
**10 April 2025**
- Fix peer deps issue
- Update Next.js for security patch
**29 Jan 2025**
- Upgraded to Next.js 15
- Using `Link` instead of `a` tag
- Fixed all minor bugs
**21 March 2024**
- Upgraded to Next.js 14
- Updated stripe integration
- Fixed auth issues
- Updated all the packages
- Update ts config & fix all the issues
- Update signin & signup page Design
- Integrated Magic link signin
- & Forgot password
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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 · 启动器
