使用 Next.js App Router 目录结构组织页面与路由
snxtw — Next.js 目录站模板
作者 bonabrian
snxtw 是一个基于 Next.js App Router、Tailwind CSS 与 TypeScript 的启动器模板,内置预构建组件、SEO 元数据以及 ESLint、Prettier、Husky 等代码质量工具链。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
集成 Tailwind CSS 与 TypeScript,并提供预构建组件
内置 SEO 元数据配置
集成 ESLint、Prettier、Husky、lint-staged 与 Conventional Commit Lint
提供 Use this template、create-next-app 与 degit 三种获取方式
模板详细介绍
snxtw 是面向 Next.js 项目的启动器模板,仓库描述为「Next.js (App Router) + Tailwind CSS + Typescript Starter Template」。它采用 App Router 目录结构,使用 React 与 TypeScript 编写,样式层使用 Tailwind CSS,并提供预构建组件与 SEO 元数据配置。
模板在工程规范方面集成了 ESLint、Prettier、Husky 与 lint-staged,以及 Conventional Commit Lint,用于在提交前检查暂存文件并统一代码格式。README 提供了三种获取方式:在 GitHub 上点击 Use this template、通过 create-next-app 指定该仓库作为示例,或使用 degit 拉取。安装依赖时建议使用 yarn,以便 Husky 钩子正常工作;随后运行 yarn dev 启动开发服务器,默认在 http://localhost:3000 查看结果,页面入口为 src/app/page.tsx。
该模板的 MIT 许可仅覆盖仓库代码本身,演示图片、字体、图标等第三方素材以及域名、托管等外部服务需另行核对许可与费用。
适合你的项目吗?
适用场景
- 快速搭建一个使用 App Router 的 Next.js 新项目
- 在已有工程规范要求下引入 ESLint、Prettier 与提交前检查
- 作为需要预构建组件与 SEO 元数据配置的前端项目起点
适合人群
- 使用 Next.js App Router 与 TypeScript 的前端开发者
- 希望项目自带代码质量与提交规范工具链的团队
- 需要从模板快速起步并自行扩展页面的个人项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
可通过 GitHub 的 Use this template、create-next-app 指定该仓库,或 npx degit bonabrian/snxtw YOUR_APP_NAME 获取代码
- 2
建议使用 yarn install 安装依赖,以便 Husky 钩子正常工作
- 3
运行 yarn dev 启动开发服务器,默认地址为 http://localhost:3000
- 4
页面入口位于 src/app/page.tsx,可在此基础上修改
- 5
MIT 许可仅覆盖仓库代码,第三方素材与外部服务需单独核对许可和费用
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 通过 GitHub「Use this template」创建仓库时,仓库中会保留指向原模板的署名/归属信息;README 表示希望使用者保留该署名,以便他人发现该模板。此为请求性说明,非强制法律义务。
- 安装依赖时建议使用 yarn,以便 Husky 的 Git 钩子正常工作;若改用其他包管理器,提交前钩子可能无法按预期运行。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Please be aware that there will be an attribution on your repository. It would be greatly appreciated if you could leave this attribution intact
README 原文
https://github.com/bonabrian/snxtw/blob/main/LICENSEhttps://github.com/bonabrian/snxtw/blob/main/README.mdIt is encouraged to use **yarn** so the husky hooks can work properly.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 77 / 100
- 技术栈
- Next.js · React
- 网站类型
- 目录站 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2024-01-23
- 截图检查日期
- 2026-10-03
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 0e0da50a752d8d2bbb283c2645902b15a4850435c7c521ae79771aa4bab9546c
2026-10-03T05:52:05.061Z
来源文件 / 仓库# Next.js (App Router) + Tailwind CSS + Typescript Starter Template <img alt="snxtw" src="https://github.com/bonabrian/snxtw/assets/14372275/137dc56d-b0a4-4e49-b91d-a30137ed5166"> <div align="center"> <a href="https://vercel.com/new/clone?repository-url=https://github.com/bonabrian/snxtw" target="_blank"><img src="https://vercel.com/button" alt="Deploy with Vercel" /></a> <a href="https://app.netlify.com/start/deploy?repository=https://github.com/bonabrian/snxtw" target="_blank"><img src="https://www.netlify.com/img/deploy/button.svg" alt="Deploy to Netlify" /></a> <a href="https://railway.app?referralCode=vMv3VV" target="_blank"><img src="https://railway.app/button.svg" alt="Deploy on Railway" height="32px" /></a> <p>A <a href="https://nextjs.org/docs/app" target="_blank">Next.js</a> (App Router) starter kit template with <a href="https://tailwindcss.com/" target="_blank">Tailwind CSS</a> and <a href="https://www.typescriptlang.org/" target="_blank">Typescript</a></p> </div> [](https://www.codefactor.io/repository/github/bonabrian/nextjs-starter-tailwind) [](https://sonarcloud.io/summary/new_code?id=bonabrian_nextjs-starter-tailwind) [](https://sonarcloud.io/summary/new_code?id=bonabrian_nextjs-starter-tailwind) [](https://sonarcloud.io/summary/new_code?id=bonabrian_nextjs-starter-tailwind) [](https://sonarcloud.io/summary/new_code?id=bonabrian_nextjs-starter-tailwind) [](https://sonarcloud.io/summary/new_code?id=bonabrian_nextjs-starter-tailwind) ## Features This repository is 🔋 ⚡ battery packed with: - 🔥 [Next.js](https://nextjs.org/docs/app) with app router directory structure - ⚛️ [React](https://react.dev/) - ⚡️ [Typescript](https://www.typescriptlang.org/) - 💅 [Tailwind CSS](https://tailwindcss.com/) - 💎 Pre-built Components - ⚙️ SEO metadata - 📏 [ESLint](https://eslint.org/) — Find and fix problems in your code - 💖 [Prettier](https://prettier.io/) — Format your code consistently - 🐶 [Husky](https://typicode.github.io/husky/#/) & [Lint Staged](https://github.com/okonet/lint-staged) — Run scripts on your staged files before they are committed - 🤖 [Conventional Commit Lint](https://github.com/conventional-changelog/conventional-changelog) ## Getting Started ### 1. Clone this template using one of these ways: 1. You can simply click `Use this template` button on this repository Please be aware that there will be an attribution on your repository. It would be greatly appreciated if you could leave this attribution intact, as it will help others discover and benefit from this template as well. Thank you! 😄"  2. Using `create-next-app` ```bash npx create-next-app -e https://github.com/bonabrian/snxtw project-name ``` 3. Using `degit` ```bash npx degit bonabrian/snxtw YOUR_APP_NAME ``` ### 2. After cloning this project, install dependencies It is encouraged to use **yarn** so the husky hooks can work properly. ```bash yarn install ``` ### 3. Run development server You can start the server using this command: ```bash yarn dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. You can start editing the page by modifying `src/app/page.tsx`.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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