Next.jsReact启动器

next-enterprise-starter — Next.js 启动器模板

作者 manniche-labs

基于 Next.js App Router 的极简启动模板,内置深色主题示例页面、安全响应头与代码质量工具链。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

采集于 2026-10-02查看来源

值得关注的模板亮点

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

01

提供 Next.js App Router 的深色落地页与 about 两个示例路由,可直接在此基础上扩展

02

next.config.ts 预置 HSTS、X-Frame-Options、X-Content-Type-Options、Referrer-Policy、Permissions-Policy 并移除 X-Powered-By,未包含 CSP

03

Tailwind CSS v4 通过 PostCSS 插件接入,globals.css 中定义设计令牌

04

严格 TypeScript、ESLint flat config、Prettier 与 husky + lint-staged 提交前检查,钩子随 npm install 自动安装

05

配置 @/ 路径别名与 cn() 类名合并工具,根布局内置 OpenGraph SEO 元数据

模板详细介绍

next-enterprise-starter 是 manniche labs 维护的一个小型 Next.js 启动模板,定位为“新站点的最小基础”,而非功能齐备的企业级框架。仓库提供两个示例路由:一个深色落地页(page.tsx)和一个使用 generateMetadata() 的 about 页面,并配有根布局中的 OpenGraph SEO 元数据。样式基于 Tailwind CSS v4,globals.css 中定义设计令牌;src/lib/utils.ts 提供 cn() 类名合并工具,导入路径使用 @/ 别名。

工程配置方面,模板启用严格 TypeScript、ESLint(flat config,含 Next.js core web vitals 与 TypeScript 规则)、Prettier,并通过 husky + lint-staged 在提交前对暂存文件执行检查,该钩子由 npm install 自动安装。next.config.ts 中设置了 HSTS、X-Frame-Options、X-Content-Type-Options、Referrer-Policy、Permissions-Policy 等安全响应头,并移除 X-Powered-By;README 明确说明未包含 CSP,需要使用者自行添加。

使用限制:模板只提供上述示例页面与工具链,不含数据库、认证、支付或部署配置;演示站点截图仅用于展示默认外观。代码采用 MIT 许可,可免费使用、修改、商用与分发,但需保留版权与许可声明;演示图片、字体、图标等第三方素材以及域名、托管等外部服务的费用需另行核对。

Next.jsReact启动器

适合你的项目吗?

适用场景

  • 新建 Next.js 站点时跳过基础工程配置,直接从示例页面开始写业务代码
  • 需要一份带安全响应头默认值与提交前 lint/格式化钩子的项目脚手架
  • 作为团队内部 Next.js 项目的统一起点,复用路径别名与代码质量配置

适合人群

  • 熟悉 Next.js App Router 与 TypeScript、希望自行搭建业务层的开发者
  • 需要一个轻量起点而非完整企业框架的小型项目或原型
  • 重视提交前代码检查与基础安全响应头配置的团队

上手与定制指南

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

  1. 1

    克隆仓库后执行 npm install(或 pnpm/bun install),husky 提交钩子会随之自动安装

  2. 2

    运行 npm run dev 启动开发服务器,默认访问 http://localhost:3000

  3. 3

    可用脚本包括 build、start、lint、typecheck、format、format:check

  4. 4

    模板未包含 CSP,README 建议按自身应用需要补充

  5. 5

    演示图片、字体、图标等第三方素材需按各自许可单独核对

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 模板未包含内容安全策略(CSP),README 明确要求使用者自行添加,属于使用时的额外配置义务。
  • 提交前钩子(husky + lint-staged)会随 npm install 自动安装,会在每次提交时对暂存文件执行 ESLint 与 Prettier 检查。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

There is no CSP; add one for your app.

README 原文

It is installed automatically by `npm install`.

README 原文
https://github.com/manniche-labs/next-enterprise-starter/blob/main/LICENSEhttps://github.com/manniche-labs/next-enterprise-starter/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 88 / 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: 7ded6aa29557d935164a0c81dd3c39d2cbcfa7925ea44bbf2f29beeb9f3393b0

2026-10-02T16:39:04.406Z

来源文件 / 仓库
<img src=".github/banner.svg" alt="" width="100%">

<div align="center">

# ⚡ next-enterprise-starter

**A small, opinionated starter for Next.js 16, React 19, TypeScript and Tailwind CSS 4, with security headers and pre-commit linting set up.**

  <br />

[![Next.js 16](https://img.shields.io/badge/Next.js-16-black?style=flat-square&logo=next.js&logoColor=white)](https://nextjs.org)
[![React 19](https://img.shields.io/badge/React-19-20232A?style=flat-square&logo=react&logoColor=61DAFB)](https://react.dev)
[![TypeScript](https://img.shields.io/badge/TypeScript-5-3178C6?style=flat-square&logo=typescript&logoColor=white)](https://www.typescriptlang.org)
[![Tailwind CSS 4](https://img.shields.io/badge/Tailwind_CSS-v4-38B2AC?style=flat-square&logo=tailwind-css&logoColor=white)](https://tailwindcss.com)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](https://opensource.org/licenses/MIT)
[![Maintained by manniche labs](https://img.shields.io/badge/Studio-manniche_labs-0f0f0f?style=flat-square&logo=github&logoColor=white)](https://github.com/manniche-labs)

  <br />

<sub>Made by <b><a href="https://github.com/mikkelmanniche-dk">Mikkel Manniche</a></b> at <b><a href="https://github.com/manniche-labs">manniche labs</a></b> • <a href="https://mikkelmanniche.dk">mikkelmanniche.dk</a></sub>

</div>

---

## 🚀 Overview

**next-enterprise-starter** is a minimal foundation for a new Next.js site: two example routes, a dark theme, security headers and code-quality tooling, so you can skip the setup and start building.

### ✨ Highlights

- **⚡ Current stack:** Next.js 16 (App Router), React 19 and Tailwind CSS v4.
- **🛡️ Security headers:** HSTS, `X-Frame-Options`, `X-Content-Type-Options`, `Referrer-Policy` and `Permissions-Policy` in `next.config.ts`, and no `X-Powered-By` header. There is no CSP; add one for your app.
- **🎨 Dark theme:** A simple dark landing page and an about page to build on.
- **🧹 Code quality:** Strict TypeScript, ESLint, Prettier and a pre-commit hook.
- **🧩 Path alias:** `@/` imports and a `cn()` className helper.

---

## 📦 Getting Started

### 1. Clone or Use as Template

```bash
git clone https://github.com/manniche-labs/next-enterprise-starter.git my-app
cd my-app
```

### 2. Install Dependencies

```bash
npm install
# or
pnpm install
# or
bun install
```

### 3. Run Development Server

```bash
npm run dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

---

## 📁 Project Structure

```
next-enterprise-starter/
├── src/
│   ├── app/
│   │   ├── globals.css      # Tailwind CSS v4 & custom design tokens
│   │   ├── about/page.tsx   # Example route using generateMetadata()
│   │   ├── layout.tsx       # Root layout & OpenGraph SEO metadata
│   │   └── page.tsx         # Modern landing hero component
│   └── lib/
│       └── utils.ts         # cn() className merger utility
├── .husky/pre-commit        # Runs lint-staged before every commit
├── eslint.config.mjs        # ESLint flat config (Next.js core web vitals + TypeScript)
├── next.config.ts           # Production compression & security headers
├── postcss.config.mjs       # Tailwind CSS v4 PostCSS plugin
├── tsconfig.json            # Strict TypeScript configuration
└── package.json
```

---

## 🛠️ Scripts

- `npm run dev` — Start the Next.js development server
- `npm run build` — Create an optimized production build
- `npm run start` — Run the production build locally
- `npm run lint` — Run ESLint code quality checks
- `npm run typecheck` — Type-check the project without emitting files
- `npm run format` — Format all files with Prettier
- `npm run format:check` — Check formatting without writing changes

A pre-commit hook (husky + lint-staged) runs ESLint and Prettier on staged files. It is installed automatically by `npm install`.

---

## 🤝 Contributing

Contributions, feedback, and pull requests are warmly welcomed! If you find this template helpful, please consider giving it a **⭐ Star** on GitHub.

---

## 👨‍💻 Maintainer

[Mikkel Manniche](https://github.com/mikkelmanniche-dk) at [manniche labs](https://github.com/manniche-labs) · [mikkelmanniche.dk](https://mikkelmanniche.dk)

License: [MIT](LICENSE)
反馈内容错误

看看同类模板

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