Shred is a resource-oriented HTTP client for JavaScript/Node.js that allows declarative definition of API wrappers with support for URL templates, response compression, authorization, and streaming. The current version is 1.1.0-alpha-10 (alpha quality). It is a complete reboot from 1.0.x, not backwards compatible. Key differentiator: declarative resource definition using CoffeeScript/JavaScript objects, focusing on HTTP resource abstraction rather than low-level requests.
npm install shredNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a GitHub API client using shred's resource-oriented approach and performs a simple issue listing request.
Update code to use new resource-based declarative API; see README for migration guide.
Pin to specific version and test thoroughly when upgrading.
Use await on response.data to get parsed JSON or string body.
Use library's documented template syntax.
const { data } = await request();Check server response or set headers appropriately.