ViteReact启动器

vital — Vite 启动器模板

作者 jvidalv

Vital 是一个基于 Vite 的 React 前端起步模板,集成 TypeScript、Tailwind CSS、原子化设计目录结构、Hero Icons 与代码质量工具,并支持 Netlify 和 Vercel 零配置部署。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

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

值得关注的模板亮点

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

01

基于 Vite 构建,使用 React 与 TypeScript 开发组件

02

集成 Tailwind CSS 与 Hero Icons 图标库

03

采用原子化设计组织组件目录,并配置路径别名

04

内置 Oxlint、Oxfmt、Commitlint 与 lint-staged 配置

05

提供 CLAUDE.md、AGENTS.md、BUGBOT.md 等 LLM 辅助文档

06

README 说明可在 Netlify 或 Vercel 上零配置部署

模板详细介绍

Vital 是面向 React 应用的起步模板,README 将其定位为快速搭建 Web 应用原型的脚手架。技术栈方面,模板使用 Vite 作为前端构建工具、React 与 TypeScript 提供组件与类型支持、Tailwind CSS 负责样式,并采用原子化设计(Atomic Design)组织组件目录,同时配置了路径别名以简化导入。图标使用 Hero Icons。

代码质量工具包括 Oxlint(含 React 规则)、Oxfmt 格式化器、Commitlint 提交信息校验以及 lint-staged(README 说明已包含配置但未安装 git hook)。模板还提供 CLAUDE.md、AGENTS.md、BUGBOT.md 等面向 LLM 的辅助文档。

使用前需 Node.js 22.22.1 或更新版本以及 Yarn 1。可通过 GitHub 模板生成仓库,或用 npx degit 克隆到本地后执行 yarn 安装。开发命令为 yarn dev(默认 http://localhost:3000/),构建命令为 yarn build,产物输出到 dist。部署方面,README 说明 Netlify 和 Vercel 可自动识别 Vite 项目并配置构建命令、输出目录与安装命令。

README 未提供路由、状态管理、测试框架、国际化或服务端渲染等能力的说明,也未描述模板的性能表现或生产环境适用性。

ViteReact启动器

适合你的项目吗?

适用场景

  • 快速启动一个 React 单页应用原型
  • 需要 Tailwind CSS 与原子化组件目录结构的新项目
  • 希望使用 Vite 构建并部署到 Netlify 或 Vercel 的前端项目
  • 需要统一代码检查、格式化与提交信息规范的团队脚手架

适合人群

  • 使用 React 与 TypeScript 开发前端应用的开发者
  • 偏好 Vite 构建工具与 Tailwind CSS 的项目
  • 需要原子化设计目录结构与路径别名的代码库
  • 计划部署到 Netlify 或 Vercel 的前端项目

上手与定制指南

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

  1. 1

    需要 Node.js 22.22.1 或更新版本,以及 Yarn 1

  2. 2

    可通过 GitHub 模板生成仓库,或运行 npx degit jvidalv/vital my-vital-app 克隆到本地

  3. 3

    安装依赖执行 yarn,开发运行 yarn dev(默认 http://localhost:3000/)

  4. 4

    构建执行 yarn build,产物输出到 dist 目录

  5. 5

    使用模板后按 README 清单修改 package.json 的 name 与 author、LICENSE 作者、index.html 标题、public 下的 favicon 与 manifest,并清理 README

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 运行环境要求:需要 Node.js 22.22.1 或更新版本,并使用 Yarn 1 作为包管理器。
  • lint-staged 仅包含配置,未安装 git hook,需自行配置才能自动在提交时运行。
  • 部署到 Netlify 需使用其托管服务并授权访问仓库,属于外部服务依赖。
  • 部署到 Vercel 需使用其托管服务并授权访问仓库,属于外部服务依赖。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Requires Node.js 22.22.1 or newer and Yarn 1.

README 原文

- [lint-staged](https://github.com/lint-staged/lint-staged) - Run linters on git staged files (config included, no git hook installed)

README 原文

Go to [Netlify](https://app.netlify.com/start) and select your repository, `OK` along the way, and your App will be live in a minute.

README 原文

Go to [Vercel](https://vercel.com/new) and select your repository, Vercel will detect Vite automatically and configure the build settings for you. Your App will be live in a minute.

README 原文
https://github.com/jvidalv/vital/blob/main/LICENSEhttps://github.com/jvidalv/vital/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2026-09-26
截图检查日期
2026-10-08

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

审核声明: codex-user-requested-batch-review-20261017 · 2026-10-16

查看当时使用的来源资料

SHA-256: 65f3cf3da308c531a6bdf4fa6f32fd2bf13271752db14573650e0a657bff4626

2026-10-08T12:40:41.477Z

来源文件 / 仓库
<p align='center'>
  <img src='https://i.imgur.com/KVmyXyo.png' alt='Vital - Vite Starter Template' width='600'/>
</p>

<p align='center'>
Mocking up web app with <b>Vital</b><sup><em>(speed)</em></sup><br>
</p>

<br>

<p align='center'>
<a href="https://vital.josepvidal.dev">Live Demo</a>
</p>

<br>

## Features

- ⚡️ [Vite 8](https://vite.dev/) - Next generation frontend tooling
- ⚛️ [React 19](https://react.dev/) - Latest version with improved performance
- 🦾 [TypeScript 7](https://www.typescriptlang.org/) - Strongly typed JavaScript, with the native compiler
- 🎨 [Tailwind CSS v4](https://tailwindcss.com/) - Latest utility-first CSS framework with CSS-based config
- 👑 [Atomic Design organization](https://bradfrost.com/blog/post/atomic-web-design/) - Component architecture
- 🗂 [Path aliases](https://github.com/vitejs/vite/issues/88#issuecomment-762415200) - Clean imports
- 😃 [Hero Icons](https://heroicons.com/) - Beautiful hand-crafted SVG icons
- 🤖 **LLM-ready** - Comprehensive AI assistance docs ([CLAUDE.md](CLAUDE.md), [AGENTS.md](AGENTS.md), [BUGBOT.md](BUGBOT.md))
- ☁️ Deploy on Netlify or Vercel, zero-config

### Code Quality

- [Oxlint](https://oxc.rs/docs/guide/usage/linter.html) - Fast linter for JavaScript/TypeScript, with React rules
- [Oxfmt](https://oxc.rs/docs/guide/usage/formatter.html) - Prettier-compatible code formatter
- [Commitlint](https://commitlint.js.org/) - Lint commit messages
- [lint-staged](https://github.com/lint-staged/lint-staged) - Run linters on git staged files (config included, no git hook installed)

### Dev Tools

- [TypeScript](https://www.typescriptlang.org/) - Type safety
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react) - Official React plugin for Vite
- [PostCSS](https://postcss.org/) - Transform CSS with JavaScript
- [Netlify](https://www.netlify.com/) / [Vercel](https://vercel.com/) - Zero-config deployment

## Try it now!

Requires Node.js 22.22.1 or newer and Yarn 1.

### GitHub Template

[Create a repo from this template on GitHub](https://github.com/jvidalv/vital/generate).

### Clone to local

If you prefer to do it manually with the cleaner git history

```bash
npx degit jvidalv/vital my-vital-app
cd my-vital-app
yarn # If you don't have yarn installed, run: npm install -g yarn
```

## Checklist

When you use this template, try follow the checklist to update your info properly

- [ ] Rename `name` and `author` fields in `package.json`
- [ ] Change the author name in `LICENSE`
- [ ] Change the title in `index.html`
- [ ] Change the favicon in `public`
- [ ] Modify the manifest in `public`
- [ ] Clean up the README's

And, enjoy :)

## Usage

### Development

Just run and visit http://localhost:3000/

```bash
yarn dev
```

### Build

To build the App, run

```bash
yarn build
```

And you will see the generated file in `dist` that ready to be served.

### Lint & Format

```bash
yarn lint          # Oxlint, fails on any finding
yarn lint:fix      # Oxlint with auto-fix
yarn format        # Format everything with Oxfmt
yarn format:check  # Check formatting without writing
```

## Deployment

### Deploy on Netlify

Go to [Netlify](https://app.netlify.com/start) and select your repository, `OK` along the way, and your App will be live in a minute.

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/jvidalv/vital)

### Deploy on Vercel

Go to [Vercel](https://vercel.com/new) and select your repository, Vercel will detect Vite automatically and configure the build settings for you. Your App will be live in a minute.

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

**Note:** Both platforms automatically detect Vite projects and configure:

- **Build Command**: `yarn build`
- **Output Directory**: `dist`
- **Install Command**: `yarn install`

## Why

I have created several React apps recently. Setting the configs up is kinda the bottleneck for me to make the ideas simply come true within a very short time.

So I made this starter template for myself to create apps more easily, along with some good practices that I have learned from making those apps. Feel free to tweak it or even maintains your own forks.
反馈内容错误

看看同类模板

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