<?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: Charles</title>
    <description>The latest articles on DEV Community by Charles (@xpdev99).</description>
    <link>https://dev.to/xpdev99</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4090391%2F36b8f46f-f98e-4c94-b712-f24e81d1c6a9.jpg</url>
      <title>DEV Community: Charles</title>
      <link>https://dev.to/xpdev99</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xpdev99"/>
    <language>en</language>
    <item>
      <title>I Built a Chrome DevTools Extension to Mock APIs Without Leaving the Browser</title>
      <dc:creator>Charles</dc:creator>
      <pubDate>Sun, 23 Aug 2026 04:03:52 +0000</pubDate>
      <link>https://dev.to/xpdev99/i-built-a-chrome-devtools-extension-to-mock-apis-without-leaving-the-browser-1klf</link>
      <guid>https://dev.to/xpdev99/i-built-a-chrome-devtools-extension-to-mock-apis-without-leaving-the-browser-1klf</guid>
      <description>&lt;p&gt;Every frontend developer knows this pain: the backend isn't ready, it's down, or it returns data that doesn't match the design. You need to build UI against an API that doesn't exist yet.&lt;/p&gt;

&lt;p&gt;The usual workarounds all have friction:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spin up a mock server&lt;/strong&gt; (json-server, mockoon) — another process, another port, another config to maintain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use a proxy tool&lt;/strong&gt; — powerful, but heavy setup for a quick "give me this response" moment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Edit your code&lt;/strong&gt; — comment out the fetch, return hardcoded data, then remember to revert it before pushing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DevTools Request blocking&lt;/strong&gt; — blocks requests, but can't craft a response.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I built &lt;strong&gt;Mokup&lt;/strong&gt;: a Chrome DevTools panel that captures live API requests and turns them into editable mock rules. No proxy. No server. No code changes.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/O6DSaGU4gJQ"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;Install from the Chrome Web Store.&lt;/li&gt;
&lt;li&gt;Open DevTools → Mokup tab → enable &lt;strong&gt;Recording&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Interact with your app — requests appear in the Live tab with method, URL, status, type, and timing.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Create Mock&lt;/strong&gt; on any request, edit the response body, toggle the rule on. Done — the next matching request returns your mock response.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Mocked requests are logged back to the Live tab so you can see what was intercepted, and you can enable/disable rules globally or per-rule.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why DevTools?
&lt;/h2&gt;

&lt;p&gt;Because that's where frontend developers already live. You don't open another tool, you don't change your workflow — the mock layer is right next to the network tab you're already looking at.&lt;/p&gt;

&lt;h2&gt;
  
  
  Details worth knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Manifest V3, injected into the inspected tab &lt;strong&gt;only when the panel is open&lt;/strong&gt; (no background interception of your browsing).&lt;/li&gt;
&lt;li&gt;Mock rules and captured data stay &lt;strong&gt;local&lt;/strong&gt; — nothing is sent to any server.&lt;/li&gt;
&lt;li&gt;Free plan: up to 3 mock rules. Pro license (Polar license-key activation): unlimited rules.&lt;/li&gt;
&lt;li&gt;Honest limitation: this is a page-script interception layer for &lt;code&gt;fetch&lt;/code&gt; and XHR. It's not a full proxy — navigation requests, WebSockets, and binary responses aren't intercepted (yet).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Install: &lt;a href="https://chromewebstore.google.com/detail/mokup-mock-apis-in-devtoo/pemnjopjhbagogaojfgcfamailepnebb" rel="noopener noreferrer"&gt;https://chromewebstore.google.com/detail/mokup-mock-apis-in-devtoo/pemnjopjhbagogaojfgcfamailepnebb&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Demo video: &lt;a href="https://www.youtube.com/watch?v=O6DSaGU4gJQ" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=O6DSaGU4gJQ&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you try it, I'd love feedback — especially on the capture and mock-rule workflow. What's the biggest pain point in your current API mocking setup?&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>api</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
