A lightweight framework for creating reliable REST HTTP clients in TypeScript and JavaScript. Current stable version is 2.3.0. It implements the Simple HTTP Request Builder pattern with the native fetch API, providing a clean, type-safe way to consume REST APIs. Key differentiators include seamless integration with the Plume Framework and Create Plume React Project, built-in support for JSON bodies and error handling, and a minimal dependency footprint. The library is designed for request/response APIs and explicitly avoids websockets or GraphQL.
npm install simple-http-rest-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure a simple GET request using createHttpFetchRequest with fetch options and execute it.
Ensure to chain .execute() at the end of the request builder chain.
Always include the protocol in baseUrl, e.g., 'http://localhost:3000/api'.
Use named export createHttpFetchRequest instead.
Compare errorCode with string values or use HttpError.status for numeric status code.
Use createHttpFetchRequest directly instead of instantiating a client class.
Ensure baseUrl includes protocol and path starts with '/'. Example: baseUrl = 'http://localhost:3000', path = '/users'.