ViteReact启动器

varsarr — Vite 启动器模板

作者 altmshfkgudtjr

varsarr 是一个基于 Vite 与 React 的前端启动模板,集成 Axios、Styled-Components、Recoil 与 React-Query,并附带 TypeScript、绝对路径导入、ESLint/Prettier 与 GitHub Actions 配置。

看看你的网站会是什么样

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

1 个预览视图
作者提供的预览
作者提供的预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

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

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

值得关注的模板亮点

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

01

以 Vite + React 为基础,并启用 TypeScript 与绝对路径导入

02

预置 Axios、Styled-Components、Recoil、React-Query 等常用依赖

03

提供 ESLint 与 Prettier 的代码规范配置,面向 VSCode 使用

04

包含 Renovate 依赖更新与 CodeQL 分析的 GitHub Actions 工作流

05

README 提供 degit 复制方式与使用前的检查清单

模板详细介绍

varsarr 是一个 Vite + React 的启动器模板,仓库描述为 “Vite + React + Axios + Styled-Components + Recoil + React-Query Boilerplate”。它把常用的请求库、CSS-in-JS 样式方案、状态管理与服务端状态缓存库预先组合在一起,适合直接作为新前端项目的起点。

模板在 Vite 与 React 基础上启用了 TypeScript 和绝对路径导入(通过 vite-tsconfig-paths),并约定在 VSCode 中使用 ESLint 与 Prettier。仓库还包含 GitHub Actions 工作流,用于依赖自动更新(Renovate)和 CodeQL 安全分析。

README 提供了使用方式:可通过 GitHub 模板功能或 degit 复制仓库(degit 方式会得到空的 git 历史),随后用 npm 或 yarn 安装依赖。README 中的 Check List 列出了使用前需要手动调整的项,包括按需删除 .github 目录、修改 package.json 的 name 字段、修改或删除 LICENSE、更新 index.html 的标题/描述/主题色、调整 vite.config.ts 与 tsconfig 选项、按需修改 src/components/providers 中的 React-Query 配置,以及修改 lib/GlobalStyles.ts 的全局样式。

模板本身不包含业务页面或后端实现,具体功能边界取决于使用者后续添加的代码;仓库未在 README 中说明测试、构建产物或部署相关的额外约定。

ViteReact启动器

适合你的项目吗?

适用场景

  • 需要快速搭建 React 单页应用前端骨架时作为起点
  • 希望项目一开始就具备请求库、样式方案、状态管理与数据缓存库的组合
  • 需要 TypeScript 与绝对路径导入配置的前端项目
  • 希望沿用 ESLint、Prettier 与 GitHub Actions 工作流的团队项目

适合人群

  • 熟悉 React 与 TypeScript 的前端开发者
  • 需要可复制模板而非完整业务应用的团队
  • 接受 Styled-Components 与 Recoil 技术选型的项目
  • 使用 VSCode 并希望统一代码风格的项目

上手与定制指南

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

  1. 1

    可通过 GitHub 模板功能或 npx degit altmshfkgudtjr/varsarr my-app 复制仓库,degit 方式不保留 git 历史

  2. 2

    复制后使用 npm install 或 yarn install 安装依赖

  3. 3

    按 README 检查清单修改 package.json 的 name、index.html 的标题/描述/主题色,以及 LICENSE 文件

  4. 4

    不使用 GitHub Actions 时删除 .github 目录,并按需调整 vite.config.ts、tsconfig 与 React-Query 配置

  5. 5

    全局样式在 lib/GlobalStyles.ts 中修改

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 使用模板时需按检查清单修改或删除仓库自带的 LICENSE 文件,以替换为使用者自己的许可声明。
  • 若不使用 GitHub Actions,需手动删除 .github 目录,否则会保留模板自带的自动化工作流配置。
  • 复制模板后必须修改 package.json 中的 name 字段,避免沿用模板名称。
  • 需手动更新 index.html 中的标题、描述与主题色,模板未提供自动替换。
  • 需按项目需要自行调整 vite.config.ts 与 tsconfig 的配置选项。
  • 全局样式需在 lib/GlobalStyles.ts 中手动修改,模板未提供主题系统。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Modify or delete the `LICENSE` file.

README 原文

If you don't plan to use GitHub Actions, delete the `.github` folder.

README 原文

Change the `name` field in package.json.

README 原文

Change the title, description and theme color in the `index.html`.

README 原文

Change the options in the `vite.config.ts`, `tsconfig.ts` you want.

README 原文

Change the global styles in the `lib/GlobalStyles.ts`

README 原文
https://github.com/altmshfkgudtjr/varsarr/blob/main/LICENSEhttps://github.com/altmshfkgudtjr/varsarr/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2026-06-28
截图检查日期
2026-10-03

目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。

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

查看具体选型方法 →

介绍的制作与核对状态

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

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: f3b1253ee579924dece35e1491a3b8afebb502f1231add6d3c4ec5b4dec57244

2026-10-03T02:47:09.500Z

来源文件 / 仓库
# ⚡️ Varsarr

[![CodeQL workflow](https://github.com/altmshfkgudtjr/varsarr/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/wtchnm/Vitamin/actions/workflows/codeql-analysis.yml/badge.svg) [![Total alerts](https://img.shields.io/lgtm/alerts/g/altmshfkgudtjr/varsarr.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/altmshfkgudtjr/varsarr/alerts/) [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/altmshfkgudtjr/varsarr.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/altmshfkgudtjr/varsarr/context:javascript) [![code style: prettier](https://camo.githubusercontent.com/48a41f43affa2e6253d6a48e0ee662ec53ce13c46442ac815e81d36b6e6b434d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d70726574746965722d6666363962342e737667)](https://github.com/prettier/prettier) [![license](https://camo.githubusercontent.com/45b4ffbd594af47fe09a3432f9f8e122c6518aa6352b4ce453a1a2563da2905c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](https://github.com/wtchnm/Vitamin/blob/main/LICENSE)

Speedy Vite Boilerplate.

![Varsarr](https://user-images.githubusercontent.com/47492535/184534122-93699988-ff25-4ba4-8816-22bcc80324c8.png)

- [Vite](https://vitejs.dev)
- [React](https://reactjs.org)
- [Axios](https://axios-http.com)
- [Styled-Components](https://styled-components.com)
- [Recoil](https://recoiljs.org)
- [React-Query](https://tanstack.com/query/v4/?from=reactQueryV3&original=https://react-query-v3.tanstack.com)

<br />

## Features

- [Vite](https://vitejs.dev/) with [React](https://reactjs.org/), [TypeScript](https://www.typescriptlang.org/) and [absolute imports](https://github.com/aleclarson/vite-tsconfig-paths).
- Use [ESLint](https://eslint.org/) and [Prettier](https://prettier.io/) on VSCode.
- GitHub Actions for automatic [dependency updates(Renovate)](https://renovatebot.com/), [CodeQL Analysis](https://securitylab.github.com/tools/codeql).

<br />

## Getting Started

Use this repository as a [GitHub template](https://github.com/wtchnm/Vitamin/generate) or use [degit](https://github.com/Rich-Harris/degit) to clone to your machine with an empty git history:

```shell
npx degit altmshfkgudtjr/varsarr my-app
```

Then, install the dependencies:

```shell
npm install
```
or
```shell
yarn install
```

<br />

## Check List

- [ ] If you don't plan to use GitHub Actions, delete the `.github` folder.
- [ ] Change the `name` field in package.json.
- [ ] Modify or delete the `LICENSE` file.
- [ ] Change the title, description and theme color in the `index.html`.
- [ ] Change the options in the `vite.config.ts`, `tsconfig.ts` you want.
- [ ] If you want, Change the `React-Query` options in `src/components/providers`.
- [ ] Change the global styles in the `lib/GlobalStyles.ts`

<br />

反馈内容错误

看看同类模板

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