Detritus REST
JSON →A lightweight REST library for JavaScript and TypeScript, version 0.8.0, with TypeScript declarations included. Designed for simplicity and browser/Node compatibility, it provides a minimalistic API for common HTTP methods (GET, POST, PUT, DELETE, PATCH) and supports custom headers, query parameters, request bodies, and response parsing. Unlike heavier solutions like Axios, Detritus REST focuses on zero dependencies and a small footprint (under 5KB). It has a monthly release cadence with occasional breaking changes in minor versions, so pinning is recommended. Primarily used in Discord bot development (part of the Detritus ecosystem) but suitable for any REST API consumption.
Resources
packagedetritus-rest ↗