Next.jsReact启动器

nextjs-boilerplate — Next.js 启动器模板

作者 betaversionio

BetaVersion.IO 出品的 Next.js 起始模板,集成 TypeScript、Tailwind CSS v4、Radix UI、Framer Motion 等,提供 SEO、PWA 与 Docker 配置。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

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

值得关注的模板亮点

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

01

使用 Next.js 16 App Router 与 React 19

02

TypeScript 全类型支持

03

Tailwind CSS v4 基于 CSS 的配置方式

04

内置 next-themes 深色模式切换

05

集成 Radix UI、Aceternity UI 与 Framer Motion

06

提供 SEO 文件、PWA manifest 及 Docker 配置

模板详细介绍

这是一个基于 Next.js App Router 的起始模板,README 说明其使用 TypeScript、Tailwind CSS v4 和 React 19,并集成 Radix UI、Aceternity UI、Framer Motion、next-themes 与 Lucide React。模板内置 SEO 相关文件(动态 OG 图片、sitemap、robots.txt、metadata)、PWA manifest 与图标,以及 ESLint、Prettier、Husky、Commitlint 代码质量工具。项目结构按 app、components、config、constants、lib、styles 组织,并提供开发、构建、代码检查、格式化、类型检查及 Docker 相关脚本。README 未说明具体业务功能、性能指标或生产环境验证情况,仅描述模板包含的技术配置与文件。

Next.jsReact启动器

适合你的项目吗?

适用场景

  • 需要快速搭建 Next.js 项目基础结构时
  • 希望使用 TypeScript 与 Tailwind CSS v4 开发时
  • 需要内置深色模式与动画组件时
  • 需要 SEO 基础文件与 PWA 支持时
  • 需要通过 Docker 运行开发或生产环境时

适合人群

  • 使用 Next.js 与 TypeScript 的前端开发者
  • 需要 Tailwind CSS v4 与 Radix UI 组合的团队
  • 希望以 Docker 方式部署 Next.js 应用的场景

上手与定制指南

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

  1. 1

    需要 Node.js >= 20.0.0 与 pnpm >= 9.0.0

  2. 2

    克隆仓库后执行 pnpm install 安装依赖

  3. 3

    使用 pnpm dev 启动开发服务器,默认访问 http://localhost:3000

  4. 4

    复制 .env.example 为 .env.local 并配置 NEXT_PUBLIC_BASE_URL

  5. 5

    Docker 相关命令包括 pnpm docker:dev、pnpm docker:up、pnpm docker:down

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

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

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 85 / 100
技术栈
Next.js · React
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2025-12-24
截图检查日期
2026-10-14

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: codex-user-requested-batch-review-20261015 · 2026-10-15

查看当时使用的来源资料

SHA-256: d824e1b0cbbd2185ba0a4e69a8ef890e6c4d673c60c73b672c6d8481815cbb3a

2026-10-14T15:39:56.903Z

来源文件 / 仓库
# BetaVersion.IO Next.js Template

A modern, enterprise-grade Next.js boilerplate built with TypeScript, Tailwind CSS v4, and the latest web technologies. Ship production-ready applications faster.

## Features

- **Next.js 16** - Latest App Router with React 19
- **TypeScript** - Full type safety throughout
- **Tailwind CSS v4** - Modern utility-first styling with CSS-based configuration
- **Dark Mode** - Built-in theme switching with next-themes
- **Framer Motion** - Smooth animations and transitions
- **Radix UI** - Accessible, unstyled UI primitives
- **Aceternity UI** - Beautiful animated components (Container Text Flip, Glowing Effects)
- **SEO Optimized** - Dynamic OG images, sitemap, robots.txt, and metadata
- **Docker Ready** - Development and production Docker configurations
- **Code Quality** - ESLint, Prettier, Husky, and Commitlint pre-configured
- **PWA Ready** - Web manifest and icons included

## Tech Stack

| Category | Technology |
|----------|------------|
| Framework | Next.js 16 |
| Language | TypeScript 5 |
| Styling | Tailwind CSS v4 |
| UI Components | Radix UI, Aceternity UI |
| Animations | Framer Motion |
| Icons | Lucide React |
| Theme | next-themes |
| Package Manager | pnpm |
| Linting | ESLint 9 |
| Formatting | Prettier |
| Git Hooks | Husky + Commitlint |
| Containerization | Docker |

## Quick Start

### Prerequisites

- Node.js >= 20.0.0
- pnpm >= 9.0.0

### Installation

```bash
# Clone the repository
git clone https://github.com/betaversionio/nextjs-boilerplate.git
cd nextjs-boilerplate

# Install dependencies
pnpm install

# Start development server
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) to view the application.

## Available Scripts

| Command | Description |
|---------|-------------|
| `pnpm dev` | Start development server |
| `pnpm build` | Build for production |
| `pnpm start` | Start production server |
| `pnpm lint` | Run ESLint |
| `pnpm lint:fix` | Fix ESLint errors |
| `pnpm format` | Format code with Prettier |
| `pnpm format:check` | Check code formatting |
| `pnpm type-check` | Run TypeScript type checking |
| `pnpm docker:dev` | Start with Docker (development) |
| `pnpm docker:up` | Start with Docker (production) |
| `pnpm docker:down` | Stop Docker containers |

## Project Structure

```
src/
├── app/                    # Next.js App Router
│   ├── layout.tsx          # Root layout
│   ├── page.tsx            # Home page
│   ├── error.tsx           # Error boundary
│   ├── loading.tsx         # Loading UI
│   ├── not-found.tsx       # 404 page
│   ├── manifest.ts         # PWA manifest
│   ├── robots.ts           # Robots.txt
│   ├── sitemap.ts          # Sitemap
│   ├── opengraph-image.tsx # Dynamic OG image
│   └── globals.css         # Global styles
├── components/
│   ├── aceternity/         # Aceternity UI components
│   ├── layout/             # Layout components (Navigation, Footer, Theme)
│   ├── sections/           # Page sections (Hero, Features, CTA)
│   └── ui/                 # Base UI components
├── config/                 # App configuration
│   ├── site.ts             # Site metadata
│   └── navigation.ts       # Navigation links
├── constants/              # Static data
├── lib/                    # Utility functions
└── styles/                 # Additional styles
```

## Configuration

### Environment Variables

Create a `.env.local` file based on `.env.example`:

```bash
cp .env.example .env.local
```

| Variable | Description | Default |
|----------|-------------|---------|
| `NEXT_PUBLIC_BASE_URL` | Base URL for the application | `https://betaversion.io` |

### Theme Configuration

Theme colors are defined in `src/app/globals.css` using CSS custom properties. The template supports both light and dark modes out of the box.

### Tailwind CSS v4

This template uses Tailwind CSS v4 with CSS-based configuration. Theme customizations are in `globals.css` using the `@theme` directive.

## Deployment

### Vercel (Recommended)

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/betaversionio/nextjs-boilerplate)

### Docker

```bash
# Build the image
pnpm docker:build

# Run with docker-compose
pnpm docker:up
```

### Other Platforms

The application can be deployed to any platform supporting Node.js:
- AWS Amplify
- Netlify
- Railway
- Render

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.

## Security

See [SECURITY.md](SECURITY.md) for security policies and reporting vulnerabilities.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Links

- [Website](https://betaversion.io)
- [GitHub](https://github.com/betaversionio)
- [Twitter](https://x.com/BetaVersionIO)
- [LinkedIn](https://linkedin.com/company/betaversionio)

---

Built with passion by [BetaVersion.IO](https://betaversion.io)
反馈内容错误

看看同类模板

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