Skip to content
项目

关于

功能丰富的模板和基础代码,可用于初始化配置了 Chakra UI 和 TypeScript 的 Next.js 应用 ✨

网站与应用开发

这些数字如何统计

可以做什么

  • Framework: Next.js 16 (App Router)
  • UI Library: Chakra UI v3
  • Styling Engine: Emotion (via Chakra UI) + next-themes
  • Language: TypeScript 5

实测星标增长

24小时
0
7天
-1
15天
-2
1个月
-3

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

nextarter-chakra

Deploy with Vercel Deploy to Netlify Deploy on Railway

Open in StackBlitz

This is a Next.js project bootstrapped with create-next-app, added with Chakra UI and TypeScript setup.
Start developing right away!

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

🚀 Features

🏗 System Architecture

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

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:

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. Install Dependencies

This project uses pnpm.

pnpm install

2. Run Development Server

pnpm dev

Open http://localhost:3000 to view it in the browser.

3. Build for Production

pnpm build

4. Run Tests

pnpm test:e2e

🧹 Code Quality

We use Biome for fast formatter and linter.

# Check code issues
pnpm biome:check

# Fix issues automatically
pnpm biome:fix

探索相关项目

加载中…