Simple HTTP and REST client library built on top of axios for Browser and Node.js, inspired by Go's resty. Current stable version 0.0.5 (prerelease). Release cadence is irregular as it is a young project. Key differentiators: centralized request management, middleware support for requests and responses, and a simple API similar to Go's resty. However, it is still in early development with limited adoption and documentation.
npm install resty-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a Resty client with baseURL and timeout, then make a GET request with params.
Update import to 'resty-client'.
Use await or .then() when calling client.get/post etc.
Use ESM imports (import/export) or configure Node to handle ESM.
Set Authorization header manually for bearer tokens.
Add 'type': 'module' to package.json or switch to .mjs file extension.
Ensure you import resty from 'resty-client' and call resty.create(config).