# mikeal/r2

HTTP client. Spiritual successor to request.

Repository: https://github.com/mikeal/r2
Canonical: https://ross.abutalabs.com/products/r2
Language: JavaScript
License: Apache-2.0
License Family: permissive
Last push: 2019-09-01T16:23:58+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3290, "days_push": 2558, "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 4404, forks 116 (observed 2026-08-28T04:08:48.374758+00:00)

## What it is
r2 is a promise-based HTTP client library for Node.js and browsers, built on the Fetch API as a spiritual successor to the popular 'request' library. It offers a minimal async/await-friendly API for making HTTP requests with simple JSON and header support.

## Use cases
- make http requests with async/await in node
- fetch  from an api
- send put requests with  bodies
- set custom headers on http requests
- use a small fetch-based http client in browserify bundles
- replace the deprecated request library

## When to choose
- you want a tiny fetch-based http client for node or browser bundles
- you prefer promise/async-await apis over callback-style clients
- you are migrating away from the request library with minimal code

## When to avoid
- you need an actively maintained library with recent security patches
- you need advanced features like interceptors, retries, or streaming uploads
- you are starting a new project - use native fetch, got, or axios instead

## Facets
- artifact type: library
- maturity: abandoned
- function: http-client
- domain: web-development, apis, developer-tools
- platform: browser
- tags: fetch-api, promise-based, request-successor, async-await, nodejs, javascript

## Member repositories
- mikeal/r2 (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:48.374758+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-29T18:21:06.681373+00:00, confidence not recorded.
  - readme: https://github.com/mikeal/r2 (fetched 2026-08-28T04:08:48.374758+00:00, sha 433edd810a80)
  - registry_npm: https://registry.npmjs.org/r2 (fetched 2026-08-29T09:09:12.375950+00:00, sha a5811ae493fb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
