VueVite启动器

vitessedge-template — Vue 启动器模板

作者 frandiox

基于 Vue 与 Vite 的 SSR 启动模板,通过 Vitedge 将全栈应用部署到 Cloudflare Workers,并预置文件路由、组件自动导入、布局、PWA、Windi CSS、图标、i18n 与 Markdown 等能力。

看看你的网站会是什么样

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

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

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

全部页面与视图 3

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

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

值得关注的模板亮点

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

01

通过 Vitedge 在 Cloudflare Workers 上实现边缘侧 SSR,并支持边缘缓存与 HTTP/2 服务器推送

02

基于文件系统的路由(src/pages)与布局系统(src/layouts),组件自动导入

03

预置 PWA、Windi CSS、Iconify 图标、Vue I18n(按语言区分路由)与 Markdown 支持

04

使用 <script setup> 与 TypeScript,并配置 ESLint(单引号、无分号)

05

提供 SSR 与 SPA 两种开发模式,以及 Wrangler 本地预览与部署脚本

模板详细介绍

vitessedge-template 是一个面向 Cloudflare Workers 的 Vue + Vite 全栈 SSR 启动模板,基于 @antfu 的 Vitesse 改造,使用 Vitedge 在边缘侧完成服务端渲染,并支持边缘缓存与 HTTP/2 服务器推送。模板采用文件系统路由(src/pages)、组件自动导入(src/components)与布局系统(src/layouts),同时集成 PWA、Windi CSS、Iconify 图标、Vue I18n(每种语言对应不同路由)以及 Markdown 支持,开发时使用 <script setup> 与 TypeScript。

仓库定位为强约定(opinionated)的启动器,作者在 README 中说明这是为自己快速创建 Vite 应用而整理,并列出社区维护的变体(如 vitesse-lite、vitesse-addons)供不同偏好参考。模板提供 GitHub Template 与 degit 两种使用方式,并附带使用清单,提醒使用者重命名 package.json 的 name、修改 LICENSE 作者、调整 index.html 标题与 favicon、移除 .github 目录并清理 README 与路由。

开发命令区分 SSR 与 SPA 两种模式(npm run dev 与 npm run dev:spa),构建产物输出到 dist,部分文件会被移动到 serverless 用于部署。部署到 Cloudflare Workers 需要 Cloudflare 账号与 Wrangler CLI,并修改 worker-site/wrangler.toml 中的 account_id,随后可用 npm run preview 在本地模拟 Worker 环境、用 npm run deploy 发布。仓库采用 MIT 许可,允许免费使用、修改、商用与分发,但演示图片、字体、图标等第三方素材以及域名、托管等外部服务需另行核对许可与费用。

VueVite启动器

适合你的项目吗?

适用场景

  • 需要将 Vue 全栈 SSR 应用部署到 Cloudflare Workers 的项目
  • 希望以文件路由、组件自动导入和布局系统快速搭建 Vue 应用结构
  • 需要多语言路由、Markdown 内容或 PWA 能力的站点起步
  • 作为个人或团队在 Vite 生态中统一开发约定的起始仓库

适合人群

  • 熟悉 Vue 3、Vite 与 TypeScript 的前端开发者
  • 计划使用 Cloudflare Workers 作为部署目标的团队
  • 接受强约定配置、希望减少初始搭建工作量的项目

上手与定制指南

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

  1. 1

    可通过 GitHub Template 创建仓库,或使用 npx degit frandiox/vitessedge-template my-vitesse-app 克隆到本地后执行 npm i

  2. 2

    开发时运行 npm run dev 启用 SSR,或运行 npm run dev:spa 以 SPA 模式启动,默认访问 http://localhost:3333

  3. 3

    构建执行 npm run build,产物输出到 dist,部分文件会移动到 serverless 用于部署

  4. 4

    部署到 Cloudflare Workers 前需创建 Cloudflare 账号、安装 Wrangler CLI,并修改 worker-site/wrangler.toml 中的 account_id

  5. 5

    使用模板后按清单更新 package.json 的 name、LICENSE 作者、index.html 标题与 favicon,并移除 .github 目录、清理 README 与路由

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 部署到 Cloudflare Workers 需要注册 Cloudflare 账号,属于外部服务依赖,可能涉及服务条款与费用。
  • 部署流程要求安装 Wrangler CLI 工具,属于额外的外部开发依赖。
  • 部署前必须修改 wrangler.toml 中的 account_id,绑定到自己的 Cloudflare 账号。
  • 使用模板时需按清单将 LICENSE 中的作者名改为自己的信息,以符合署名与版权声明要求。
  • 使用模板时应移除包含资助信息的 .github 目录,避免保留原作者的赞助配置。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

1. Create your [Cloudflare](https://www.cloudflare.com/) account.

README 原文

2. Install [Wrangler](https://developers.cloudflare.com/workers/cli-wrangler/install-update) CLI.

README 原文

3. Modify the `account_id` in [wrangler.toml](./worker-site/wrangler.toml). Then:

README 原文

- [ ] Change the author name in `LICENSE`

README 原文

- [ ] Remove the `.github` folder which contains the funding info

README 原文
https://github.com/frandiox/vitessedge-template/blob/master/LICENSEhttps://github.com/frandiox/vitessedge-template/blob/master/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: bbea0422e97c0ef7b4619c2353a6f062446b6ef252f37a2fba5cefbb164b4afe

2026-10-02T11:40:57.323Z

来源文件 / 仓库
# Vitessedge

<p align="center">
  <img width="500" src="./logo.png" alt="Vitessedge">
</p>

<p align="center">
Deploy your fullstack SSR apps to Cloudflare Workers using <a href="https://github.com/frandiox/vitedge">Vitedge</a>.
</p>

<p align='center'>
<a href="https://vitessedge.zable.workers.dev/">Live Demo</a>
</p>

> Vue + Vite + SSR template based on [@antfu](https://github.com/antfu)'s [Vitesse](https://github.com/antfu/vitesse)

## Features

- ⚡️ [Vue 3](https://github.com/vuejs/vue-next), [Vite 2](https://github.com/vitejs/vite), [ESBuild](https://github.com/evanw/esbuild) - born with fastness

- ⚔️ Edge-side rendering in Cloudflare Workers via [Vitedge](https://github.com/frandiox/vitedge), with edge cache and HTTP/2 server push

- 🗂 [File based routing](./src/pages)

- 📦 [Components auto importing](./src/components)

- 📑 [Layout system](./src/layouts)

- 📲 [PWA](https://github.com/antfu/vite-plugin-pwa)

- 🎨 [Windi CSS](https://github.com/windicss/windicss) - on-demand Tailwind CSS with speed

- 😃 [Use icons from any icon sets, with no compromise](./src/components)

- 🌍 [I18n ready](./src/i18n/translations) with different routes for each language.

- 🗒 [Markdown Support](https://github.com/antfu/vite-plugin-md)

- 🔥 Use the [new `<script setup>` style](https://github.com/vuejs/rfcs/pull/227)

- 🦾 TypeScript, of course

- ☁️ Deploy on Cloudflare Workers, minimal [setup](./worker-site/index.js)

<br>

## Pre-packed

### UI Frameworks

- [Windi CSS](https://github.com/windicss/windicss) (On-demand [TailwindCSS](https://tailwindcss.com/)) - lighter and faster, with a bundle additional features!
  - [Windi CSS Typography](https://windicss.netlify.app/guide/plugins.html#typography) - similar to [Tailwind CSS Typography](https://github.com/tailwindlabs/tailwindcss-typograph) but for Windi CSS

### Icons

- [Iconify](https://iconify.design) - use icons from any icon sets [🔍Icônes](https://icones.netlify.app/)
- [`vite-plugin-icons`](https://github.com/antfu/vite-plugin-icons) - icons as Vue components

### Plugins

- [Vue Router](https://github.com/vuejs/vue-router)
  - [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) - file system based routing
  - [`vite-plugin-vue-layouts`](https://github.com/JohnCampionJr/vite-plugin-vue-layouts) - layouts for pages
- [`vite-plugin-components`](https://github.com/antfu/vite-plugin-components) - components auto import
- [`vite-plugin-pwa`](https://github.com/antfu/vite-plugin-pwa) - PWA
- [`vite-plugin-windicss`](https://github.com/antfu/vite-plugin-windicss) - WindiCSS support
- [`vite-plugin-md`](https://github.com/antfu/vite-plugin-md) - Markdown as components / components in Markdown
  - [`markdown-it-prism`](https://github.com/jGleitz/markdown-it-prism) - [Prism](https://prismjs.com/) for syntax highlighting
  - [`prism-theme-vars`](https://github.com/antfu/prism-theme-vars) - customizable Prism.js theme using CSS variables
- [Vue I18n](https://github.com/intlify/vue-i18n-next) - Internationalization
  - [`vite-plugin-vue-i18n`](https://github.com/intlify/vite-plugin-vue-i18n) - Vite plugin for Vue I18n
- [VueUse](https://github.com/antfu/vueuse) - collection of useful composition APIs
- [`@vueuse/head`](https://github.com/vueuse/head) - manipulate document head reactively

### Coding Style

- Use Composition API with [`<script setup>` SFC](https://github.com/vuejs/rfcs/pull/227)
- [ESLint](https://eslint.org/) with [@antfu/eslint-config-vue](https://github.com/antfu/eslint-config), single quotes, no semi.

### Dev tools

- [TypeScript](https://www.typescriptlang.org/)
- [Vitedge](https://github.com/frandiox/vitedge) - Edge-side rendering
- [Wrangler](https://developers.cloudflare.com/workers/cli-wrangler/install-update) - deploy to Cloudflare Workers
- [VS Code Extensions](./.vscode/extensions.json)
  - [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
  - [Iconify IntelliSense](https://marketplace.visualstudio.com/items?itemName=antfu.iconify)
  - [i18n Ally](https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally)
  - [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 are also welcome!

- [vitesse-lite](https://github.com/kn0wn/vitesse-lite) by [@kn0wn](https://github.com/kn0wn)
- [vitesse-addons](https://github.com/JohnCampionJr/vitesse-addons) by [johncampionjr](https://github.com/johncampionjr) - additional options for integrations, including [Prettier](https://prettier.io) and [Storybook](https://storybook.js.org)

## Try it now!

### GitHub Template

[Create a repo from this template on GitHub](https://github.com/frandiox/vitessedge-template/generate).

### Clone to local

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

```bash
npx degit frandiox/vitessedge-template my-vitesse-app
cd my-vitesse-app
npm i
```

## Checklist

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

- [ ] Rename `name` field in `package.json`
- [ ] Change the author name in `LICENSE`
- [ ] Change the title in `index.html`
- [ ] 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
npm run dev # SSR development
npm run dev:spa # SPA without SSR
```

### Build

To build the App, run

```bash
npm run build
```

And you will see the generated files in `dist`, and some of these files will be moved to `serverless` for deployment.

### Deploy on Cloudflare Workers

1. Create your [Cloudflare](https://www.cloudflare.com/) account.
2. Install [Wrangler](https://developers.cloudflare.com/workers/cli-wrangler/install-update) CLI.
3. Modify the `account_id` in [wrangler.toml](./worker-site/wrangler.toml). Then:

```bash
npm run preview # Simulate Worker environment locally
npm run deploy
```

## 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 maintains your own forks. [(see community maintained variation forks)](#variations)
反馈内容错误

看看同类模板

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