基于 Next.js 14 App Router、React 18、TypeScript 和 Tailwind CSS 3
nextjs-boilerplate — Next.js 启动器模板
作者 savantly-net
Savantly Next.js 样板项目,基于 Next.js 14 App Router、React 18、TypeScript 和 Tailwind CSS 3,内置 slug 路由、组件目录、Jest、ESLint、Prettier、Husky 等开发工具链,并推荐使用 Flowbite React 组件。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
内置 slug 风格路由,访问 /some-page 会加载 src/app/[slug]/page.tsx 并将 slug 作为 prop 传入
UI 组件位于 src/components,推荐使用 Flowbite React 组件
集成 Jest、ESLint(含导入自动排序)、Prettier、Husky 与 Lint Staged
使用 Conventional Commits 规范,并配置 Release Please 与 GitHub Actions
提供 Open Graph 辅助函数和自动生成 sitemap.xml
模板详细介绍
该模板是一个 Next.js 项目起始样板,README 说明其鼓励使用 pnpm 安装依赖,以便 Husky 钩子正常工作。开发时运行 pnpm dev 并在浏览器打开 http://localhost:3000,可编辑 src/pages/index.tsx 开始修改页面,文件保存后页面会自动更新。模板配置了简单的 slug 风格路由,例如访问 /some-page 会加载 src/app/[slug]/page.tsx,并将 slug 值作为 prop 传入。UI 组件位于 src/components 目录,README 建议尽量使用 Flowbite React 组件,并鼓励将可复用组件贡献到 nexus-ui-components 库。提交信息必须遵循 Conventional Commits 规范。
README 列出的功能包括:Next.js 14 与 App Router、React 18、TypeScript、Tailwind CSS 3(通过 CSS 变量扩展 primary 颜色)、预构建组件、Jest 单元测试、绝对导入与路径别名(@/ 前缀)、ESLint(含导入自动排序)、Prettier、Husky 与 Lint Staged、Conventional Commit Lint、Release Please、GitHub Actions 代码检查、分支与 Issue 自动关联、代码片段集合、Open Graph 辅助函数、自动生成 sitemap.xml,以及可安装常用库和配置的扩展包。模板最初从 ts-nextjs-tailwind-starter 引导而来。
README 未提供关于部署步骤、环境变量、数据库或后端集成的具体说明;预览截图仅证明存在实际页面截图,不证明页面功能。
适合你的项目吗?
适用场景
- 需要快速启动一个使用 Next.js 14 App Router 和 TypeScript 的新项目
- 希望项目自带 ESLint、Prettier、Husky 和 Conventional Commits 等代码规范工具
- 需要基于 slug 动态加载不同页面或组件的简单路由结构
- 计划使用 Flowbite React 组件库构建界面
- 希望将可复用 UI 组件贡献到 nexus-ui-components 库
适合人群
- 熟悉 Next.js、TypeScript 和 Tailwind CSS 的前端开发者
- 需要标准化提交信息和代码检查流程的团队
- 希望以 pnpm 作为包管理器的项目
- 需要从现成样板开始搭建项目而非从零配置的开发者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
建议使用 pnpm 安装依赖,以便 Husky 钩子正常工作:pnpm install
- 2
运行 pnpm dev 启动开发服务器,默认地址为 http://localhost:3000
- 3
可编辑 src/pages/index.tsx 开始修改页面,保存后自动更新
- 4
提交信息必须遵循 Conventional Commits 规范
- 5
README 未提供部署步骤、环境变量或后端集成的具体说明
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 Apache-2.0 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发;分发时需随附 Apache-2.0 许可证。
- 修改过的文件需显著标明改动,并保留相关版权、专利、商标及归属声明。
- 若原项目附有 NOTICE 文件,分发衍生作品时需保留其中适用的归属声明。
- 许可包含适用的贡献者专利授权;发起许可所述专利诉讼会终止该专利授权,且不授予商标使用权。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 Apache-2.0 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- 建议使用 pnpm 安装依赖,以便 Husky 钩子正常工作;使用其他包管理器可能导致钩子无法正常运行。
- 提交更改时必须遵循 Conventional Commits 规范,这是强制要求。
- 建议尽量使用 Flowbite React 组件进行开发。
- 鼓励将可复用的 UI 组件贡献到 nexus-ui-components 库。
查看原文依据
no-charge, royalty-free, irrevocable copyright license
许可证原文
It is encouraged to use **pnpm** so the husky hooks can work properly.
README 原文
This starter is using [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/), it is mandatory to use it to commit changes.
README 原文
Use the Flowbite React components when possible.
README 原文
https://github.com/savantly-net/nextjs-boilerplate/blob/main/LICENSEhttps://github.com/savantly-net/nextjs-boilerplate/blob/main/README.mdIf you feel compelled, please contribute your reusable components to the nexus-ui-components library.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-14。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 68 / 100
- 技术栈
- Next.js · React
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2024-04-12
- 截图检查日期
- 2026-10-14
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: codex-user-requested-batch-review-20261015 · 2026-10-15
查看当时使用的来源资料
SHA-256: 6f4192deb21db22de17984b58c1c248d2d3e4cb182d158639496c177388f72fe
2026-10-14T00:07:55.207Z
来源文件 / 仓库# Savantly Next JS Boilerplate ## Quick start ### 1. Install dependencies It is encouraged to use **pnpm** so the husky hooks can work properly. ```bash pnpm install ``` ### 2. Run the development server You can start the server using this command: ```bash pnpm dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. You can start editing the page by modifying `src/pages/index.tsx`. The page will automatically update as you edit the file. Use the Flowbite React components when possible. [https://www.flowbite-react.com/](https://www.flowbite-react.com/) A simple `slug` style routing is configured so you can easily load different components/pages based on the slug value in the url. For example - `http://localhost:3000/some-page` will load the `src/app/[slug]/page.tsx` file, with the slug value available as a prop. ### 3. Commit Message Convention This starter is using [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/), it is mandatory to use it to commit changes. ### 4. Contribute to UI Components The UI components are located in the `src/components` directory. If you feel compelled, please contribute your reusable components to the nexus-ui-components library. https://nexus-ui-components.vercel.app/ ### Originally bootrapped from ... ts-nextjs-tailwind-starter #### Features This repository is 🔋 battery packed with: - ⚡️ Next.js 14 with App Router - ⚛️ React 18 - ✨ TypeScript - 💨 Tailwind CSS 3 — Configured with CSS Variables to extend the **primary** color - 💎 Pre-built Components — Components that will **automatically adapt** with your brand color, [check here for the demo](https://tsnext-tw.thcl.dev/components) - 🃏 Jest — Configured for unit testing - 📈 Absolute Import and Path Alias — Import components using `@/` prefix - 📏 ESLint — Find and fix problems in your code, also will **auto sort** your imports - 💖 Prettier — Format your code consistently - 🐶 Husky & Lint Staged — Run scripts on your staged files before they are committed - 🤖 Conventional Commit Lint — Make sure you & your teammates follow conventional commit - ⏰ Release Please — Generate your changelog by activating the `release-please` workflow - 👷 Github Actions — Lint your code on PR - 🚘 Automatic Branch and Issue Autolink — Branch will be automatically created on issue **assign**, and auto linked on PR - 🔥 Snippets — A collection of useful snippets - 👀 Open Graph Helper Function — Awesome open graph generated using [og](https://github.com/theodorusclarence/og), fork it and deploy! - 🗺 Site Map — Automatically generate sitemap.xml - 📦 Expansion Pack — Easily install common libraries, additional components, and configs. See the 👉 [feature details and changelog](https://github.com/theodorusclarence/ts-nextjs-tailwind-starter/blob/main/CHANGELOG.md) 👈 for more.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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