# vueuse/vue-demi

🎩 Creates Universal Library for Vue 2 & 3

Repository: https://github.com/vueuse/vue-demi
Canonical: https://ross.abutalabs.com/products/vue-demi
Language: JavaScript
License: MIT
License Family: permissive
Topics: vue, vue2, vue3, vue-demi, vue-composition-api
Last push: 2025-01-22T09:27:29+00:00

## Health v2 (maintenance only)
Score: 24/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 2, release rhythm 8, longevity 100
- inputs: {"age_days": 2254, "days_push": 588, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3129, forks 172 (observed 2026-08-28T04:07:45.341805+00:00)

## What it is
Vue Demi is a compatibility utility that lets library authors write universal Vue libraries working with both Vue 2 and Vue 3 by redirecting imports to the appropriate Vue version and Composition API implementation. It is now in maintenance mode and should not be used for new projects.

## Use cases
- write a vue plugin that supports both vue 2 and vue 3
- publish a component library compatible with vue 2 and 3
- import composition api from a single entry point across vue versions
- detect vue version at runtime in a shared library
- migrate a vue 2 library to support vue 3 users

## When to choose
- maintaining an existing library that supports both Vue 2 and Vue 3
- publishing a plugin whose users may be on either Vue version

## When to avoid
- starting a new project targeting only Vue 3
- building application code rather than a reusable library
- you no longer need Vue 2 support

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, plugin-system, sdk
- domain: frontend, web-development, developer-tools
- platform: cross-platform
- tags: vue, vue2, vue3, composition-api, compatibility-layer, library-authoring, nodejs

## Member repositories
- vueuse/vue-demi (main) score 24

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:45.341805+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:26:18.138802+00:00, confidence not recorded.
  - readme: https://github.com/vueuse/vue-demi (fetched 2026-08-28T04:07:45.341805+00:00, sha bda094ab43ee)
- Data as of 2026-08-30T08:39:29.467469+00:00.
