{"library":"r2","type":"library","category":null,"description":"The `r2` package is a minimalist, promise-based HTTP client library envisioned as a spiritual successor to the popular `request` package. It distinguishes itself by being built primarily upon the browser's Fetch API, with Node.js support provided through shims, resulting in a substantially smaller footprint, particularly for browser environments (e.g., 66KB uncompressed for `r2` versus 2MB for `request` when bundled). The library's API is designed for modern JavaScript development, leveraging `async/await` for asynchronous operations. The current stable version is 2.0.1, released in April 2018. Its release cadence has been effectively halted since then, indicating long-term dormancy. A primary differentiator is its Fetch API-first design, aiming for simplicity and efficiency over feature-rich complexity, making it a lightweight option for basic HTTP interactions.","language":"javascript","status":"abandoned","version":"2.0.1","tags":["javascript"],"install":[{"cmd":"npm install r2","imports":["const r2 = require('r2')","const r2 = require('r2'); await r2.get('https://example.com').text","await r2('https://example.com').text"]},{"cmd":"yarn add r2","imports":[]},{"cmd":"pnpm add r2","imports":[]}],"homepage":null,"github":"https://github.com/mikeal/r2","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/r2","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/r2/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Wed Jul 22","install_tag":null}}