# umijs/umi-request

A request tool based on fetch.

Repository: https://github.com/umijs/umi-request
Canonical: https://ross.abutalabs.com/products/umi-request
Language: JavaScript
License Family: other
Last push: 2023-05-08T06:35:49+00:00

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

## Adoption (not part of the score)
Stars 2207, forks 327 (observed 2026-08-28T04:06:26.093328+00:00)

## What it is
umi-request is a JavaScript HTTP request library built on fetch that combines fetch's native browser support with axios-like conveniences such as interceptors, request cancellation, and unified error handling. It provides a small (~9k) unified API with built-in timeout, caching, query serialization, and middleware support for both browser and Node.js.

## Use cases
- make http requests with fetch but with interceptors like axios
- add timeout and caching to fetch requests
- cancel http requests in the browser
- simplify post request data submission and query serialization
- handle gbk-encoded responses in javascript
- unified error handling for api calls
- make http requests from node.js

## When to choose
- you want axios-style interceptors and cancellation on top of native fetch
- you need a lightweight (~9k) request library with timeout, cache, and middleware support
- your project already uses the umi ecosystem
- you need to handle gbk character encoding in responses

## When to avoid
- you need a library with active ongoing development and recent releases
- you require guaranteed long-term maintenance or official license clarity in the repo
- you prefer axios's XMLHttpRequest-based implementation or need broader ecosystem support
- you need advanced features like automatic retries or request deduplication out of the box

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, middleware, caching, error-handling
- domain: web-development, frontend, apis, developer-tools
- platform: browser
- tags: fetch-wrapper, axios-alternative, interceptors, request-library, umi, nodejs, javascript

## Member repositories
- umijs/umi-request (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:26.093328+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-30T02:46:28.466722+00:00, confidence not recorded.
  - readme: https://github.com/umijs/umi-request (fetched 2026-08-28T04:06:26.093328+00:00, sha 06e00d854a58)
  - registry_npm: https://registry.npmjs.org/umi-request (fetched 2026-08-29T10:27:04.722305+00:00, sha c8e82d754eb8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
