集成 ESLint、Prettier、husky 与 lint-staged,用于代码检查、格式化及提交前校验
nextjs-boilerplate — Next.js 启动器模板
作者 felipe-jm
基于 Next.js 与 React 的启动器模板,集成 lint-staged、husky、ESLint、Prettier、Jest、commitlint、commitizen、Storybook、styled-components、next-pwa 与 plop,采用 MIT 许可。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
目前有 1 张原始预览,可打开完整图片查看设计细节。
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
集成 commitlint 与 commitizen,约束和引导提交信息格式
内置 Jest 用于单元测试,Storybook 用于组件文档与预览
使用 styled-components 作为样式方案,并通过 next-pwa 提供 PWA 支持
提供 plop 组件生成命令,一次生成组件、样式、故事与测试文件
模板详细介绍
这是一个面向 Next.js 项目的启动器模板,作者为 felipe-jm,仓库以 MIT 许可发布。它的重点不在页面设计,而在把常见的工程化工具预先接好:代码检查与格式化(ESLint、Prettier)、提交前检查(husky、lint-staged)、提交信息规范(commitlint、commitizen)、单元测试(Jest)、组件文档(Storybook)、样式方案(styled-components)、PWA 支持(next-pwa)以及组件脚手架(plop)。
使用方式有两种:在 GitHub 上点击 Use this template 生成新仓库,或通过 yarn create next-app -e 指定该仓库地址创建项目。模板还提供 yarn generate <组件名> 命令,生成包含 index.tsx、stories.tsx、styles.ts 和 test.tsx 的组件目录结构。
资料未说明具体依赖版本、Node 运行环境要求、构建与部署流程,也未给出除组件生成之外的脚本说明。模板本身不含业务页面或设计系统,样式与视觉风格需自行确定。第三方素材(如图片、字体、图标)的许可需单独核对,域名、托管等外部服务可能另行收费。
适合你的项目吗?
适用场景
- 新建 Next.js 项目时希望直接获得代码规范、提交规范与测试工具链
- 团队需要统一的提交信息格式与提交前检查流程
- 为 React 组件编写 Storybook 文档并配套单元测试
- 需要为 Next.js 应用加入 PWA 能力
适合人群
- 使用 Next.js 与 React 开发前端项目的团队或个人
- 重视代码规范、提交规范与组件文档的工程团队
- 希望以模板方式快速初始化项目、再自行补充业务代码的开发者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
可通过 GitHub 的 Use this template 生成新仓库,或运行 yarn create next-app -e https://github.com/felipe-jm/nextjs-boilerplate 创建项目
- 2
使用 yarn generate <组件名> 生成组件目录,包含 index.tsx、stories.tsx、styles.ts 与 test.tsx
- 3
仓库以 MIT 许可发布,分发代码副本或实质性部分时需保留版权声明与许可声明
- 4
资料未列出依赖版本与 Node 环境要求,安装与运行前请以仓库实际配置为准
- 5
演示图片、字体、图标等第三方素材需按各自许可核对,域名、托管等外部服务可能另行收费
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/felipe-jm/nextjs-boilerplate/blob/master/LICENSEhttps://github.com/felipe-jm/nextjs-boilerplate/blob/master/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 74 / 100
- 技术栈
- Next.js · React
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2025-03-28
- 截图检查日期
- 2026-10-03
目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。
目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: ef77368a95f92a5255eea16269483036178a8ab0138b24225270dd2ce498d3b4
2026-10-03T05:50:22.707Z
来源文件 / 仓库<h1 align="center">
<br>
Next.js Boilerplate
</h1>
<h4 align="center">
Simple Next.js boilerplate with lint-staged, husky, eslint + prettier, jest, commitlint + commitizen, storybook and styled-components.
</h4>
<p align="center">
<img alt="GitHub top language" src="https://img.shields.io/github/languages/top/felipe-jm/nextjs-boilerplate">
<img alt="GitHub language count" src="https://img.shields.io/github/languages/count/felipe-jm/nextjs-boilerplate">
<img alt="Repository size" src="https://img.shields.io/github/repo-size/felipe-jm/nextjs-boilerplate">
<a href="http://commitizen.github.io/cz-cli/">
<img alt="Commitizen friendly" src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg">
</a>
<a href="https://github.com/felipe-jm/nextjs-boilerplate/commits/master">
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/felipe-jm/nextjs-boilerplate">
</a>
<a href="https://github.com/felipe-jm/nextjs-boilerplate/issues">
<img alt="Repository issues" src="https://img.shields.io/github/issues/felipe-jm/nextjs-boilerplate">
</a>
<img alt="GitHub" src="https://img.shields.io/github/license/felipe-jm/nextjs-boilerplate">
</p>
<p align="center">
<a href="#rocket-technologies">Technologies</a> |
<a href="#memo-license">License</a>
</p>

## :rocket: Technologies
- [React.js](https://reactjs.org)
- [Next.js](https://nextjs.org)
- [lint-staged](https://github.com/okonet/lint-staged)
- [husky](https://typicode.github.io/husky)
- [eslint](https://eslint.org)
- [prettier](https://prettier.io)
- [jest](https://jestjs.io)
- [commitlint](https://commitlint.js.org)
- [commitizen](http://commitizen.github.io/cz-cli/)
- [storybook](https://storybook.js.org)
- [lint-staged](https://github.com/okonet/lint-staged)
- [styled-components](https://www.styled-components.com)
- [next-pwa](https://github.com/shadowwalker/next-pwa)
- [plop](https://plopjs.com)
## :information_source: How To Use
To use this template you can simply click in **[Use this template](https://github.com/felipe-jm/nextjs-boilerplate/generate)** or create your Next.js app based on this template by running:
```bash
yarn create next-app -e https://github.com/felipe-jm/nextjs-boilerplate
```
## :gear: Generating components
```bash
yarn generate Button
```
Result:
```
└── components
└── Button
├── index.tsx
├── stories.tsx
├── styles.ts
└── test.tsx
```
## 🤝 Contributing
1. Fork this repository;
2. Create your branch: `git checkout -b my-awesome-contribution`;
3. Commit your changes: `git commit -m 'Add some awesome contribution'`;
4. Push to the branch: `git push origin my-awesome-contribution`.
**After your pull request is merged**, you can safely delete your branch.
## :memo: License
This project is under the MIT license. See the [LICENSE](https://github.com/felipe-jm/nextjs-boilerplate/blob/master/LICENSE) for more information.
---
Made with much :heart: and :muscle: by Felipe Jung :blush: <a href="https://www.linkedin.com/in/felipe-jung/">My Contact</a>
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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