vue-macros/vue-macros
Explore and extend more macros and syntax sugar to Vue. observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 99
- Release rhythm 81
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0.0
- age_days: 1668
- days_rel: 45
- days_push: 7
- n_releases_24m: 333
Adoption not part of the score
1986 stars · 121 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Vue Macros is a collection of compile-time macros and syntax sugar extensions for Vue, implemented as unplugin-based bundler plugins. It supports Vue 2.7 and Vue 3 across Vite, Nuxt, Webpack, Rspack, Rollup, and esbuild with full TypeScript and Volar support.
Use cases
- add defineOptions macro to Vue script setup components
- use experimental Vue syntax sugar before official support
- hoist static constants in Vue SFC macros
- write less boilerplate in Vue single-file components
- share macros across Vite, Webpack, and esbuild builds
- try unofficial Vue proposals in a Vue 3 project
When to choose
- you want to reduce boilerplate in Vue script setup components
- you need macros like defineOptions, defineModel, or hoistStatic across multiple bundlers
- you want TypeScript and Volar support for experimental Vue syntax
When to avoid
- you prefer sticking to officially supported Vue features only
- your project uses WebStorm, which is not supported
- you rely on older Node.js or Vue 2 versions below 2.7
Facets
library · maturity active
build-tool compiler developer-tools plugin-system web-development frontend developer-tools cross-platform vue macros syntax-sugar script-setup unplugin vite webpack rollup esbuild rspack nuxt sfc typescript nodejs
5 sources
- readme: https://github.com/vue-macros/vue-macros · fetched 2026-08-28 · 331d9d5cebaf
- homepage: https://vue-macros.dev · fetched 2026-08-29 · 746e633341e1
- site_page: https://vue-macros.dev/guide/getting-started.html · fetched 2026-08-29 · ebc52cc9430d
- site_page: https://vue-macros.dev/features/hoist-static.html · fetched 2026-08-29 · 783ea9feb505
- registry_npm: https://registry.npmjs.org/vue-macros · fetched 2026-08-29 · e6ff53628d5b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| vue-macros/vue-macros | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="vue-macros/vue-macros")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem