基于 Vite 与 Vue 3,使用 pnpm 作为包管理器
vitesse — Vue 启动器模板
作者 antfu-collective
Vitesse 是一个基于 Vite 与 Vue 3 的强约定启动模板,集成文件路由、组件自动导入、Pinia、UnoCSS、PWA、i18n、SSG 与测试配置,适合快速搭建 SPA 或静态站点。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
文件路由、组件自动导入、API 自动导入与布局系统
内置 Pinia 状态管理、UnoCSS 原子化 CSS 与图标按类名使用
支持 PWA、i18n、Markdown 组件化与 vite-ssg 静态站点生成
集成 TypeScript、Vitest 单元测试与 Cypress E2E 测试
提供 Netlify 零配置部署与 Docker 生产构建说明
模板详细介绍
Vitesse 是 antfu-collective 维护的 Vite + Vue 启动模板,仓库创建于 Vue 3 与 Vite 早期过渡阶段。README 明确说明,如果追求更好的 Vue 开发体验与更一致的维护,官方推荐改用 Nuxt;该模板仍可作为参考,但更新节奏较慢。
模板预设了较完整的工程约定:文件路由、组件自动导入、Pinia 状态管理、布局系统、UnoCSS 原子化 CSS、图标按类名使用、i18n、Markdown 支持、<script setup> 语法、API 自动导入、vite-ssg 静态站点生成、beasties 关键 CSS、TypeScript,以及 Vitest 单元测试与 Cypress E2E 测试。部署方面提供 Netlify 零配置与 Docker 生产构建说明。
使用前需按 README 的清单调整作者名、标题、hostname、favicon,并清理 .github 目录与示例路由。仓库采用 MIT 许可,可免费使用、修改、商用和分发,但演示图片、字体、图标等第三方素材需单独核对许可。
适合你的项目吗?
适用场景
- 快速搭建 Vue 3 单页应用或静态生成站点
- 需要文件路由、自动导入与原子化 CSS 约定的前端项目
- 希望内置 PWA、i18n 与 Markdown 支持的应用原型
- 作为学习 Vite + Vue 工程配置与最佳实践的参考模板
适合人群
- 熟悉 Vue 3 与 Vite 的前端开发者
- 接受强约定、希望减少初始配置工作的个人或团队
- 需要 SPA 或 SSG 输出并计划部署到 Netlify 或 Docker 的项目
- 寻找可参考的 Vue 工程化模板与社区变体入口的开发者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
需要 Node.js 22.22.2+、24.15.0+ 或 26+,并使用 pnpm 安装依赖
- 2
可通过 GitHub Template 创建仓库,或使用 npx degit antfu-collective/vitesse 克隆到本地
- 3
开发运行 pnpm dev 并访问 http://localhost:3333,构建运行 pnpm build 输出到 dist
- 4
使用前按 README 清单修改 LICENSE 作者名、App.vue 标题、vite.config.ts 中的 hostname、public 下的 favicon,并移除 .github 目录与示例路由
- 5
演示图片、字体、图标等第三方素材需按各自许可核对,外部服务可能另外收费
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- README 明确说明该模板创建于 Vue 3 与 Vite 早期过渡阶段,若追求更好的 Vue 开发体验与更一致的维护,官方推荐改用 Nuxt;本模板仅作为参考,更新节奏较慢。
- 使用该模板要求 Node.js 版本为 22.22.2+、24.15.0+ 或 26+,低于此版本的环境无法运行。
- 使用模板时需按清单修改 LICENSE 中的作者名、App.vue 标题、vite.config.ts 的 hostname、public 下的 favicon,并移除 .github 目录与示例路由。
- README 提供的零配置部署方式依赖 Netlify 外部服务,需要 Netlify 账号,可能涉及该服务的条款与费用。
- Docker 生产构建说明依赖本地 Docker 环境,需自行安装并运行 Docker 才能使用该部署方式。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
> **Note**: This template is created during the early transition of Vue 3 and Vite. At this moment, if you are seeking for better Vue developer experience and more consistent maintenance, we recommend using [Nuxt](https://nuxt.com) instead (it also works perfectly with SPA or SSG as needed). This template still serves as a reference, but expect slower updates.
README 原文
> Vitesse requires Node.js 22.22.2+, 24.15.0+, or 26+
README 原文
- [ ] Change the author name in `LICENSE` - [ ] Change the title in `App.vue` - [ ] Change the hostname in `vite.config.ts` - [ ] Change the favicon in `public` - [ ] Remove the `.github` folder which contains the funding info - [ ] Clean up the READMEs and remove routes
README 原文
Go to [Netlify](https://app.netlify.com/start) and select your clone, `OK` along the way, and your App will be live in a minute.
README 原文
https://github.com/antfu-collective/vitesse/blob/main/LICENSEhttps://github.com/antfu-collective/vitesse/blob/main/README.mddocker buildx build . -t vitesse:latest
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-06。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 100 / 100
- 技术栈
- Vue · Vite
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-10-06
- 截图检查日期
- 2026-10-06
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Vue。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-06
查看当时使用的来源资料
SHA-256: 5f813390b0a55c5677c769ae215a39e734abb6fd52e859d5d60fb851cc06c980
2026-10-06T11:29:43.070Z
来源文件 / 仓库<p align='center'> <img src='https://user-images.githubusercontent.com/11247099/154486817-f86b8f20-5463-4122-b6e9-930622e757f2.png' alt='Vitesse - Opinionated Vite Starter Template' width='600'/> </p> <p align='center'> Mocking up web app with <b>Vitesse</b><sup><em>(speed)</em></sup><br> </p> <br> <p align='center'> <a href="https://vitesse.netlify.app/">Live Demo</a> </p> <br> > **Note**: This template is created during the early transition of Vue 3 and Vite. At this moment, if you are seeking for better Vue developer experience and more consistent maintenance, we recommend using [Nuxt](https://nuxt.com) instead (it also works perfectly with SPA or SSG as needed). This template still serves as a reference, but expect slower updates. <br> <p align='center'> <b>English</b> | <a href="https://github.com/antfu-collective/vitesse/blob/main/README.zh-CN.md">简体中文</a> <!-- Contributors: Thanks for getting interested, however we DON'T accept new translations to the README, thanks. --> </p> <br> ## Features - ⚡️ [Vue 3](https://github.com/vuejs/core), [Vite](https://github.com/vitejs/vite), [pnpm](https://pnpm.io/), [Rolldown](https://rolldown.rs/) - born with fastness - 🗂 [File based routing](./src/pages) - 📦 [Components auto importing](./src/components) - 🍍 [State Management via Pinia](https://pinia.vuejs.org/) - 📑 [Layout system](./src/layouts) - 📲 [PWA](https://github.com/antfu/vite-plugin-pwa) - 🎨 [UnoCSS](https://github.com/antfu/unocss) - the instant on-demand atomic CSS engine - 😃 [Use icons from any icon sets with classes](https://github.com/antfu/unocss/tree/main/packages/preset-icons) - 🌍 [I18n ready](./locales) - 🔎 [Component Preview](https://github.com/johnsoncodehk/vite-plugin-vue-component-preview) - 🗒 [Markdown Support](https://github.com/unplugin/unplugin-vue-markdown) - 🔥 Use the [new `<script setup>` syntax](https://github.com/vuejs/rfcs/pull/227) - 📥 [APIs auto importing](https://github.com/antfu/unplugin-auto-import) - use Composition API and others directly - 🖨 Static-site generation (SSG) via [vite-ssg](https://github.com/antfu/vite-ssg) - 🦔 Critical CSS via [beasties](https://github.com/danielroe/beasties) - 🦾 TypeScript, of course - ⚙️ Unit Testing with [Vitest](https://github.com/vitest-dev/vitest), E2E Testing with [Cypress](https://cypress.io/) on [GitHub Actions](https://github.com/features/actions) - ☁️ Deploy on Netlify, zero-config <br> ## Pre-packed ### UI Frameworks - [UnoCSS](https://github.com/antfu/unocss) - The instant on-demand atomic CSS engine. ### Icons - [Iconify](https://iconify.design) - use icons from any icon sets [🔍Icônes](https://icones.netlify.app/) - [Pure CSS Icons via UnoCSS](https://github.com/antfu/unocss/tree/main/packages/preset-icons) ### Plugins - [Vue Router](https://github.com/vuejs/router) - [`unplugin-vue-router`](https://github.com/posva/unplugin-vue-router) - file system based routing - [`vite-plugin-vue-layouts`](https://github.com/JohnCampionJr/vite-plugin-vue-layouts) - layouts for pages - [Pinia](https://pinia.vuejs.org) - Intuitive, type safe, light and flexible Store for Vue using the composition api - [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - components auto import - [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - Directly use Vue Composition API and others without importing - [`vue-macros`](https://github.com/vue-macros/vue-macros) - Explore and extend more macros and syntax sugar to Vue. - [`vite-plugin-pwa`](https://github.com/antfu/vite-plugin-pwa) - PWA - [`unplugin-vue-markdown`](https://github.com/unplugin/unplugin-vue-markdown) - Markdown as components / components in Markdown - [`@shikijs/markdown-exit`](https://github.com/shikijs/shiki) - [Shiki](https://github.com/shikijs/shiki) for syntax highlighting - [Vue I18n](https://github.com/intlify/vue-i18n-next) - Internationalization - [`unplugin-vue-i18n`](https://github.com/intlify/bundle-tools/tree/main/packages/unplugin-vue-i18n) - unplugin for Vue I18n - [VueUse](https://github.com/antfu/vueuse) - collection of useful composition APIs - [`vite-ssg-sitemap`](https://github.com/jbaubree/vite-ssg-sitemap) - Sitemap generator - [`@unhead/vue v2`](https://github.com/unjs/unhead) - manipulate document head reactively - [`vite-plugin-vue-devtools`](https://github.com/vuejs/devtools-next) - Designed to enhance the Vue developer experience. ### Coding Style - Use Composition API with [`<script setup>` SFC syntax](https://github.com/vuejs/rfcs/pull/227) - [ESLint](https://eslint.org/) with [@antfu/eslint-config](https://github.com/antfu/eslint-config), single quotes, no semi. ### Dev tools - [TypeScript](https://www.typescriptlang.org/) - [Vitest](https://github.com/vitest-dev/vitest) - Unit testing powered by Vite - [Cypress](https://cypress.io/) - E2E testing - [pnpm](https://pnpm.js.org/) - fast, disk space efficient package manager - [`vite-ssg`](https://github.com/antfu/vite-ssg) - Static-site generation - [beasties](https://github.com/danielroe/beasties) - Critical CSS - [Netlify](https://www.netlify.com/) - zero-config deployment - [VS Code Extensions](./.vscode/extensions.json) - [Vite](https://marketplace.visualstudio.com/items?itemName=antfu.vite) - Fire up Vite server automatically - [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) - Vue 3 `<script setup>` IDE support - [Iconify IntelliSense](https://marketplace.visualstudio.com/items?itemName=antfu.iconify) - Icon inline display and autocomplete - [i18n Ally](https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally) - All in one i18n support - [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) ## Variations As this template is strongly opinionated, the following provides a curated list for community-maintained variations with different preferences and feature sets. Check them out as well. PR to add yours is also welcome! ###### Official - [vitesse-lite](https://github.com/antfu/vitesse-lite) - Lightweight version of Vitesse - [vitesse-nuxt3](https://github.com/antfu/vitesse-nuxt3) - Vitesse for Nuxt 3 - [vitesse-nuxt-bridge](https://github.com/antfu/vitesse-nuxt-bridge) - Vitesse for Nuxt 2 with Bridge - [vitesse-webext](https://github.com/antfu/vitesse-webext) - WebExtension Vite starter template ###### Community - [vitesse-ssr-template](https://github.com/frandiox/vitesse-ssr-template) by [@frandiox](https://github.com/frandiox) - Vitesse with SSR - [vitailse](https://github.com/zynth17/vitailse) by [@zynth17](https://github.com/zynth17) - Like Vitesse but with TailwindCSS - [vitesse-modernized-chrome-ext](https://github.com/xiaoluoboding/vitesse-modernized-chrome-ext) by [@xiaoluoboding](https://github.com/xiaoluoboding) - ⚡️ Modernized Chrome Extension Manifest V3 Vite Starter Template - [vitesse-stackter-clean-architect](https://github.com/shamscorner/vitesse-stackter-clean-architect) by [@shamscorner](https://github.com/shamscorner) - A modular clean architecture pattern in vitesse template - [vitesse-enterprise](https://github.com/FranciscoKloganB/vitesse-enterprise) by [@FranciscoKloganB](https://github.com/FranciscoKloganB) - Consistent coding styles regardless of team-size. - [vitecamp](https://github.com/nekobc1998923/vitecamp) by [@nekobc1998923](https://github.com/nekobc1998923) - Like Vitesse but without SSG/SSR/File based routing, includes Element Plus - [vitesse-h5](https://github.com/YunYouJun/vitesse-h5) by [@YunYouJun](https://github.com/YunYouJun) - Vitesse for Mobile - [bat](https://github.com/olgam4/bat) by [@olgam4](https://github.com/olgam4) - Vitesse for SolidJS - [vitesse-solid](https://github.com/xbmlz/vitesse-solid) by [@xbmlz](https://github.com/xbmlz) - Vitesse for SolidJS, build with [`SolidStart`](https://start.solidjs.com/), includes [UnoCSS](https://github.com/unocss/unocss). - [vue3-vant-mobile](https://github.com/easy-temps/vue3-vant-mobile) by [CharleeWa](https://github.com/CharleeWa) - Like Vitesse but without SSG/SSR, includes Vant ## Try it now! > Vitesse requires Node.js 22.22.2+, 24.15.0+, or 26+ ### GitHub Template [Create a repo from this template on GitHub](https://github.com/antfu-collective/vitesse/generate). ### Clone to local If you prefer to do it manually with the cleaner git history ```bash npx degit antfu-collective/vitesse my-vitesse-app cd my-vitesse-app pnpm i # If you don't have pnpm installed, run: npm install -g pnpm ``` ## Checklist When you use this template, try follow the checklist to update your info properly - [ ] Change the author name in `LICENSE` - [ ] Change the title in `App.vue` - [ ] Change the hostname in `vite.config.ts` - [ ] Change the favicon in `public` - [ ] Remove the `.github` folder which contains the funding info - [ ] Clean up the READMEs and remove routes And, enjoy :) ## Usage ### Development Just run and visit http://localhost:3333 ```bash pnpm dev ``` ### Build To build the App, run ```bash pnpm build ``` And you will see the generated file in `dist` that ready to be served. ### Deploy on Netlify Go to [Netlify](https://app.netlify.com/start) and select your clone, `OK` along the way, and your App will be live in a minute. ### Docker Production Build First, build the vitesse image by opening the terminal in the project's root directory. ```bash docker buildx build . -t vitesse:latest ``` Run the image and specify port mapping with the `-p` flag. ```bash docker run --rm -it -p 8080:80 vitesse:latest ``` ## Why I have created several Vite 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. It's strongly opinionated, but feel free to tweak it or even maintain your own forks. [(see community maintained variation forks)](#variations)
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

vitesse-webext
⚡️ WebExtension Vite Starter Template
Vue · 启动器

laravel-vue-spa
A Laravel-Vue SPA starter kit.
Vue · 启动器

vue3-h5-template
vue3-h5-template 是一个面向移动端 H5 项目的启动模板,基于 Vue3、Vite 和 Vant4 构建,同时集成了 TypeScript、Tailwindcss、Pinia、Vue-router 等常用…
Vue · 启动器

tov-template
vite + vue3 + ts 开箱即用现代开发模板 | vite + vue3 + ts out-of-the-box modern development template
Vue · 启动器

shadcn-vue-landing-page
New design 🎉 Vue + Shadcn-vue + TypeScript + Tailwind. Landing page template ease-to-use
Vue · 企业官网

vite-ts-tailwind-starter
Opinionated Vite + Vue 3 + TypeScript + Tailwind CSS starter template w/ tests and CI.
Vue · 启动器
