Vue
Progressive JavaScript framework for building interactive user interfaces.
3. Used by agents' projects
Dependency in 169 public GitHub projects set up for AI coding agents that we scanned (2.7%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
vuejs.org/llms.txtFrom the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What Vue does
Vue is built to be adopted in steps: the same core runs from a single CDN script tag on a static page up to a full single-page app compiled from <code>.vue</code> files, and its two API styles sit on one underlying system.
Vue popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Vue is used
- Vue is a dependency in 169 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.5% of the 4,867 JavaScript/TypeScript ones), #5 of 76 in web frameworks.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 291; those are left out of every share on this page.
- The most used alternative in our scan is React (2,038 projects).
- Projects that use it most often also use vue-tsc (51.5%), VueUse (39.1%), Vite (55.0%).
- It is more common in projects set up for Junie (10.8%) than for Devin Desktop (2.2%).
By coding agent
Often used with
Vue in practice
Strengths
You can load Vue from unpkg, jsdelivr or cdnjs and mount an app with no build step. The docs say this keeps setup simpler and suits static HTML or integration with a backend framework.
The Options API and the Composition API are not separate systems. The docs say the Options API is implemented on top of the Composition API, and core concepts are shared between them.
A <code>.vue</code> Single-File Component keeps a component's logic, markup and styles together. The docs call SFCs a defining feature of Vue. They also call it the recommended format when your use case warrants a build setup.
<code>create-vue</code> asks whether to add TypeScript, JSX, Vue Router, Pinia, Vitest, an end-to-end tool, ESLint, Prettier and Vue DevTools. The docs say to choose No when unsure.
Watch out for
The docs cover Vue 3. They say Vue 2 support ended on Dec 31, 2023. For people upgrading from Vue 2, they point to the Migration Guide.
The CDN route rules out <code>.vue</code> files. Many Composition API examples in the guide use <code><script setup></code>, which requires build tools. Without a build, the docs send you to the <code>setup()</code> option.
For production without a build tool, switch to the <code>.prod.js</code> dist files. That means <code>vue.global.prod.js</code> for the global build and <code>vue.esm-browser.prod.js</code> for the ESM build.
A Single-File Component with <script setup>
< script setup >
import { ref } from 'vue'
const count = ref ( 0 )
</ script >
< template >
< button @click = "count++" >Count is: {{ count }}</ button >
</ template >
< style scoped >
button { font-weight : bold ; }
</ style >More about Vue
Funding
- GitHub Sponsors: https://github.com/yyx990803
- Open Collective: https://opencollective.com/vuejs
- 140 GitHub sponsors
Head to head
- React vs Vue used together in 8 projects
- Vue vs Astro used together in 4 projects
- Vue vs Svelte used together in 2 projects
Packages around it
- vue-router: Official router
- @vue/test-utils: Component test utilities
- @vue/eslint-config-typescript: ESLint config for TypeScript
- @vue/tsconfig: Shared tsconfig presets
- @vue/eslint-config-prettier: ESLint + Prettier config
- @vue/compiler-sfc: .vue file compiler
More in Web frameworks
Alternatives
Vue This page
JavaScript library for building interactive user interfaces with components.
Modern static site builder with partial hydration and zero JavaScript by default.
Compiler-based frontend framework for building reactive web interfaces with less boilerplate.
Get started
Install it.
npm install vueRules for your agent
## Vue
- Scaffold new apps with `npm create vue@latest`. The docs list Node.js `^22.18.0 || >=24.12.0` as a prerequisite.
- For full applications, use Composition API + Single-File Components. The docs reserve the Options API recommendation for no-build setups or low-complexity scenarios.
- Without a build step, `<script setup>` and `.vue` files are unavailable. Use the `setup()` option with the global or `vue.esm-browser.js` build.
- When shipping a no-build app, switch to `vue.global.prod.js` or `vue.esm-browser.prod.js`.
- In a custom build setup, make `vue` resolve to `vue.runtime.esm-bundler.js`, configure the compile-time feature flags, and replace `process.env.NODE_ENV` with `"production"`.
- Serve split ES module pages over `http://`, not by opening them via `file://`.
- Markdown docs are at `https://vuejs.org/llms.txt` and `/llms-full.txt`. Report runtime errors through `app.config.errorHandler`.