<?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>Forem: Jawad Khan</title>
    <description>The latest articles on Forem by Jawad Khan (@jawad_khan1992).</description>
    <link>https://forem.com/jawad_khan1992</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%2F3813332%2F65b1e1d4-5dd0-416c-8530-a69b7708e5d5.jpg</url>
      <title>Forem: Jawad Khan</title>
      <link>https://forem.com/jawad_khan1992</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jawad_khan1992"/>
    <language>en</language>
    <item>
      <title>How I Built a Mock API Platform Solo and Shipped It to Production - MockStation.io</title>
      <dc:creator>Jawad Khan</dc:creator>
      <pubDate>Sun, 08 Mar 2026 19:01:54 +0000</pubDate>
      <link>https://forem.com/jawad_khan1992/how-i-built-a-mock-api-platform-solo-and-shipped-it-to-production-3h6l</link>
      <guid>https://forem.com/jawad_khan1992/how-i-built-a-mock-api-platform-solo-and-shipped-it-to-production-3h6l</guid>
      <description>&lt;p&gt;Every project I've worked on had the same frustration.&lt;/p&gt;

&lt;p&gt;The frontend team is ready. QA is ready. The demo is scheduled for tomorrow.&lt;/p&gt;

&lt;p&gt;But the backend isn't ready.&lt;/p&gt;

&lt;p&gt;So everyone waits.&lt;/p&gt;

&lt;p&gt;I've seen this happen on small projects, at agencies, at startups. It's one of those problems that feels so normal that teams just accept it as part of the process. I didn't want to accept it anymore — so I  built MockStation.io.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is MockStation?&lt;/strong&gt;&lt;br&gt;
MockStation is a platform that lets you create fully functional mock API endpoints in minutes — no backend required, no infrastructure to manage.&lt;/p&gt;

&lt;p&gt;You define your endpoints, methods, headers, and response payloads. MockStation gives you a live, shareable URL that responds exactly like a real API. JSON, XML, GraphQL — all supported out of the box.&lt;/p&gt;

&lt;p&gt;The part I'm most proud of is the dynamic test data engine. Instead of returning the same static JSON every time, you define data rules — names, emails, IDs, dates, numeric ranges — and every API call returns fresh, realistic data. It's the difference between testing with dummy data and testing with production-like data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The stack&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Backend: FastAPI running on AWS Lambda (serverless, scales to zero when idle)&lt;/li&gt;
&lt;li&gt;Frontend: Next.js on Vercel&lt;/li&gt;
&lt;li&gt;Database: MySQL on RDS&lt;/li&gt;
&lt;li&gt;Auth: JWT + Google OAuth&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I chose Lambda for the backend because MockStation's traffic pattern is unpredictable — a new user might hammer endpoints for an hour then go quiet. Paying for an always-on server didn't make sense at this stage. Lambda keeps costs near zero until there's real load.&lt;/p&gt;

&lt;p&gt;FastAPI was an easy choice — it's fast, the developer experience is excellent, and the automatic OpenAPI docs saved me a lot of time during development.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The hardest part&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Building the mock server routing was the trickiest piece.&lt;/p&gt;

&lt;p&gt;Every organization gets their own namespace — so api.mockstation.io/acme-corp/v1/orders routes to the right mock endpoint for the right team. Getting subdomain extraction, path matching, and wildcard routing working reliably across environments took longer than I expected.&lt;/p&gt;

&lt;p&gt;The other challenge was the dynamic data engine. Supporting templates like {{faker.name}}, {{faker.email}}, randomized ranges, and conditional responses while keeping the response time under 100ms required careful caching design.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it can do today&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create endpoints with custom methods, headers, query params, and response bodies&lt;/li&gt;
&lt;li&gt;Return JSON, XML, GraphQL, CSV, or Excel responses&lt;/li&gt;
&lt;li&gt;Generate dynamic, realistic test data on every request&lt;/li&gt;
&lt;li&gt;Share endpoints instantly with your team&lt;/li&gt;
&lt;li&gt;Monitor usage and request history from a clean dashboard&lt;/li&gt;
&lt;li&gt;Multi-project and multi-team support&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Where I am now&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Launched. Zero users. Trying to fix that.&lt;/p&gt;

&lt;p&gt;The product is live at mockstation.io with a 30-day free trial — no credit card required. The trial includes 15,000 API requests/month, 5 projects, 10 endpoints per project, JSON, XML, and GraphQL support.&lt;/p&gt;

&lt;p&gt;Paid plans start at $9/month for teams that need more.&lt;/p&gt;

&lt;p&gt;What's next&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ProductHunt launch (next week)&lt;/li&gt;
&lt;li&gt;Webhook notifications on endpoint invocations&lt;/li&gt;
&lt;li&gt;Request history with diff view&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you've ever been blocked waiting on a backend that wasn't ready — I'd love for you to try it and tell me what you think.&lt;/p&gt;

&lt;p&gt;mockstation.io — feedback welcome in the comments.&lt;/p&gt;

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