# posva/vue-promised

💝 Composable Promises & Promises as components

Repository: https://github.com/posva/vue-promised
Canonical: https://ross.abutalabs.com/products/vue-promised
Homepage: https://vue-promised.esm.dev/
Language: TypeScript
License: MIT
License Family: permissive
Topics: vue, promise, component, vue-composition-api
Last push: 2026-08-26T20:45:09+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 3143, "days_push": 7, "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 1929, forks 85 (observed 2026-08-28T04:05:56.005531+00:00)

## What it is
A Vue library that provides composable promise handling and a Promised component to declaratively render pending, resolved, and rejected states of async operations. It reduces boilerplate for loading spinners, error display, and delayed loading UI in Vue 2 and Vue 3 apps.

## Use cases
- show a spinner while fetching data from an api in vue
- handle async loading and error states declaratively in vue components
- avoid flashing a loading spinner for fast requests
- render promise results as vue components
- usePromise composable for async state in vue composition api
- display error messages when an api call fails in vue

## When to choose
- you build Vue 2 or Vue 3 apps with many async data fetches
- you want declarative slot-based handling of pending/success/error states
- you want to eliminate repeated loading/error boilerplate per request

## When to avoid
- you use React, Svelte, or another non-Vue framework
- you prefer a full data-fetching library with caching like TanStack Query
- your app has minimal async state handling

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, state-management, middleware
- domain: frontend, web-development, developer-tools
- platform: browser, cross-platform
- tags: vue, promises, async-components, composition-api, loading-states, nodejs

## Member repositories
- posva/vue-promised (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:56.005531+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-30T03:09:03.354482+00:00, confidence not recorded.
  - readme: https://github.com/posva/vue-promised (fetched 2026-08-28T04:05:56.005531+00:00, sha b9f46bf0b9d7)
  - homepage: https://vue-promised.esm.dev/ (fetched 2026-08-29T10:48:48.715461+00:00, sha 27c171f2b323)
  - registry_npm: https://registry.npmjs.org/vue-promised (fetched 2026-08-29T10:48:48.752893+00:00, sha 93ddc8616b13)
- Data as of 2026-08-30T08:39:29.467469+00:00.
