Skip to content
项目

关于

极速 Vue.js 工具链,包含编译器、代码检查器、类型检查器、格式化工具、LSP、Story 系统和编辑器。目前已有 3.7 万多个测试。

编程语言与运行时

这些数字如何统计

实测星标增长

24小时
+1
7天
+6
15天
+12
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Vize

High-Performance Vue.js Toolchain in Rust

/viːz/: Named after Vizier + Visor + Advisor, a wise tool that sees through your code.

Documentation ・ Playground ・ Sponsor

Real World Testing — Wanted

▶ Watch the Real World Testing PV

[!WARNING] Vize is experimental and in its Real World Testing phase — not a completely production-ready toolchain yet. Breaking changes and behavior that diverges from Vue are expected. Review the stability guide, production-readiness checklist, and support policy before adopting it.

What Is Vize?

Vize is a Rust-native toolchain for Vue. One shared parser powers compilation, linting, type-checking, formatting, and editor tooling, so the Vue workflow runs on the same core instead of a patchwork of disconnected tools.

It plugs into the tools you already use: @vizejs/vite-plugin for Vite, @vizejs/nuxt for Nuxt, the vize package for project scripts, oxlint-plugin-vize for Oxlint, and @vizejs/vite-plugin-musea for the component gallery.

Benchmarks

SFC compile (15,000 files): 46.3× faster; Lint (15,000 files): 218.9× faster; Vite build (1,000 files): 2.7× faster. Source build measured on synthetic Linux workloads, Vize max versus each recorded default/single-thread baseline, at 70da12bb7dab (2026-12-02).

Slower in this run: Vite dev: component edit, hot-update hooks, Vite dev: shared type edit, hot-update hooks.

Full benchmarks: every row, dev-server edits, public npm results on Linux/macOS/Windows, and reproducible methodology. Type-check comparisons with differing diagnostics are withheld; results depend on the workload.

Usage

Vize is a toolchain you add to a Vue app. It does not scaffold the app itself. Pick the shortest path that matches your project; the docs have the rest.

Drop-in

On a Vue 3 + Vite app, replace @vitejs/plugin-vue with @vizejs/vite-plugin. Your SFCs stay as they are.

npm i -D @vizejs/vite-plugin
// vite.config.ts
import { defineConfig } from "vite";
import vize from "@vizejs/vite-plugin";

export default defineConfig({
  plugins: [vize()],
});

Then use the same dev / build scripts as before. This swaps SFC compilation only. Lint, format, and type-check stay on your current tools until you add them. The claim is Vue 3 SFCs in Vite — see Drop-in Scope.

Nuxt apps should use @vizejs/nuxt instead of wiring the Vite plugin by hand.

Type checking

Type-check .vue files with TypeScript 7.1 or newer and Vize's content mapper. tsrs can run the same tsconfig.

npm i -D vize typescript@beta
{
  "contentMappers": [{ "package": "vize", "extensions": [".vue"] }]
}
npx tsc --runExternalCode --noEmit -p tsconfig.json
npx tsrs --runExternalCode --noEmit -p tsconfig.json

typescript@beta is the 7.1 beta, the first release that includes content mappers. After 7.1 is stable, install typescript at 7.1 or newer and keep the same command. On Node.js 22.15–22.21.0 and 24.0–24.9, the beta's tsc starts the compiler without your environment variables, so the mapper cannot start and TypeScript reports TS18070. Use Node.js 22.21.1, 24.10 or newer, or install typescript@next instead. Details are in the type checking guide.

New setup

Create a Vue + Vite or Nuxt app first, then let vize init wire the toolchain.

Vue + Vite:

npm create vue@latest my-app
cd my-app
npx vize init

Nuxt:

npm create nuxt@latest my-app
cd my-app
npx vize init

init can add the Vite plugin or Nuxt module, Oxlint, vize fmt, vize check, and a VS Code recommendation. If you already have Vite+, run vpx vize init instead.

Migration

For an existing Vite, Vite+, or Nuxt project, preview the plan, then apply it:

npx vize init --dry-run
npx vize init

init is idempotent and lets you choose surfaces. Existing vize.config.* is left as-is. A second run adds no duplicate plugin, script, or dependency. The first run may still add vize:* scripts and update a plain vite.config.* or nuxt.config.*.

Non-interactive:

npx vize init --yes --lint --bundler --fmt --typecheck --editor

If you only want the compiler, use the drop-in swap above. Custom vue({ ... }) options and unusual Vite configs are not rewritten automatically. See Project Setup.

Vize is in its Real World Testing phase: fix requests and PRs are very welcome, and we are looking for reasonably large Vue projects to use as test beds.

Credits

This project draws inspiration from Volar.js, vuejs/language-tools, eslint-plugin-vue, eslint-plugin-vuejs-accessibility, Lightning CSS, Storybook, and OXC.

Special thanks to:

  • Blacksmith for sponsoring high-performance CI/CD runners and Testbox infrastructure for frequent benchmarks and real-project compatibility checks.
  • Mates Inc. for allowing ubugeeei, its employee, to dedicate discretionary work time to OSS and for adopting Vize in the build for the company's engineering website.
  • Anthropic, through Claude for Open Source, for supporting Vize's ongoing open-source development.
  • OpenAI Codex for Open Source for past support of Vize's open-source development. That support ended in September 2026.
  • dmnlk for sustained code contributions and performance improvements, especially to Canon's type checker. As a Vize committer, dmnlk is entrusted with write access to the repository. Thank you for helping develop and maintain Vize.
  • かっこかり for continuously testing Vize's compiler and Vite Plugin on Misskey (~103k lines of Vue across 586 SFCs), with timely reports as the implementation changed (report).
  • ushironoko for compiler, linter, and CLI fix reports, reference implementations, and reproduction repositories.
  • dannote for bringing Vize into the Elixir community through Volt, an Elixir-native frontend toolchain built on Vize, and for reporting missing pieces and sending PRs as Volt adopted Vize as a foundation.
  • n13u and #frontend_phpcon_do for persistently reporting fix cases while building a Nuxt-based conference website with Vize, then carrying that validation all the way to production adoption (report, write-up).
  • yamanoku for accessibility-focused feedback around Vize and for using the project in the Vue Fes Japan speaker-site migration documented in the v-tokyo Meetup #25 LT notes (write-up).
  • sevenc-nanashi for using the VOICEVOX editor (~26k lines of Vue across 128 SFCs) as a real-world target for improving compiler precision (report).
  • Q16solver for moving a Nuxt monorepo's Vue tooling onto Vize (type checking with tsrs and the content mapper, library builds, and the Nuxt app build) and turning every gap against vue-tsc into a precise, minimal report covering generic and dynamic components, inline callback props, event maps, and declaration emit.
  • naitokosuke for reports spanning nearly the whole toolchain (compiler SSR and Vapor output, linter rules, Nuxt builds, the language server, the VS Code extension, the content mapper, and Musea) and for fixes to the VS Code extension, the install guide, and the development shell.
  • FLPPPPPP for Windows oxlint-vize and type-aware vize lint reports, and for precise gaps between Vize rules and eslint-plugin-vue.
  • warflash for a precise report where defineProps<Props>() resolved an imported interface Props instead of the local type Props.
  • Everyone who has mentioned, shared, tested, or amplified Vize across the community.

Vize is a personal project by ubugeeei, licensed under the MIT License and maintained as a non-commercial OSS effort. It is not owned by any specific company, is intended to remain open, and is not being built with a buyout in mind.

License

MIT

探索相关项目

加载中…