Next.jsReact启动器

next-forge — Next.js 启动器模板

作者 vercel

next-forge 是 Vercel 维护的 Turborepo 模板,用于搭建 Next.js SaaS 应用,内置多个可独立部署的应用与共享包。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

2 个预览视图
桌面端首页1 / 2
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 2

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-09-30查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

Turborepo monorepo,apps 与 packages 分离,各应用可独立部署

02

内置 web、app、api、docs、email、storybook 六个应用

03

共享包覆盖设计系统、数据库、认证等基础能力

04

集成 Clerk 认证、Stripe 支付、Resend 邮件等 SaaS 常用服务

05

包含分析、可观测性、安全、CMS、SEO、AI、Webhook 等模块

06

MIT 许可,可免费使用、修改、商用与分发

模板详细介绍

next-forge 是一个基于 Turborepo 的 Next.js 应用模板,定位为构建 SaaS 产品的起点。仓库以 monorepo 组织:apps/ 下包含 web(营销站,端口 3001)、app(主应用,端口 3000)、api、docs、email、storybook 六个可独立部署的应用;packages/ 下提供 design-system、database、auth 等共享包,供各应用复用。

模板内置的功能覆盖认证(Clerk)、数据库(类型安全 ORM 与迁移)、支付(Stripe 订阅)、邮件(Resend 与 React Email 模板)、分析与可观测性(Google Analytics、PostHog、Sentry、BetterStack)、安全(Arcjet、限流、安全响应头)、CMS、SEO、AI 工具、Webhook、实时协作、功能开关、定时任务、存储、国际化与站内通知。营销站使用 Tailwind CSS 与 TWBlocks,文档站由 Mintlify 驱动。

使用前提是 Node.js 20+ 与 Bun(或 npm/yarn/pnpm),本地测试 Stripe Webhook 需要 Stripe CLI。通过 npx next-forge@latest init 创建项目,随后配置环境变量并注册 Clerk、Stripe、Resend 等服务账号。代码采用 MIT 许可,可免费使用、修改、商用与分发,但需保留版权与许可声明;演示图片、字体、图标等第三方素材以及域名、托管、数据库、支付、AI 等外部服务需另行核对许可与费用。

Next.jsReact启动器

适合你的项目吗?

适用场景

  • 从零搭建需要认证、订阅支付与邮件能力的 SaaS 产品
  • 需要营销站、主应用、API、文档站分开发布的多应用项目
  • 希望用 Turborepo 统一管理多个 Next.js 应用与共享包
  • 需要预先接入分析、错误追踪、限流与安全响应头的项目

适合人群

  • 熟悉 Next.js 与 React、准备搭建 SaaS 起点的开发者
  • 接受 monorepo 结构并愿意配置外部服务账号的团队
  • 需要多应用独立部署与共享设计系统的项目
  • 希望以 MIT 许可自由修改和分发代码的使用者

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    需要 Node.js 20+,并使用 Bun 或 npm/yarn/pnpm 作为包管理器

  2. 2

    通过 npx next-forge@latest init 创建项目

  3. 3

    需配置环境变量并注册 Clerk、Stripe、Resend 等服务账号

  4. 4

    本地测试 Stripe Webhook 需要安装 Stripe CLI

  5. 5

    详细步骤见官方文档 next-forge.com/docs

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 使用模板需自行注册并配置 Clerk、Stripe、Resend 等第三方服务账号,这些服务可能产生费用或受其各自条款约束。
  • 本地测试 Stripe Webhook 需额外安装 Stripe CLI 工具。
  • 运行环境要求 Node.js 20 及以上版本,并需使用 Bun 或 npm/yarn/pnpm 等包管理器。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Set up required service accounts (Clerk, Stripe, Resend, etc.)

README 原文

[Stripe CLI](https://docs.stripe.com/stripe-cli) for local webhook testing

README 原文

- Node.js 20+ - [Bun](https://bun.sh) (or npm/yarn/pnpm)

README 原文
https://github.com/vercel/next-forge/blob/main/license.mdhttps://github.com/vercel/next-forge/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-09-30。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 100 / 100
技术栈
Next.js · React
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-05-28
截图检查日期
2026-09-30

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: fba8418b2e950bce1be84f88399b0e286bd407cba8c62423daff1dca6aab3059

2026-09-30T08:02:55.463Z

来源文件 / 仓库
# ▲ / next-forge

**Production-grade Turborepo template for Next.js apps.**

<div>
  <img src="https://img.shields.io/npm/dy/next-forge" alt="" />
  <img src="https://img.shields.io/npm/v/next-forge" alt="" />
  <img src="https://img.shields.io/github/license/vercel/next-forge" alt="" />
</div>

## Overview

[next-forge](https://github.com/vercel/next-forge) is a production-grade [Turborepo](https://turborepo.com) template for [Next.js](https://nextjs.org/) apps. It's designed to be a comprehensive starting point for building SaaS applications, providing a solid, opinionated foundation with minimal configuration required.

Built on a decade of experience building web applications, next-forge balances speed and quality to help you ship thoroughly-built products faster.

### Philosophy

next-forge is built around five core principles:

- **Fast** — Quick to build, run, deploy, and iterate on
- **Cheap** — Free to start with services that scale with you
- **Opinionated** — Integrated tooling designed to work together
- **Modern** — Latest stable features with healthy community support
- **Safe** — End-to-end type safety and robust security posture

## Demo

Experience next-forge in action:

- [Web](https://demo.next-forge.com) — Marketing website
- [App](https://app.demo.next-forge.com) — Main application
- [Storybook](https://storybook.demo.next-forge.com) — Component library
- [API](https://api.demo.next-forge.com/health) — API health check

## Features

next-forge comes with batteries included:

### Apps

- **Web** — Marketing site built with Tailwind CSS and TWBlocks
- **App** — Main application with authentication and database integration
- **API** — RESTful API with health checks and monitoring
- **Docs** — Documentation site powered by Mintlify
- **Email** — Email templates with React Email
- **Storybook** — Component development environment

### Packages

- **Authentication** — Powered by [Clerk](https://clerk.com)
- **Database** — Type-safe ORM with migrations
- **Design System** — Comprehensive component library with dark mode
- **Payments** — Subscription management via [Stripe](https://stripe.com)
- **Email** — Transactional emails via [Resend](https://resend.com)
- **Analytics** — Web ([Google Analytics](https://developers.google.com/analytics)) and product ([Posthog](https://posthog.com))
- **Observability** — Error tracking ([Sentry](https://sentry.io)), logging, and uptime monitoring ([BetterStack](https://betterstack.com))
- **Security** — Application security ([Arcjet](https://arcjet.com)), rate limiting, and secure headers
- **CMS** — Type-safe content management for blogs and documentation
- **SEO** — Metadata management, sitemaps, and JSON-LD
- **AI** — AI integration utilities
- **Webhooks** — Inbound and outbound webhook handling
- **Collaboration** — Real-time features with avatars and live cursors
- **Feature Flags** — Feature flag management
- **Cron** — Scheduled job management
- **Storage** — File upload and management
- **Internationalization** — Multi-language support
- **Notifications** — In-app notification system

## Getting Started

### Prerequisites

- Node.js 20+
- [Bun](https://bun.sh) (or npm/yarn/pnpm)
- [Stripe CLI](https://docs.stripe.com/stripe-cli) for local webhook testing

### Installation

Create a new next-forge project:

```sh
npx next-forge@latest init
```

### Setup

1. Configure your environment variables
2. Set up required service accounts (Clerk, Stripe, Resend, etc.)
3. Run the development server

For detailed setup instructions, read the [documentation](https://www.next-forge.com/docs).

## Structure

next-forge uses a monorepo structure managed by Turborepo:

```
next-forge/
├── apps/           # Deployable applications
│   ├── web/        # Marketing website (port 3001)
│   ├── app/        # Main application (port 3000)
│   ├── api/        # API server
│   ├── docs/       # Documentation
│   ├── email/      # Email templates
│   └── storybook/  # Component library
└── packages/       # Shared packages
    ├── design-system/
    ├── database/
    ├── auth/
    └── ...
```

Each app is self-contained and independently deployable. Packages are shared across apps for consistency and maintainability.

## Documentation

Full documentation is available at [next-forge.com/docs](https://www.next-forge.com/docs), including:

- Detailed setup guides
- Package documentation
- Migration guides for swapping providers
- Deployment instructions
- Examples and recipes

## Contributing

We welcome contributions! See the [contributing guide](https://github.com/vercel/next-forge/blob/main/.github/CONTRIBUTING.md) for details.

## Contributors

<a href="https://github.com/vercel/next-forge/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=vercel/next-forge" />
</a>

Made with [contrib.rocks](https://contrib.rocks).

## License

MIT
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。