<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mcdavid Obioha]]></title><description><![CDATA[I'm Mcdavid, a frontend-focused Fullstack Developer, Open Source Contributor, and AI Engineering enthusiast.
I enjoy building useful software, solving real-worl]]></description><link>https://mcdavidobioha.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6b103e969cf4d0ae7d49a059/3418cfdf-4e05-437d-8660-5c88eefeda38.png</url><title>Mcdavid Obioha</title><link>https://mcdavidobioha.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 22:15:40 GMT</lastBuildDate><atom:link href="https://mcdavidobioha.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Meet Kera: A Local-First Webhook Debugging Toolkit Built for AI Agents]]></title><description><![CDATA[Meet Kera, a local-first webhook proxy with MCP support, request capture, payload inspection, and replay tools for debugging failed webhooks.]]></description><link>https://mcdavidobioha.hashnode.dev/meet-kera-a-local-first-webhook-debugging-toolkit-built-for-ai-agents</link><guid isPermaLink="true">https://mcdavidobioha.hashnode.dev/meet-kera-a-local-first-webhook-debugging-toolkit-built-for-ai-agents</guid><category><![CDATA[Open Source]]></category><category><![CDATA[AI]]></category><category><![CDATA[Developer Tools]]></category><category><![CDATA[webhooks]]></category><dc:creator><![CDATA[Mcdavid Obioha]]></dc:creator><pubDate>Thu, 03 Dec 2026 02:30:12 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b103e969cf4d0ae7d49a059/b6f33fec-fe3e-42e8-98d6-d84f042b8045.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>AI coding agents have become remarkably good at generating application
code.</p>
<p>But there's still a gap between writing an integration and debugging it
against real-world events.</p>
<p>Consider a typical webhook integration.</p>
<p>You're building a payment integration with Paystack or Stripe. You've
written your endpoint, configured your webhook URL, and started testing.</p>
<p>Then an incoming event fails.</p>
<p>Your application returns a <code>500</code>, but your AI coding agent doesn't
necessarily have access to the actual request that caused the failure.
It can't inspect the original headers, understand the exact payload, or
replay the event after making a correction.</p>
<p>You end up switching between your terminal, provider dashboard,
application logs, and code editor.</p>
<p>I built <strong>Kera</strong> to solve this problem.</p>
<p><a href="https://github.com/mcdavidobioha/kera"><strong>Kera on GitHub →</strong></a></p>
<p><img src="https://raw.githubusercontent.com/mcdavidobioha/kera/main/assets/demo.gif" alt="Kera in action: capturing, inspecting, and replaying webhooks" /></p>
<h2>What is Kera?</h2>
<p>Kera is an open-source, local-first webhook debugging toolkit that
combines four things:</p>
<ul>
<li>A local webhook proxy.</li>
<li>A request capture and replay engine.</li>
<li>An MCP server for AI coding agents.</li>
<li>A browser-based dashboard for manual inspection.</li>
</ul>
<p>Its central idea is simple: your AI agent should be able to inspect the
actual webhook requests your application receives, rather than guessing
what went wrong from application code alone.</p>
<h2>Bringing webhook debugging into the AI agent workflow</h2>
<p>One of Kera's main features is its MCP server.</p>
<p>It allows compatible AI agents to interact with captured webhook traffic
through structured tools.</p>
<p>Start the MCP server with:</p>
<pre><code class="language-bash">npx -y kera-mcp --target http://127.0.0.1:3000
</code></pre>
<p>Kera exposes the following tools:</p>
<p>  Tool                Purpose</p>
<hr />
<p>  <code>list_requests</code>     Retrieve captured webhook requests
  <code>inspect_request</code>   Inspect individual requests
  <code>replay_request</code>    Replay a captured request
  <code>diff_payloads</code>     Compare request payloads
  <code>clear_traffic</code>     Clear stored traffic
  <code>get_tunnel_url</code>    Retrieve the active tunnel URL</p>
<p>This creates a much more useful debugging workflow.</p>
<p>For example, when a webhook handler fails, an agent can inspect the
captured request, examine its payload, identify potential mismatches,
and replay the request after a code change.</p>
<p>Instead of manually reproducing the event, the original request becomes
part of the debugging context.</p>
<h2>A built-in tunnel for external webhook providers</h2>
<p>Local webhook development often requires exposing a development server
to external services.</p>
<p>Traditionally, this means running another tunneling utility alongside
your application.</p>
<p>Kera includes optional Cloudflare Quick Tunnel support.</p>
<pre><code class="language-bash">kera listen 3000 --tunnel
</code></pre>
<p>This automatically provisions an opt-in tunnel, allowing external
providers to deliver webhook events to your local environment.</p>
<p>You can use this when developing integrations with services such as:</p>
<ul>
<li>Paystack</li>
<li>Flutterwave</li>
<li>Stripe</li>
<li>GitHub</li>
<li>Shopify</li>
<li>Clerk</li>
</ul>
<h2>A dashboard when you don't need an AI agent</h2>
<p>Not every debugging task requires an AI agent.</p>
<p>Kera also includes a local browser dashboard.</p>
<p>Start it with:</p>
<pre><code class="language-bash">kera listen 3000 --dashboard
</code></pre>
<p>Then navigate to:</p>
<pre><code class="language-text">http://127.0.0.1:4040
</code></pre>
<p>The dashboard provides a visual interface for monitoring and debugging
webhook traffic.</p>
<p>You can inspect incoming requests, examine redacted JSON payloads,
compare payloads, and replay requests without leaving your browser.</p>
<p>This makes Kera useful both as a standalone developer tool and as
infrastructure for AI-assisted development.</p>
<h2>Local-first storage and security</h2>
<p>Webhook requests frequently contain sensitive information, including
authorization headers, signatures, and customer data.</p>
<p>I wanted Kera to be useful without making developers unnecessarily
expose this information.</p>
<p>Some of its security considerations include:</p>
<p><strong>Local storage</strong></p>
<p>Captured traffic is stored in:</p>
<pre><code class="language-text">~/.kera/traffic.db
</code></pre>
<p><strong>Restrictive file permissions</strong></p>
<p>The traffic database uses <code>0600</code> permissions.</p>
<p><strong>Automatic secret redaction</strong></p>
<p>Sensitive values are redacted before request data is passed to an LLM.</p>
<p><strong>Replay protection</strong></p>
<p>Replay operations enforce SSRF and loop protection to reduce the risk of
unsafe request destinations and accidental replay cycles.</p>
<p>The intention is to keep the debugging workflow local-first while still
making captured request context available to AI tools.</p>
<h2>The workflow Kera is designed to improve</h2>
<p>Here's the development loop I wanted to make possible:</p>
<ol>
<li>Start your application and Kera.</li>
<li>Configure your webhook provider to send events to the Kera endpoint.</li>
<li>Let Kera capture incoming requests.</li>
<li>Ask your AI agent to inspect a failed webhook.</li>
<li>Investigate and fix the handler.</li>
<li>Replay the captured request.</li>
<li>Verify that the endpoint now processes the event successfully.</li>
</ol>
<p>This is particularly useful when working with payment events,
authentication callbacks, subscription lifecycle events, and other
integrations where reproducing a specific request can be tedious.</p>
<h2>What's next?</h2>
<p>Kera is open-source, and I'm interested in seeing how other developers
use it.</p>
<p>I'm particularly interested in feedback around:</p>
<ul>
<li>AI agent workflows and MCP integrations.</li>
<li>Webhook replay reliability.</li>
<li>Payment provider integrations.</li>
<li>Developer experience and dashboard usability.</li>
<li>Additional debugging capabilities.</li>
</ul>
<h2>Get started</h2>
<p>Kera is available under the MIT license.</p>
<p><strong>GitHub repository:</strong> <a href="https://github.com/mcdavidobioha/kera">https://github.com/mcdavidobioha/kera</a></p>
<p>Available through npm:</p>
<pre><code class="language-bash">npx -y kera-mcp
</code></pre>
<p>Packages:</p>
<ul>
<li><a href="https://www.npmjs.com/package/kera-mcp">kera-mcp</a></li>
<li><a href="https://www.npmjs.com/package/kera-terminal">kera-terminal</a></li>
</ul>
<p>Also listed on Glama and the Official MCP Registry.</p>
<p>If you work with webhooks or build applications using AI coding agents,
I'd appreciate your feedback, contributions, and suggestions.</p>
<p><strong>The bigger question I'm exploring is this: as AI agents become more
capable at writing code, how do we give them better access to the
runtime context they need to debug that code?</strong></p>
<p>Kera is one small attempt at answering that question.</p>
]]></content:encoded></item><item><title><![CDATA[Building a Zero-Dependency, Form-First WhatsApp Widget for React & Plain HTML]]></title><description><![CDATA[An accessible, zero-dependency WhatsApp chat widget for React 18/19 and plain HTML with form-first lead capture, UTM attribution, BYO-AI, and live chat.]]></description><link>https://mcdavidobioha.hashnode.dev/building-a-zero-dependency-form-first-whatsapp-widget-for-react-plain-html</link><guid isPermaLink="true">https://mcdavidobioha.hashnode.dev/building-a-zero-dependency-form-first-whatsapp-widget-for-react-plain-html</guid><category><![CDATA[React]]></category><category><![CDATA[TypeScript]]></category><category><![CDATA[whatsapp]]></category><category><![CDATA[Open Source]]></category><category><![CDATA[Web Development]]></category><dc:creator><![CDATA[Mcdavid Obioha]]></dc:creator><pubDate>Wed, 02 Dec 2026 16:17:04 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b103e969cf4d0ae7d49a059/fda94b0b-0dc5-44c7-82ba-0864a6b7ec0e.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Most WhatsApp widgets drop visitors straight into an empty chat screen.</p>
<p>In practice, that creates three recurring problems for product teams and businesses:</p>
<ol>
<li>Support reps get vague <em>"Hi"</em> messages with zero context on what the visitor actually needs.</li>
<li>Marketing teams have no idea which landing page or campaign generated the conversation.</li>
<li>Desktop visitors click the launcher, realize they don't have the WhatsApp desktop client open, and close the tab—leaving zero lead record behind.</li>
</ol>
<p>I built <a href="https://www.npmjs.com/package/whatsapp-chat-widget-react"><strong>whatsapp-chat-widget-react</strong></a> (crossing <strong>320+ weekly downloads</strong>) to solve these gaps with a <strong>form-first</strong>, <strong>zero-dependency</strong>, <strong>privacy-aware</strong> architecture—plus a standalone script build for non-React sites.</p>
<img src="https://raw.githubusercontent.com/mcdavidobioha/whatsapp-chat-widget-react-typescript/b4b95591d410004e9ee34cae1d8fd81110a3ffca/assets/demo.gif" alt="Widget walkthrough" style="display:block;margin:0 auto" />

<p>👉 <a href="https://mcdavidobioha.github.io/whatsapp-chat-widget-react-typescript">Try the Interactive Playground</a> | ⭐ <a href="https://github.com/mcdavidobioha/whatsapp-chat-widget-react-typescript">GitHub Repo</a> | 📦 <a href="https://www.npmjs.com/package/whatsapp-chat-widget-react">npm Package</a></p>
<hr />
<h2>Core Architecture &amp; Engineering Tradeoffs</h2>
<h3>1. Form-First Pre-Qualification Without a Backend</h3>
<p>Instead of launching an empty thread immediately, the widget opens an accessible contact form (name, subject, and message). Once submitted, it formats a clean text payload and opens WhatsApp directly via standard deep links—requiring no server, database, or WhatsApp Business API account to get started.</p>
<h3>2. Privacy-First Attribution &amp; Token Stripping</h3>
<p>When context tracking is enabled, the widget appends the page title, current path, and UTM campaign tags (<code>utm_source</code>, <code>utm_medium</code>, <code>utm_campaign</code>) to the bottom of the message.</p>
<p>To protect user privacy, <strong>query strings and URL fragments are stripped automatically</strong> before building the footer. That ensures password-reset tokens, magic-link parameters, or sensitive session IDs in a URL never leak into support chat histories. <em>(Open the playground link above and submit a test message to see</em> <code>utm_source=hashnode</code> <em>captured cleanly.)</em></p>
<h3>3. Native Timezone Business Hours &amp; Smart Agent Routing</h3>
<ul>
<li><strong>Department Picker:</strong> Configure multiple contacts or departments with avatars or initials using accessible radio-group semantics.</li>
<li><strong>Zero Date-Library Bloat:</strong> Instead of shipping heavy date dependencies, business hours evaluate schedules using the browser's built-in <code>Intl.DateTimeFormat</code> API—automatically respecting daylight saving rules and preselecting the first online agent.</li>
</ul>
<h3>4. Dual-Mode Transport: Handoff or Live In-Widget Chat</h3>
<p>Not every visitor wants to leave your website to continue a conversation. By passing a lightweight webhook adapter (<code>whatsapp-chat-widget-react/adapters</code>), the panel switches from an external handoff launcher into a live two-way thread right inside the page:</p>
<ul>
<li>Connect automation tools like <strong>n8n</strong>, <strong>Make</strong>, <strong>Zapier</strong>, or a <strong>WhatsApp Cloud API</strong> proxy.</li>
<li>Conversations persist across page reloads via <code>sessionStorage</code>, show delivery states with retry controls, and include an escape hatch to transfer the full transcript to the WhatsApp app at any moment.</li>
</ul>
<h3>5. Bring-Your-Own-AI (Zero SDK Bloat &amp; Fail-Open)</h3>
<p>Shipping an AI SDK inside a UI component library bloats bundles and risks exposing secret keys in browser network requests. Instead, the <code>ai</code> adapter connects to your own <code>/v1/chat/completions</code> proxy (OpenAI, Claude via OpenRouter or LiteLLM, Cloudflare AI Gateway, Groq, or Ollama):</p>
<ul>
<li><strong>One-Click Message Polisher:</strong> Adds an optional <em>"Polish with AI"</em> action inside the textarea (with instant Undo) so visitors can turn rough notes into structured inquiries.</li>
<li><strong>Intent Routing &amp; FAQ Deflection:</strong> Classifies incoming topics to route visitors to the right department or answer routine questions in-widget before handing off to a human.</li>
<li><strong>Privacy &amp; Resilience:</strong> Phone numbers are never included in AI triage payloads, and if your proxy times out or fails, the widget fails open so the visitor is never blocked from reaching support.</li>
</ul>
<h3>6. Popup-Blocker Safe Lead Capture</h3>
<p>To prevent lost desktop leads, a background webhook URL fires a non-blocking JSON payload using <code>navigator.sendBeacon</code> (falling back to <code>fetch</code> with <code>keepalive</code>) the moment a visitor submits.</p>
<p>Browsers also block <code>window.open</code> popups if an asynchronous network call takes too long after a click event. When an async AI triage or webhook hook consumes the browser's user-gesture token, the widget detects it and renders an explicit <strong>"Open WhatsApp"</strong> confirmation button rather than letting the browser silently block the window.</p>
<h3>7. Programmatic Control &amp; No-React Script Build</h3>
<ul>
<li><strong>React Hook:</strong> Wrap your app in the optional provider to trigger <code>openWithDraft({ subject, message })</code> from any pricing table, navbar button, or product card.</li>
<li><strong>Standalone Script:</strong> For static HTML, Webflow, or Shopify sites, a single <code>standalone.global.js</code> bundle renders inside a <strong>Shadow DOM</strong> boundary—preventing host CSS frameworks from breaking the widget's layout.</li>
</ul>
<hr />
<h2>Quick Start</h2>
<h3>React 18 &amp; 19</h3>
<pre><code class="language-bash">npm install whatsapp-chat-widget-react
</code></pre>
<pre><code class="language-tsx">import { WhatsAppChat } from 'whatsapp-chat-widget-react';

export function SupportLauncher() {
  return &lt;WhatsAppChat phoneNumber="+15550192834" title="Support Desk" includePageContext /&gt;;
}
</code></pre>
<h3>Plain HTML / No-React</h3>
<pre><code class="language-html">&lt;script
  src="https://jsdelivr.net"
  data-phone="+15550192834"
  data-title="Support Desk"
  defer
&gt;&lt;/script&gt;
</code></pre>
<hr />
<h2>Explore &amp; Contribute</h2>
<ul>
<li><strong>Interactive Live Playground:</strong> <a href="https://mcdavidobioha.github.io/whatsapp-chat-widget-react-typescript">https://mcdavidobioha.github.io/whatsapp-chat-widget-react-typescript</a></li>
<li><strong>GitHub Repository:</strong> <a href="https://github.com/mcdavidobioha/whatsapp-chat-widget-react-typescript">https://github.com/mcdavidobioha/whatsapp-chat-widget-react-typescript</a></li>
<li><strong>Full Feature Breakdown:</strong> <a href="https://github.com/mcdavidobioha/whatsapp-chat-widget-react-typescript/blob/main/FEATURES.md">FEATURES.md</a></li>
<li><strong>npm Package:</strong> <a href="https://www.npmjs.com/package/whatsapp-chat-widget-react">https://www.npmjs.com/package/whatsapp-chat-widget-react</a></li>
</ul>
<p>If you try it out or have ideas for new adapters, feel free to open an issue or PR on GitHub!</p>
]]></content:encoded></item></channel></rss>