// the find
mikeal/r2
HTTP client. Spiritual successor to request.
A minimal HTTP client for Node.js built on top of the Fetch API, from the author of the original `request` package. The pitch is simplicity and browser compatibility — same code runs in both environments. It's for developers who want something lighter than `request` but more ergonomic than raw `fetch`.
Built on Fetch rather than Node's `http` module, so browserify output is tiny (16K gzipped vs 500K for `request`). Promise-first API that feels natural with async/await. The `.json`, `.text`, `.response` chain accessors are a neat ergonomic touch. From the author of `request`, so the design intent is credible.
Dead project — last commit was 2019, and this predates Node's built-in `fetch` (added in Node 18), which makes this library largely pointless for modern Node code. No streaming support documented. Tiny API surface means you'll hit the edges quickly on anything non-trivial (auth flows, retries, redirects). At this point you'd just use `undici` or native `fetch` instead.