Hysen Labs
Open-source project
mikeal/r2 avatar
mikeal

r2

GitHub describes it as HTTP client. Spiritual successor to request.. The repository metadata lists JavaScript as its primary language. The metadata lists the Apache-2.0 license. This article stays within the project description and details documented in the GitHub repository README.

4,404 stars116 forksJavaScriptApache-2.0
01
DEEP OPEN-SOURCE ANALYSIS

mikeal/r2: r2

GitHub describes it as HTTP client. Spiritual successor to request.. The repository metadata lists JavaScript as its primary language. The metadata lists the Apache-2.0 license. This article stays within the project description and details documented in the GitHub repository README.

02
DEEP OPEN-SOURCE ANALYSIS

Repository scope

GitHub describes it as HTTP client. Spiritual successor to request.. The repository metadata lists JavaScript as its primary language. The metadata lists the Apache-2.0 license. The README describes the project this way: Early in Node.js I wrote an HTTP client library called request . It evolved along with Node.js and eventually became very widely depended upon.

03
DEEP OPEN-SOURCE ANALYSIS

r2

The README section "r2" states: A lot has changed since 2010 and I've decided to re-think what a simple HTTP client library should look like.

04
DEEP OPEN-SOURCE ANALYSIS

r2

The README section "r2" states: Rather than being built on top of the Node.js Core HTTP library and shimmed for the browser, r2 is built on top of the browser's Fetch API and shimmed for Node.js. APIs are meant to be used with async/await, which means they are based on promises.

05
DEEP OPEN-SOURCE ANALYSIS

r2

The README section "r2" states: When running through browserify request is ~2M uncompressed and ~500K compressed. r2 is only 66K uncompressed and 16K compressed.

06
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The repository README is the source for this review. It does not replace a local installation or an independent test.

07
DEEP OPEN-SOURCE ANALYSIS

Official sources

08
Community notes

Community notes