This content originally appeared on DEV Community and was authored by Bishal Shrestha
I recently published @bishal-shrestha/rest-client, a minimal and efficient REST client for JavaScript and TypeScript developers. It is designed to simplify API communication while remaining fully customizable and environment-agnostic.
Key Features
- Full TypeScript support with rich typings
- Works in both Node.js and browser environments
- Supports request and response interceptors
- Built-in error handling and retry logic
- ESM, UMD and CommonJS compatible
- Lightweight and dependency-free
Installation
npm install @bishal-shrestha/rest-client
Basic Usage
import RestClient from '@bishal-shrestha/rest-client';
const api = new RestClient('https://api.example.com');
const user = await api.getAsync('users/1');
console.log(user);
You can also set headers, intercept requests or responses, and customize error handling and retries.
Documentation
Comprehensive documentation is available at
https://rest-client-docs.netlify.app
The documentation site is built with Docusaurus and deployed via Netlify. Contributions to documentation and examples are welcome.
Call for Feedback and Contributors
This project is actively maintained and open to feedback, feature suggestions, and contributions. If you find the client useful, consider contributing by:
- Reporting issues or bugs
- Suggesting or implementing features
- Helping improve documentation
- Providing use case feedback
Support
Let me know your thoughts or suggestions. I’m open to collaboration and always looking to improve the library based on real-world use.
This content originally appeared on DEV Community and was authored by Bishal Shrestha

Bishal Shrestha | Sciencx (2025-06-30T11:07:50+00:00) A Modern, Typed REST Client for Node.js and Browsers. Retrieved from https://www.scien.cx/2025/06/30/a-modern-typed-rest-client-for-node-js-and-browsers/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.