<?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: Param Jaisinghani</title>
    <description>The latest articles on DEV Community by Param Jaisinghani (@param_jaisinghani_b7c9705).</description>
    <link>https://dev.to/param_jaisinghani_b7c9705</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%2F4091227%2F9b4ca728-97b8-43fe-be92-12246f42c4de.png</url>
      <title>DEV Community: Param Jaisinghani</title>
      <link>https://dev.to/param_jaisinghani_b7c9705</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/param_jaisinghani_b7c9705"/>
    <language>en</language>
    <item>
      <title>I Built an AI That Settles "Who Would Win" Arguments — Here's How</title>
      <dc:creator>Param Jaisinghani</dc:creator>
      <pubDate>Sun, 23 Aug 2026 20:12:19 +0000</pubDate>
      <link>https://dev.to/param_jaisinghani_b7c9705/i-built-an-ai-that-settles-who-would-win-arguments-heres-how-1en8</link>
      <guid>https://dev.to/param_jaisinghani_b7c9705/i-built-an-ai-that-settles-who-would-win-arguments-heres-how-1en8</guid>
      <description>&lt;p&gt;Every group chat has that debate that never resolves: Messi or Ronaldo, Naruto or Goku, India or China. Someone always says "there's no real answer" and the thread dies. I got annoyed enough by this that I built a site that actually gives an answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://apexversus.com" rel="noopener noreferrer"&gt;APEX Versus&lt;/a&gt; lets you type any two people, characters, companies, or countries and get an AI verdict across 7 power dimensions — power, influence, wealth, intelligence, legacy, popularity, and potential. It picks a winner, gives an Apex Score for each side, and explains the reasoning instead of just flipping a coin.&lt;/p&gt;

&lt;p&gt;Try it right now, no signup needed for your first few: &lt;strong&gt;&lt;a href="https://apexversus.com" rel="noopener noreferrer"&gt;https://apexversus.com&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this was harder than it sounds
&lt;/h2&gt;

&lt;p&gt;The obvious approach — "just ask an LLM who'd win" — falls apart fast. Ask the same matchup twice and you get wildly different reasoning, sometimes a different winner entirely. I ended up structuring every prompt around the same fixed rubric (the 7 dimensions), forcing the model to score each one explicitly before it's allowed to declare a winner. That single change took the results from "random vibes" to something that felt consistent and defensible.&lt;/p&gt;

&lt;p&gt;Caching was the other half of the battle. Every unique matchup gets computed once via Gemini and cached in Firestore — reads stay public so anonymous visitors get instant results, but writes are locked down server-side (more on why below).&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: plain HTML/JS, no framework — kept it simple since this was a solo build&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt;: Vercel serverless functions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI&lt;/strong&gt;: Gemini API for generating verdicts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DB/Auth&lt;/strong&gt;: Firebase (Firestore + Auth)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Payments&lt;/strong&gt;: Razorpay for the paid tier&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A real security lesson
&lt;/h2&gt;

&lt;p&gt;Early on, the Firestore rules for the cache collection were wide open — anyone could PATCH a battle's cached verdict directly via the public REST API, no auth required. On a site whose whole product is declaring "winners" about real people and companies, that's a content-injection hole waiting to be exploited. Locked it down so writes only happen through the Admin SDK server-side, reads stay public. Same story for daily-battle content and user credit balances, which I found could be self-granted client-side before the fix. Worth a reminder that "nobody's going to bother" is not a security model, even for a small solo project.&lt;/p&gt;

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

&lt;p&gt;Referral system, push notifications for daily battles, and expanding the SEO-friendly comparison pages. Built and run solo, so feedback — what's broken, what's missing, what matchup you tried that gave a bad answer — is genuinely useful and I read all of it.&lt;/p&gt;

&lt;p&gt;Try it: &lt;strong&gt;&lt;a href="https://apexversus.com" rel="noopener noreferrer"&gt;https://apexversus.com&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

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