<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bishal Shrestha</title>
    <description>The latest articles on DEV Community by Bishal Shrestha (@bishal_shrestha_55513f80b).</description>
    <link>https://dev.to/bishal_shrestha_55513f80b</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3308734%2Fb46f5a7e-e4fb-4f93-adb4-5b3f4d8f69fe.jpg</url>
      <title>DEV Community: Bishal Shrestha</title>
      <link>https://dev.to/bishal_shrestha_55513f80b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bishal_shrestha_55513f80b"/>
    <language>en</language>
    <item>
      <title>A Modern, Typed REST Client for Node.js and Browsers</title>
      <dc:creator>Bishal Shrestha</dc:creator>
      <pubDate>Mon, 30 Jun 2025 11:07:50 +0000</pubDate>
      <link>https://dev.to/bishal_shrestha_55513f80b/a-modern-typed-rest-client-for-nodejs-and-browsers-3jpo</link>
      <guid>https://dev.to/bishal_shrestha_55513f80b/a-modern-typed-rest-client-for-nodejs-and-browsers-3jpo</guid>
      <description>&lt;p&gt;I recently published &lt;strong&gt;@bishal-shrestha/rest-client&lt;/strong&gt;, 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Full TypeScript support with rich typings&lt;/li&gt;
&lt;li&gt;Works in both Node.js and browser environments&lt;/li&gt;
&lt;li&gt;Supports request and response interceptors&lt;/li&gt;
&lt;li&gt;Built-in error handling and retry logic&lt;/li&gt;
&lt;li&gt;ESM, UMD and CommonJS compatible&lt;/li&gt;
&lt;li&gt;Lightweight and dependency-free&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;npm&lt;/span&gt; &lt;span class="nx"&gt;install&lt;/span&gt; &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="nd"&gt;bishal&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;shrestha&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;rest&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;client&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Basic Usage
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;RestClient&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@bishal-shrestha/rest-client&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;api&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;RestClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://api.example.com&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;users/1&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;user&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also set headers, intercept requests or responses, and customize error handling and retries.&lt;/p&gt;

&lt;h2&gt;
  
  
  Documentation
&lt;/h2&gt;

&lt;p&gt;Comprehensive documentation is available at&lt;br&gt;
&lt;a href="https://rest-client-docs.netlify.app" rel="noopener noreferrer"&gt;https://rest-client-docs.netlify.app&lt;/a&gt; and&lt;br&gt;
&lt;a href="https://github.com/shrestha-bishal/rest-client-js" rel="noopener noreferrer"&gt;https://github.com/shrestha-bishal/rest-client-js&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The documentation site is built with Docusaurus and deployed via Netlify. Contributions to documentation and examples are welcome.&lt;/p&gt;

&lt;h2&gt;
  
  
  Call for Feedback and Contributors
&lt;/h2&gt;

&lt;p&gt;This project is actively maintained and open to feedback, feature suggestions, and contributions. If you find the client useful, consider contributing by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reporting issues or bugs&lt;/li&gt;
&lt;li&gt;Suggesting or implementing features&lt;/li&gt;
&lt;li&gt;Helping improve documentation&lt;/li&gt;
&lt;li&gt;Providing use case feedback&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Support
&lt;/h2&gt;

&lt;p&gt;Let me know your thoughts or suggestions. I’m open to collaboration and always looking to improve the library based on real-world use.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>typescript</category>
      <category>restclient</category>
      <category>node</category>
    </item>
  </channel>
</rss>
