ViteReact启动器

quiver — Vite 启动器模板

作者 go4cas

Quiver 是一个基于 Arrow.js 与 Vite 的启动模板,包含文件路由、布局、响应式状态、composables 和 Vitest/Playwright 测试配置,并附带面向 Claude Code、Codex、Copilot 的 AI 上下文文件与斜杠命令。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

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

值得关注的模板亮点

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

01

基于 Arrow.js 与 Vite 的启动模板,样式使用 Tailwind CSS v4

02

内置文件式路由、页面布局、响应式状态模块与 composables

03

提供 Vitest 单元测试与 Playwright 端到端测试配置

04

附带 AGENTS.md、CLAUDE.md 及 8 个 Claude Code 斜杠命令辅助 AI 开发

05

脚本涵盖开发、构建、预览、测试、JSDoc 类型检查与文档站点

06

路由基于 Navigation API,README 列明浏览器最低版本要求

模板详细介绍

Quiver 是面向 Arrow.js 的起步模板,技术栈为 Arrow.js、Vite、Tailwind CSS v4、Vitest 与 Playwright。README 说明其提供文件式路由、页面布局、响应式状态模块、composables 以及单元测试与端到端测试的完整配置,并附带 AGENTS.md、CLAUDE.md 和一组 Claude Code 斜杠命令(如 /add-page、/add-layout、/add-component、/add-state、/add-composable、/add-theme、/add-feature、/add-test),用于辅助 AI 编程。

项目结构将框架内部(router、DI、store、应用引导)放在 src/framework,业务代码按 pages、layouts、components、state、composables、utils 分目录;测试分 tests/framework、tests/composables 与 tests/e2e。脚本覆盖开发服务器、生产构建、本地预览、单元测试、E2E 测试、基于 JSDoc 的类型检查以及文档站点的开发与构建。

使用前需注意:README 要求 Bun 1.4+,或 Node.js 22.12+ 配合 npm 且不使用锁文件;路由基于 Navigation API,浏览器支持范围为 Chrome/Edge 102+、Safari 26.2+、Firefox 147+。README 未说明该模板的生产就绪程度、性能表现或除上述浏览器之外的环境兼容性。

ViteReact启动器

适合你的项目吗?

适用场景

  • 以 Arrow.js 开始新前端项目并需要路由、布局与状态基础结构
  • 希望项目自带单元测试与 E2E 测试脚手架
  • 使用 Claude Code、Codex 或 GitHub Copilot 进行 AI 辅助开发,需要统一上下文文件
  • 需要按 pages、layouts、components、state、composables 分层组织代码

适合人群

  • 熟悉 JavaScript 与 Vite 的前端开发者
  • 计划使用 Arrow.js 构建单页应用并需要起步结构的团队
  • 希望借助斜杠命令与上下文文件规范 AI 辅助编码流程的开发者

上手与定制指南

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

  1. 1

    环境要求:Bun 1.4+,或 Node.js 22.12+ 配合 npm 且不使用锁文件

  2. 2

    可通过 bunx degit go4cas/quiver my-app 拉取模板,再执行 bun install 与 bun run dev

  3. 3

    也可在 GitHub 上点击 Use this template 或直接克隆仓库

  4. 4

    开发服务器默认地址为 http://localhost:5173

  5. 5

    浏览器需支持 Navigation API:Chrome/Edge 102+、Safari 26.2+、Firefox 147+

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 运行环境要求 Bun 1.4+,或 Node.js 22.12+ 配合 npm 且不使用锁文件。
  • 路由基于 Navigation API,浏览器需 Chrome/Edge 102+、Safari 26.2+、Firefox 147+。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

**Prerequisites:** [Bun](https://bun.com) 1.4+ (or Node.js 22.12+ with npm, without a lockfile)

README 原文

**Browser support:** the router is built on the [Navigation API](https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API) — Chrome/Edge 102+, Safari 26.2+, Firefox 147+.

README 原文
https://github.com/go4cas/quiver/blob/main/LICENSEhttps://github.com/go4cas/quiver/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2026-10-11
截图检查日期
2026-10-17

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

审核声明: codex-user-requested-batch-review-20261018 · 2026-10-18

查看当时使用的来源资料

SHA-256: 61627c6036bc3655fd0551a5973e5931999b468d59e11b58508a89cb19f2cf59

2026-10-17T10:38:58.864Z

来源文件 / 仓库
<img src="docs/public/logo.svg" alt="Quiver" height="96">

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/go4cas/quiver)

An [Arrow.js](https://arrow-js.com) starter template with file-based routing, layouts, reactive state, composables, and a full testing setup — built for AI-assisted development, with context files and slash commands for Claude Code, Codex, and Copilot included.

**Stack:** Arrow.js · Vite · Tailwind CSS v4 · Vitest · Playwright

---

## Getting started

**Prerequisites:** [Bun](https://bun.com) 1.4+ (or Node.js 22.12+ with npm, without a lockfile)

```bash
bunx degit go4cas/quiver my-app
cd my-app
bun install
bun run dev
```

Open [http://localhost:5173](http://localhost:5173). You can also click **Use this template** on GitHub, or clone the repository directly.

**Browser support:** the router is built on the [Navigation API](https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API) — Chrome/Edge 102+, Safari 26.2+, Firefox 147+.

---

## AI tooling

Quiver ships with context files and Claude Code slash commands that make AI assistants immediately productive in this codebase:

- **`AGENTS.md`** — the single source of truth, read directly by Codex and GitHub Copilot: conventions, Arrow.js rules, composables, theming, folder structure
- **`CLAUDE.md`** — loaded automatically by Claude Code; imports `AGENTS.md` so every tool shares one context
- **`/add-page`**, **`/add-layout`**, **`/add-component`**, **`/add-state`**, **`/add-composable`**, **`/add-theme`**, **`/add-feature`**, **`/add-test`** — Claude Code slash commands for the most common tasks

See the [AI Tooling guide](docs/guide/ai.md) for usage examples.

---

## Scripts

| Command                | Description                          |
| ---------------------- | ------------------------------------ |
| `bun run dev`          | Start the Vite dev server            |
| `bun run build`        | Production build to `dist/`          |
| `bun run preview`      | Preview the production build locally |
| `bun run test`             | Run unit tests once (Vitest)         |
| `bun run test:watch`   | Run unit tests in watch mode         |
| `bun run test:e2e`     | Run end-to-end tests (Playwright)    |
| `bun run typecheck`    | Type-check `src/` via JSDoc (tsc)    |
| `bun run docs:dev`     | Start the documentation site locally |
| `bun run docs:build`   | Build the documentation site         |
| `bun run docs:preview` | Preview the built documentation site |

---

## Folder structure

```
src/
├── framework/       # Router, DI, store, app bootstrap — framework internals
├── pages/           # File-based routes — add your pages here
├── layouts/         # Page wrapper components — add your layouts here
├── components/      # Reusable UI components — add your components here
├── state/           # Global reactive state modules — add your stores here
├── composables/     # Reusable logic functions — add your composables here
├── utils/           # Pure helper functions
└── main.js          # App entry point

tests/
├── framework/       # Unit tests for framework utilities (Vitest)
├── composables/     # Unit tests for composables (Vitest)
└── e2e/             # End-to-end tests (Playwright)
```

---

## Documentation

### Developer guide

- [Getting started](docs/guide/getting-started.md) — what to add, what to leave alone
- [Why Quiver](docs/guide/why-quiver.md) — an honest comparison with the alternatives
- [Feature workflow](docs/guide/workflow.md) — step-by-step walkthrough for adding a feature
- [Getting started](docs/guide/getting-started.md) — install, scripts, folder structure, createApp
- [Components](docs/guide/components.md) — component(), local state, built-in components
- [Routing](docs/guide/routing.md) — file-based routing, guards, useMeta, router API
- [Layouts](docs/guide/layouts.md) — page layouts, DI keys, creating new layouts
- [State](docs/guide/state.md) — reactive() stores, built-in state modules
- [Composables](docs/guide/composables.md) — useRoute, useRouter, useForm, useFetch, useToast, provide/inject
- [Testing](docs/guide/testing.md) — unit tests and E2E tests
- [Troubleshooting](docs/guide/troubleshooting.md) — common gotchas and their fixes

---

## Contributing

Bug reports, fixes, and documentation improvements are welcome. Please read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a PR.

---

## Licence

MIT
反馈内容错误

看看同类模板

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