# Vue — card for AI agents

Progressive JavaScript framework for building interactive user interfaces.

Category: Web frameworks · npm package `vue` · latest version 3.5.44 (checked 2026-11-01)
Install: `npm install vue`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## 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, `` 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`.

## Docs written for agents
- [llms.txt (index of the docs)](https://vuejs.org/llms.txt)

## What it is
- Vue is a JavaScript framework for building user interfaces. The repository describes it as "progressive, incrementally-adoptable". The docs say it builds on standard HTML, CSS and JavaScript and gives you a declarative, component-based model. Templates describe HTML output from JavaScript state. Vue tracks changes to that state and updates the DOM.
- You can run it two ways. The first is to load it from a CDN with no build step. The docs suggest this for enhancing static HTML or working alongside a backend framework. The second is to scaffold a project with `npm create vue@latest`. That gives you a Vite-based build setup and Single-File Components: `.vue` files that hold a component's script, template and styles together.
- Components can use the Options API (`data`, `methods`, `mounted` on an object) or the Composition API, which in SFCs is typically written with `<script setup>`. For production, the docs recommend the Options API without build tools or for low-complexity scenarios. They recommend Composition API plus SFCs for full applications. The docs are written for Vue 3. They say Vue 2 support ended on Dec 31, 2023.

## Caveats
- Vue 2 support has ended: 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.
- No build step means no `<script setup>`: The CDN route rules out `.vue` files. Many Composition API examples in the guide use `<script setup>`, which requires build tools. Without a build, the docs send you to the `setup()` option.
- CDN examples use the development build: For production without a build tool, switch to the `.prod.js` dist files. That means `vue.global.prod.js` for the global build and `vue.esm-browser.prod.js` for the ESM build.
- Split ES modules fail over file://: Opening a split-module `index.html` straight from disk throws an error. The docs say you need to serve it over `http://`.
- Import maps need a recent browser: The no-build examples that use bare `import ... from 'vue'` depend on import maps. The docs call this a relatively new feature and say Safari supports it only from 16.4.

## Numbers (AgentGid data)
- Gid Score: 80.3 (#97 of all tools, 5 of 76 in its category)
- Used in 169 public projects set up for AI coding agents (2.7%)
- Downloads last week: 26,822,809 (as of 2026-11-24), +49.4% over 4 weeks
- GitHub stars: 55,077 (as of 2026-11-24)
- Last push: 2026-11-24

## Often used with
vue-tsc 51.5%, VueUse 39.1%, Vite 55.0%, Nuxt 37.9%, Pinia 32.5%, ESLint 62.1%

## Checked alternatives (same job)
- React: https://agentgid.com/tools/react/agent.md
- Astro: https://agentgid.com/tools/astro/agent.md
- Svelte: https://agentgid.com/tools/svelte/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/vue/
- Homepage: https://vuejs.org/
- Repository: https://github.com/vuejs/core
- Source: https://github.com/vuejs/core
- Source: https://github.com/vuejs/core/releases
- Source: https://vuejs.org/
- Source: https://vuejs.org/guide/introduction.md
- Source: https://vuejs.org/guide/quick-start.md
- Source: https://vuejs.org/guide/best-practices/production-deployment.md

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
