<?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: MockShift Studio</title>
    <description>The latest articles on DEV Community by MockShift Studio (@mockshift_studio).</description>
    <link>https://dev.to/mockshift_studio</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%2F4240405%2Ff9eac4e4-e250-4d65-9d5d-6f421a7fba31.png</url>
      <title>DEV Community: MockShift Studio</title>
      <link>https://dev.to/mockshift_studio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mockshift_studio"/>
    <language>en</language>
    <item>
      <title>Stop Hand-Typing TypeScript &amp; Zod Schemas: How I Built a Chrome SidePanel API Mocker &amp; Code Generator</title>
      <dc:creator>MockShift Studio</dc:creator>
      <pubDate>Thu, 12 Nov 2026 06:59:15 +0000</pubDate>
      <link>https://dev.to/mockshift_studio/stop-hand-typing-typescript-zod-schemas-how-i-built-a-chrome-sidepanel-api-mocker-code-3h1k</link>
      <guid>https://dev.to/mockshift_studio/stop-hand-typing-typescript-zod-schemas-how-i-built-a-chrome-sidepanel-api-mocker-code-3h1k</guid>
      <description>&lt;p&gt;While building frontend applications in React and TypeScript, two repetitive tasks always slowed me down:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Testing UI edge cases (&lt;code&gt;500&lt;/code&gt; Server Error, &lt;code&gt;401&lt;/code&gt; Unauthorized, or &lt;code&gt;3000ms&lt;/code&gt; slow network latency)&lt;/strong&gt; without modifying frontend code or setting up heavy proxy tools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Manually writing TypeScript &lt;code&gt;interface&lt;/code&gt; definitions and &lt;code&gt;Zod&lt;/code&gt; validation schemas&lt;/strong&gt; from deeply nested API JSON responses.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To solve both in a single workflow, I built &lt;strong&gt;API Craft Pro&lt;/strong&gt; — a lightweight, 100% local-first Chrome SidePanel extension.&lt;/p&gt;




&lt;h3&gt;
  
  
  ⚡ 1. Intercept Live XHR &amp;amp; Fetch Traffic in the SidePanel
&lt;/h3&gt;

&lt;p&gt;Instead of constantly switching between the DevTools Network tab and your code editor, API Craft Pro streams your live &lt;code&gt;fetch&lt;/code&gt; and &lt;code&gt;XMLHttpRequest&lt;/code&gt; JSON payloads directly in the Chrome SidePanel alongside your web app.&lt;/p&gt;

&lt;h3&gt;
  
  
  🎭 2. Zero-Config API Mocking &amp;amp; Latency Simulation
&lt;/h3&gt;

&lt;p&gt;With a single click on &lt;strong&gt;&lt;code&gt;Convert to Mock&lt;/code&gt;&lt;/strong&gt;, any captured API request becomes an active interception rule:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Override HTTP status codes (&lt;code&gt;200&lt;/code&gt;, &lt;code&gt;201&lt;/code&gt;, &lt;code&gt;400&lt;/code&gt;, &lt;code&gt;401&lt;/code&gt;, &lt;code&gt;403&lt;/code&gt;, &lt;code&gt;404&lt;/code&gt;, &lt;code&gt;500&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Inject simulated network latency (&lt;code&gt;0ms&lt;/code&gt; – &lt;code&gt;60,000ms&lt;/code&gt;) to test loading skeletons and timeouts&lt;/li&gt;
&lt;li&gt;Edit the JSON response payload on the fly with instant syntax validation&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🛠️ 3. Instant AST Code Generation (TypeScript, Zod, JSON Schema &amp;amp; Fetch)
&lt;/h3&gt;

&lt;p&gt;Select any live API response (or paste custom JSON) to immediately generate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clean &lt;strong&gt;TypeScript Interfaces&lt;/strong&gt; (with automatic nested object and union array inference)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zod Schemas&lt;/strong&gt; for runtime validation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Draft-07 JSON Schemas&lt;/strong&gt; &amp;amp; &lt;strong&gt;Typed Async Fetch Functions&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  🔒 100% Local-First Privacy
&lt;/h3&gt;

&lt;p&gt;All intercepted traffic and mock rules are stored strictly locally inside &lt;code&gt;chrome.storage.local&lt;/code&gt;. Zero data ever leaves your browser.&lt;/p&gt;




&lt;h3&gt;
  
  
  🚀 Try It Out (Free)
&lt;/h3&gt;

&lt;p&gt;The core live traffic sniffer, API mocker, and TypeScript interface generator are completely free to use!&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://chromewebstore.google.com/detail/amdohgdofjccadgobnalnmaphalloapm" rel="noopener noreferrer"&gt;Install API Craft Pro from the Chrome Web Store&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your feedback or feature requests in the comments!&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>react</category>
      <category>webdev</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
