Next.jsReact博客启动器

nextjs-chakra-starter-blog — Next.js 博客模板

作者 kingchun1991

基于 Next.js 与 Chakra UI 的博客启动模板,内置 MDX 文章、SEO 与 PWA 配置,可直接克隆后替换内容。

看看你的网站会是什么样

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

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

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

全部页面与视图 3

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

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

值得关注的模板亮点

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

01

Next.js App Router 与 Chakra UI、TypeScript 组合的博客启动模板

02

MDX 博客支持 GitHub 风格表格、自动 OG 封面、作者信息与阅读时长

03

内置 Biome、Playwright、Turborepo、React Icons 等开发与测试工具

04

next-sitemap 提供 SEO 基础配置,next-pwa 提供 PWA 支持

05

next-intl 国际化默认关闭,可用 NEXT_PUBLIC_ENABLE_I18N=true 开启

06

MIT 许可,允许免费使用、修改、商用与分发

模板详细介绍

这是一个博客方向的启动模板,仓库基于 agustinusnathaniel/nextarter-chakra 改造而来,技术栈为 Next.js(App Router)+ Chakra UI + TypeScript。它把路由入口放在 src/app,把页面实现、布局外壳与主题配置放在 src/lib,共享 UI 组件放在 src/components,形成路由层、逻辑层与 UI 层分离的结构。

内容方面,模板提供 MDX 博客能力,包括通过 remark-gfm 支持 GitHub 风格 Markdown 表格、自动生成 Open Graph 封面、作者信息与头像、阅读时长计算。工程配置包含 Biome 格式化与检查、Playwright 端到端测试、Turborepo、React Icons、next-sitemap 的 SEO 配置、next-pwa 的 PWA 支持,以及 Renovate 依赖更新和 Git 提交钩子。国际化由 next-intl 提供,默认关闭,需通过环境变量 NEXT_PUBLIC_ENABLE_I18N=true 启用。

使用限制方面,README 说明需要 Node.js v24 以上和 pnpm,安装、开发、构建与测试分别通过 pnpm install、pnpm dev、pnpm build、pnpm test:e2e 执行;SEO 与响应式布局属于基础配置,README 明确提示需要按自身需求重新调整。仓库采用 MIT 许可,可免费使用、修改、商用和分发,但演示图片、字体、图标等第三方素材需单独核对许可,托管、域名等外部服务可能另外收费。

Next.js博客启动器

适合你的项目吗?

适用场景

  • 快速搭建个人技术博客并发布 MDX 文章
  • 在 Chakra UI 主题体系下定制博客的页面与组件
  • 需要 PWA 与站点地图等基础配置的博客项目起步
  • 希望以路由层、逻辑层、UI 层分离方式组织 Next.js 项目

适合人群

  • 熟悉 Next.js 与 TypeScript 的前端开发者
  • 需要 MDX 写作流程的个人博客作者
  • 希望基于 MIT 许可模板二次开发并商用的团队

上手与定制指南

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

  1. 1

    需要 Node.js v24 以上并全局安装 pnpm

  2. 2

    克隆或使用 degit 获取代码后执行 pnpm install

  3. 3

    pnpm dev 启动本地开发,pnpm build 构建生产版本

  4. 4

    pnpm test:e2e 运行 Playwright 端到端测试

  5. 5

    启用国际化需设置环境变量 NEXT_PUBLIC_ENABLE_I18N=true

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 使用该模板需要 Node.js v24 或更高版本,并需安装 pnpm 包管理器(可通过 npm install -g pnpm 全局安装),否则无法安装依赖、开发、构建或运行测试。
  • README 明确说明 next-sitemap 的 SEO 配置只是基础配置,需要使用者根据自身需求重新配置或调整才能正确生效,并非开箱即用的完整 SEO 方案。
  • 国际化(next-intl)默认关闭,如需使用必须设置环境变量 NEXT_PUBLIC_ENABLE_I18N=true 才能启用。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

**Prerequisites**: Node.js v24+ and [pnpm](https://pnpm.io/) are required.

README 原文

you'll need to reconfigure or tinker with it to get it right according to your needs, but it's there if you need it.

README 原文

Optional i18n support (disabled by default, enable with `NEXT_PUBLIC_ENABLE_I18N=true`)

README 原文
https://github.com/kingchun1991/nextjs-chakra-starter-blog/blob/main/LICENSEhttps://github.com/kingchun1991/nextjs-chakra-starter-blog/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

2026-10-02T09:19:14.787Z

来源文件 / 仓库
<img src="https://nextjs-chakra-starter-blog.vercel.app/api/og/cover?heading=nextjs-chakra-starter-blog&template=plain&center=true" />

<div align="center">
  <a href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fkingchun1991%2Fnextjs-chakra-starter-blog" 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/kingchun1991/nextjs-chakra-starter-blog" target="_blank"><img src="https://www.netlify.com/img/deploy/button.svg" alt="Deploy to Netlify" /></a> <a href="https://railway.app/new/template/aqmmai?referralCode=9lKVVo" target="_blank"><img src="https://railway.app/button.svg" alt="Deploy on Railway" height="32px" /></a>

<a href="https://stackblitz.com/github/kingchun1991/nextarter-chakra" target="_blank"><img src="https://developer.stackblitz.com/img/open_in_stackblitz.svg" alt="Open in StackBlitz" /></a>

</div>

This is a **Next.js + Chakra UI + TypeScript** starter template packed with modern tooling setup.

## 🚀 Features

-   **Framework**: [Next.js 16](https://nextjs.org/) (App Router)
-   **UI Library**: [Chakra UI v3](https://chakra-ui.com/)
-   **Styling Engine**: Emotion (via Chakra UI) + [next-themes](https://github.com/pacocoursey/next-themes)
-   **Language**: [TypeScript 5](https://www.typescriptlang.org/)
-   **Internationalization**: [next-intl](https://next-intl-docs.vercel.app/) - Optional i18n support (disabled by default, enable with `NEXT_PUBLIC_ENABLE_I18N=true`)
-   **Linting & Formatting**: [Biome](https://biomejs.dev/)
-   **E2E Testing**: [Playwright](https://playwright.dev/)
-   **Build System**: [Turborepo](https://turbo.build/repo)
-   **Icons**: [React Icons](https://react-icons.github.io/react-icons/)
  - `pre-commit`, `pre-push`, `commit-msg`, `prepare-commit-msg` hook configured
- 📱 **PWA-ready** - `next-pwa` configured, enabled by default, just disable it through `next.config.js`
- 🔎 SEO optimization configured - with `next-sitemap`.
  - you'll need to reconfigure or tinker with it to get it right according to your needs, but it's there if you need it.
- 🎨 basic responsive layout configured - don't need it? just remove it 😃
- 🤖 **Automatic Dependency Update** with [Renovate](https://renovatebot.com/)
- 🗒️ **MDX Blog** with enhanced features
  - 📊 **Table Support** - Beautiful, responsive tables with Chakra UI v3 styling
    - GitHub Flavored Markdown table syntax support via `remark-gfm`
    - Automatic column alignment (left, right, center)
    - Responsive design with horizontal scrolling on mobile
    - Dark/light mode support with hover effects
    - Enhanced table component for JSON data
  - 🖼️ Automatic Open Graph Cover generation
  - 👤 Author information and avatars
  - ⏱️ Reading time calculation

[![CodeFactor](https://www.codefactor.io/repository/github/kingchun1991/nextjs-chakra-starter-blog/badge)](https://www.codefactor.io/repository/github/kingchun1991/nextjs-chakra-starter-blog)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=kingchun1991_nextjs-chakra-starter-blog&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=kingchun1991_nextjs-chakra-starter-blog)[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=kingchun1991_nextjs-chakra-starter-blog&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=kingchun1991_nextjs-chakra-starter-blog) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=kingchun1991_nextjs-chakra-starter-blog&metric=bugs)](https://sonarcloud.io/dashboard?id=kingchun1991_nextjs-chakra-starter-blog) [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=kingchun1991_nextjs-chakra-starter-blog&metric=code_smells)](https://sonarcloud.io/dashboard?id=kingchun1991_nextjs-chakra-starter-blog) [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=kingchun1991_nextjs-chakra-starter-blog&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=sozonome_nextarter-chakra)

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fkingchun1991%2Fnextjs-chakra-starter-blog&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com)


## 🏗 System Architecture

This project uses a **Split-Layer** architecture to separate Next.js routing concerns from React UI logic.

```mermaid
graph TD
    subgraph "Routing Layer (src/app)"
        L[layout.tsx] --> Providers
        P[page.ts] --> Logic
    end

    subgraph "Logic Layer (src/lib)"
        Providers --> Layout[Layout Component]
        Layout --> Header
        Layout --> Footer
        Logic --> HomePage[Page Component]
    end

    subgraph "UI Layer (src/components)"
        HomePage --> Components
        Header --> Components
        Footer --> Components
    end
```

## 📂 Repository Structure

The code is organized to keep business logic and routing separate:

```bash
src/
├── app/            # Next.js App Router (Entry points)
│   ├── layout.tsx  # Global RootLayout & Providers
│   └── page.ts     # Re-exports Home from lib/pages
├── components/     # Shared UI components
│   └── ui/         # Primitives (Buttons, Inputs, etc.)
└── lib/            # Application Business Logic
    ├── layout/     # Shell components (Header, Footer)
    ├── pages/      # Page implementations (Home, etc.)
    └── styles/     # Theme configuration
```

## 🛠 Getting Started

### 1. Get the Code

Click the **Use this template** button on this repository, or clone it directly:

```bash
git clone https://github.com/kingchun1991/nextjs-chakra-starter-blog.git <YOUR_APP_NAME>
cd <YOUR_APP_NAME>
```

Alternatively, use `degit` to clone without git history:

```bash
npx degit kingchun1991/nextjs-chakra-starter-blog <YOUR_APP_NAME>
cd <YOUR_APP_NAME>
```

> **Prerequisites**: Node.js v24+ and [pnpm](https://pnpm.io/) are required.
> Install pnpm with: `npm install -g pnpm`

### 2. Install Dependencies

```bash
pnpm install
```

### 3. Run Development Server

```bash
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

### 4. Build for Production

```bash
pnpm build
```

### 5. Run Tests

```bash
pnpm test:e2e
```

## 🧹 Code Quality

We use **Biome** for fast formatter and linter.

```bash
# Check code issues
pnpm biome:check

# Fix issues automatically
pnpm biome:fix
```
反馈内容错误

看看同类模板

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