使用 Next.js App Router 作为应用结构基础
nextjs-template — Next.js 启动器模板
作者 rajput-hemant
基于 Next.js App Router 的最小启动模板,集成 TypeScript、Tailwind CSS,并预配置 ESLint、Prettier、Husky、lint-staged 与 commitlint。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
TypeScript 与 Tailwind CSS 开箱可用
预配置 ESLint、Prettier、Husky、lint-staged、commitlint
默认以 bun 为包管理器,可切换 pnpm、npm 或 yarn
提供 src-dir 与 trpc 两个 degit 分支变体
附带 dev、build、lint、type-check、fmt 等 npm 脚本
模板详细介绍
这是一个面向 Next.js 项目的最小启动模板,使用 App Router 组织页面,默认以 TypeScript 编写,样式层采用 Tailwind CSS。仓库同时预置了代码质量与提交规范工具链:ESLint 负责代码检查,Prettier 负责格式化,Husky 管理 Git 钩子,lint-staged 对暂存文件运行检查,commitlint 约束提交信息格式。
模板默认使用 bun 作为包管理器,并附带 dev、build、start、preview、lint、type-check、fmt、fmt:check、prepare 等脚本。README 说明可通过 create-next-app 的 -e 参数或 degit 拉取模板,其中 degit 还提供 src-dir 与 trpc 两个分支变体。若改用 pnpm、npm 或 yarn,需要先删除 bun.lockb 再重新生成对应锁文件。
模板本身只提供基础骨架与工具配置,不包含数据库、认证、支付等业务集成;README 提到可借助 Kirimase CLI 按需接入 ORM、认证、UI 组件、支付与邮件等包。安装后需要自行更新 package.json、README.md 与 LICENSE 中的项目信息。仓库采用 MIT 许可,演示站点中的图片、字体、图标等第三方素材需单独核对授权。
适合你的项目吗?
适用场景
- 快速搭建一个带代码规范工具链的 Next.js 新项目
- 作为需要 App Router 与 Tailwind CSS 的练手或原型起点
- 通过 degit 的 src-dir 分支创建使用 src 目录的项目
- 通过 degit 的 trpc 分支创建包含 tRPC 的项目骨架
适合人群
- 熟悉 Next.js 与 TypeScript 的前端开发者
- 希望统一团队 ESLint、Prettier 与提交规范的项目
- 需要最小依赖、自行决定后续集成的项目
- 使用 bun 或愿意切换包管理器的开发者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
可用 bun create next-app -e 或 npx create-next-app -e 指定本仓库地址创建项目
- 2
也可全局安装 degit 后执行 degit rajput-hemant/nextjs-template <project-name>
- 3
切换包管理器前需删除 bun.lockb,再运行对应安装命令生成锁文件
- 4
安装后按清单更新 package.json、README.md 与 LICENSE 中的项目信息
- 5
如需 ORM、认证、支付等能力,可运行 kirimase init 按需添加集成
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 模板默认使用 bun 作为包管理器;若改用 pnpm、npm 或 yarn,必须先删除 bun.lockb 文件,再运行对应安装命令重新生成锁文件。
- 模板本身不含数据库、认证、支付等集成;如需这些能力,需借助外部 CLI 工具 Kirimase 按需接入,可能涉及第三方服务与账号。
- 安装后需自行更新 LICENSE 中的版权人姓名与年份,以替换模板原有署名。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
This template uses [bun](https://bun.sh/docs/cli/install) as the default package manager. If you want to use `pnpm`, `npm` or `yarn`, you need to remove the `bun.lockb` file and run `pnpm i`, `npm i` or `yarn` to generate the lock file for the respective package manager.
README 原文
[Kirimase](https://kirimase.dev) is a Next.js CLI tool that accelerates full-stack app development. It seamlessly integrates packages like ORM (Prisma or Drizzle), authentication (Auth.js, Clerk, Lucia, Kinde), UI components (Shadcn-UI), payments (Stripe), and email (Resend), following best practices.
README 原文
https://github.com/rajput-hemant/nextjs-template/blob/master/LICENSEhttps://github.com/rajput-hemant/nextjs-template/blob/master/README.md- [ ] Update `LICENSE` with your name and year.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 87 / 100
- 技术栈
- Next.js · React
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-10-02
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 5677f1fd8ffffa0afafe723fe465fab94746979714b67a7958ceef8166262dfe
2026-10-02T20:43:28.132Z
来源文件 / 仓库<div align=center>
[![ntl-badge]][ntl-link] ![views] ![stars] ![forks] ![issues] ![license] ![repo-size]
<picture>
<source media="(prefers-color-scheme: dark)" srcset="public/nextjs-light.svg">
<source media="(prefers-color-scheme: light)" srcset="public/nextjs-dark.svg">
<img alt="Next.js">
</picture>
# Next.js Starter Template
### A Minimal Next.js Starter Template with TypeScript, Tailwind CSS, and pre-configured with ESLint, Prettier, and Husky.
</div>
## Features
- ⚡ **[Next.js](https://nextjs.org/)** - A React Framework for Production
- 🔥 **[App Router](https://nextjs.org/docs/app)** - It is a new paradigm for building applications using React's latest features.
- 🎨 **[Tailwind CSS](https://tailwindcss.com/)** - A Utility-First CSS Framework for Rapid UI Development
- 📦 **[TypeScript](https://www.typescriptlang.org/)** - A typed superset of JavaScript that compiles to plain JavaScript
- 📝 **[ESLint](https://eslint.org/)** - The pluggable linting utility for JavaScript and JSX
- 🛠 **[Prettier](https://prettier.io/)** - An opinionated code formatter
- 🐶 **[Husky](https://typicode.github.io/husky/#/)** - A tool that makes Git hooks easy
- 🚫 **[lint-staged](https://github.com/okonet/lint-staged)** - Run linters against staged git files
- 📄 **[commitlint](https://commitlint.js.org/#/)** - Lint commit messages
- 📦 **[bun](https://bun.sh)** - A JavaScript runtime w/ Fast, disk space efficient package manager
## Getting Started
```bash
bun create next-app -e "https://github.com/rajput-hemant/nextjs-template" <project-name>
npx create-next-app -e "https://github.com/rajput-hemant/nextjs-template" <project-name>
```
<p align="center" style="font-weight: bold;">OR</p>
**Install `degit` globally**
```bash
bun i -g degit || pnpm i -g degit || yarn global add degit || npm i -g degit
```
**Create a new project from this template**
```bash
degit rajput-hemant/nextjs-template <project-name>
# src directory
degit rajput-hemant/nextjs-template#src-dir <project-name>
# tRPC
degit rajput-hemant/nextjs-template#trpc <project-name>
cd <project-name>
```
**Install dependencies**
```bash
bun i || pnpm i || yarn || npm i
```
**Initialize a new git repository _(Optional)_:**
```bash
git init
git add .
git commit --no-verify -m "init"
```
## Integrations
[Kirimase](https://kirimase.dev) is a Next.js CLI tool that accelerates full-stack app development. It seamlessly integrates packages like ORM (Prisma or Drizzle), authentication (Auth.js, Clerk, Lucia, Kinde), UI components (Shadcn-UI), payments (Stripe), and email (Resend), following best practices.
To add integrations to your project, run:
```bash
kirimase init
```
## Available Scripts
In the project directory, you can run:
| **Script** | **Description** |
| ------------ | ---------------------------------------------------- |
| `dev` | Runs the app in the development mode. |
| `build` | Builds the app for production to the `.next` folder. |
| `start` | Runs the built app in the production mode. |
| `preview` | Builds and serves the app in the production mode. |
| `lint` | Runs next lint on the project. |
| `type-check` | Runs TypeScript type checker. |
| `fmt` | Formats the code with Prettier. |
| `fmt:check` | Checks if the code is formatted with Prettier. |
| `prepare` | Installs husky git hooks. |
## After Installation Checklist
- [ ] Update `package.json` with your project details.
- [ ] Update `README.md` with your project details.
- [ ] Update `LICENSE` with your name and year.
## Switching Package Manager
This template uses [bun](https://bun.sh/docs/cli/install) as the default package manager. If you want to use `pnpm`, `npm` or `yarn`, you need to remove the `bun.lockb` file and run `pnpm i`, `npm i` or `yarn` to generate the lock file for the respective package manager.
## Deployments
[](https://vercel.com/new/git/external?repository-url=https://github.com/rajput-hemant/nextjs-template)
[](https://app.netlify.com/start/deploy?repository=https://github.com/rajput-hemant/nextjs-template)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Contributors:
<div align=center>
[![][contributors]][contributors-graph]
_Note: It may take up to 24h for the [contrib.rocks][contrib-rocks] plugin to update because it's refreshed once a day._
</div>
<!----------------------------------{ Labels }--------------------------------->
[views]: https://komarev.com/ghpvc/?username=nextjs-template&label=view%20counter&color=red&style=flat
[repo-size]: https://img.shields.io/github/repo-size/rajput-hemant/nextjs-template
[issues]: https://img.shields.io/github/issues-raw/rajput-hemant/nextjs-template
[license]: https://img.shields.io/github/license/rajput-hemant/nextjs-template
[forks]: https://img.shields.io/github/forks/rajput-hemant/nextjs-template?style=flat
[stars]: https://img.shields.io/github/stars/rajput-hemant/nextjs-template
[contributors]: https://contrib.rocks/image?repo=rajput-hemant/nextjs-template&max=500
[contributors-graph]: https://github.com/rajput-hemant/nextjs-template/graphs/contributors
[contrib-rocks]: https://contrib.rocks/preview?repo=rajput-hemant%2Fnextjs-template
[ntl-badge]: https://api.netlify.com/api/v1/badges/6955f80c-0747-4947-a344-e7c647012cbe/deploy-status
[ntl-link]: https://app.netlify.com/sites/react-template-vite/deploys
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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