finds.dev← search

// the find

mikeal/r2

★ 4,404 · JavaScript · Apache-2.0 · updated Sep 2019

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.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →