<?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: Ashraf</title>
    <description>The latest articles on DEV Community by Ashraf (@ashraf_g43).</description>
    <link>https://dev.to/ashraf_g43</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%2F3253278%2F15bff1c6-dce1-432e-a9bb-147cebda86c3.png</url>
      <title>DEV Community: Ashraf</title>
      <link>https://dev.to/ashraf_g43</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ashraf_g43"/>
    <language>en</language>
    <item>
      <title>Released: health-chk – A Production-Ready Health Check Middleware for Express.js</title>
      <dc:creator>Ashraf</dc:creator>
      <pubDate>Tue, 01 Jul 2025 09:03:58 +0000</pubDate>
      <link>https://dev.to/ashraf_g43/released-health-chk-a-production-ready-health-check-middleware-for-expressjs-3ggd</link>
      <guid>https://dev.to/ashraf_g43/released-health-chk-a-production-ready-health-check-middleware-for-expressjs-3ggd</guid>
      <description>&lt;p&gt;Hey everyone 👋&lt;br&gt;
I just published health-chk, a lightweight, customizable health check middleware for Express.js, perfect for containerized environments like Kubernetes, Docker, and cloud setups (AWS, GCP, etc).&lt;br&gt;
🔧 What it does:&lt;/p&gt;

&lt;p&gt;Simple GET /healthz endpoint&lt;br&gt;
Reports memory, uptime, CPU, PID, and more&lt;br&gt;
Supports custom async diagnostics (e.g., DB status)&lt;br&gt;
Environment variable output support&lt;br&gt;
Graceful error reporting&lt;br&gt;
Perfect for readiness/liveness probes&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;app.use(
  healthCheck({
    path: '/healthz',
    info: async () =&amp;gt; ({
      database: "connected",
      service: "auth-service"
    }),
    includeEnv: true,
    envKeys: ['NODE_ENV', 'SERVICE_NAME']
  })
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Install: npm install health-chk&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ashraf-g/health-chk" rel="noopener noreferrer"&gt;Github &lt;/a&gt; &lt;a href="https://www.npmjs.com/package/health-chk" rel="noopener noreferrer"&gt;NPM &lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let me know what you think, happy to hear feedback or PR suggestions!&lt;/p&gt;

&lt;h1&gt;
  
  
  nodejs #expressjs #npm #devops #kubernetes #docker #healthcheck #sre #microservices #opensource
&lt;/h1&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>devops</category>
      <category>discuss</category>
    </item>
    <item>
      <title>🚀 Released: health-chk – A Production-Ready Health Check Middleware for Express.js</title>
      <dc:creator>Ashraf</dc:creator>
      <pubDate>Tue, 01 Jul 2025 09:01:36 +0000</pubDate>
      <link>https://dev.to/ashraf_g43/released-health-chk-a-production-ready-health-check-middleware-for-expressjs-19p3</link>
      <guid>https://dev.to/ashraf_g43/released-health-chk-a-production-ready-health-check-middleware-for-expressjs-19p3</guid>
      <description>&lt;p&gt;Hey everyone 👋&lt;br&gt;
I just published health-chk, a lightweight, customizable health check middleware for Express.js, perfect for containerized environments like Kubernetes, Docker, and cloud setups (AWS, GCP, etc).&lt;/p&gt;

&lt;p&gt;🔧 What it does:&lt;br&gt;
Simple GET /healthz endpoint&lt;/p&gt;

&lt;p&gt;Reports memory, uptime, CPU, PID, and more&lt;/p&gt;

&lt;p&gt;Supports custom async diagnostics (e.g., DB status)&lt;/p&gt;

&lt;p&gt;Environment variable output support&lt;/p&gt;

&lt;p&gt;Graceful error reporting&lt;/p&gt;

&lt;p&gt;Perfect for readiness/liveness probes&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How I Built a Reusable Fetch Hook in React and Published It to npm</title>
      <dc:creator>Ashraf</dc:creator>
      <pubDate>Thu, 12 Jun 2025 17:07:12 +0000</pubDate>
      <link>https://dev.to/ashraf_g43/how-i-built-a-reusable-fetch-hook-in-react-and-published-it-to-npm-4kb3</link>
      <guid>https://dev.to/ashraf_g43/how-i-built-a-reusable-fetch-hook-in-react-and-published-it-to-npm-4kb3</guid>
      <description>&lt;p&gt;As a frontend developer, I constantly find myself writing useEffect blocks to fetch data in React. After copy-pasting the same logic a dozen times, I decided to create a clean, lightweight hook — react-url-fetcher.&lt;/p&gt;

&lt;p&gt;In this post, I’ll walk you through:&lt;/p&gt;

&lt;p&gt;Why I built it&lt;/p&gt;

&lt;p&gt;How it works&lt;/p&gt;

&lt;p&gt;How to publish your own hook to npm&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/react-url-fetcher" rel="noopener noreferrer"&gt;NPM&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>react</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
