# AttoJS/vue-request

⚡️ This is a library that can easily help you manage request states, supporting common features such as SWR, polling, error retry, caching, and pagination, etc. ⚡️ 这是一个能够轻松帮助你管理请求状态的库，支持 SWR、轮询、错误重试、缓存、分页等常用功能。

Repository: https://github.com/AttoJS/vue-request
Canonical: https://ross.abutalabs.com/products/vue-request
Homepage: https://www.attojs.com
Language: TypeScript
License: MIT
License Family: permissive
Topics: vue-request, swr, composition-api, vue3, vue, axios, vuerequest, userequest
Last push: 2025-03-14T01:57:35+00:00

## Health v2 (maintenance only)
Score: 28/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 11, release rhythm 8, longevity 100
- inputs: {"age_days": 2143, "days_push": 538, "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 1397, forks 95 (observed 2026-08-28T04:04:36.740878+00:00)

## What it is
VueRequest is a Vue composable library for managing API request states, supporting SWR, polling, error retry, caching, throttling/debouncing, and pagination. It works with both Vue 2 and Vue 3 and is written entirely in TypeScript.

## Use cases
- manage loading and error states for API calls in Vue
- implement SWR-style data fetching in Vue 3
- poll an endpoint at intervals with automatic retry
- cache and deduplicate request data across components
- handle paginated lists and load-more requests
- refetch data when the window regains focus

## When to choose
- you use Vue 2 or Vue 3 and want a SWR-like data fetching hook
- you want built-in polling, retry, caching, and pagination without writing boilerplate
- you want fully reactive, strongly-typed request state out of the box

## When to avoid
- you use React or another non-Vue framework
- you need full GraphQL subscription or complex offline sync features
- you prefer a full state management solution like Pinia for server state

## Facets
- artifact type: library
- maturity: active
- function: http-client, state-management, caching, middleware
- domain: web-development, frontend, apis
- platform: browser
- tags: vue-request, swr, composition-api, use-request, polling, error-retry, pagination, axios, vue2, vue3, vue, javascript, typescript

## Member repositories
- AttoJS/vue-request (main) score 28

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.740878+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-30T04:39:15.514030+00:00, confidence not recorded.
  - readme: https://github.com/AttoJS/vue-request (fetched 2026-08-28T04:04:36.740878+00:00, sha 31d03ccb23f8)
  - homepage: https://www.attojs.com (fetched 2026-08-29T11:54:01.513454+00:00, sha 992f1de0f825)
  - registry_npm: https://registry.npmjs.org/vue-request (fetched 2026-08-29T11:54:01.532037+00:00, sha 644999052a40)
- Data as of 2026-08-30T08:39:29.467469+00:00.
