<?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: He Liu</title>
    <description>The latest articles on DEV Community by He Liu (@outfitrating).</description>
    <link>https://dev.to/outfitrating</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%2F4253314%2Fd30b0f48-95d1-41d1-ab35-394e0aa6c497.png</url>
      <title>DEV Community: He Liu</title>
      <link>https://dev.to/outfitrating</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/outfitrating"/>
    <language>en</language>
    <item>
      <title>From 46 to 81 in two swaps: I built an outfit checker that tells you the one thing to change</title>
      <dc:creator>He Liu</dc:creator>
      <pubDate>Thu, 19 Nov 2026 08:29:36 +0000</pubDate>
      <link>https://dev.to/outfitrating/46-79-81-i-built-an-outfit-checker-that-tells-you-the-one-thing-to-change-3a80</link>
      <guid>https://dev.to/outfitrating/46-79-81-i-built-an-outfit-checker-that-tells-you-the-one-thing-to-change-3a80</guid>
      <description>&lt;p&gt;One photo scored &lt;strong&gt;46&lt;/strong&gt;. Change the shoes: &lt;strong&gt;79&lt;/strong&gt;. Hem the jeans: &lt;strong&gt;81&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F83mkuk0l127hwpvx0a9i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F83mkuk0l127hwpvx0a9i.png" alt="Same outfit, two swaps: 46, 79, 81" width="800" height="529"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's the whole idea behind &lt;a href="https://outfitrating.com" rel="noopener noreferrer"&gt;OutfitRating&lt;/a&gt;. You upload a photo of your outfit and get a 0–100 score, a one-line verdict, and &lt;strong&gt;the one swap that would help most&lt;/strong&gt;. The photos above are AI-generated test images, and all three scores are real results from the live checker (each photo scored three times; these are the medians).&lt;/p&gt;

&lt;p&gt;For the first photo, the check said:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The chunky knit and dark jeans coordinate well, but the flat open slides clash with the heavy cold-weather pieces.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Change:&lt;/strong&gt; the flat black leather slides → &lt;strong&gt;To:&lt;/strong&gt; black chunky leather loafers&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Not "try something different". One specific thing you can do before you leave the house.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgeyx5djvo56swmurtzwi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgeyx5djvo56swmurtzwi.png" alt="A full result: score, verdict, the swap, and two more fixes" width="536" height="581"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Rate one outfit.&lt;/strong&gt; Score, verdict, the swap and why.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outfit + one piece.&lt;/strong&gt; Thinking of buying shoes, a bag or a jacket? Upload your outfit and the piece, and it tells you whether it goes with what you already wear. Only the new piece is up for change.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two looks side by side.&lt;/strong&gt; Same person, two outfits. It says which scores higher and gives the lower one a swap.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The decisions that shaped it
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. It judges the clothes, never the person.&lt;/strong&gt; No comments on body, face, skin tone or weight. The prompt forbids it, and the server also scans every answer for body wording and asks the model again if it finds any.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. The model doesn't pick the final score.&lt;/strong&gt; A single number out of 100 straight from a vision model is hard to keep consistent from one photo to the next. So the model only returns three part scores (color, proportion, occasion) and how strong any clash is. The server weights them 35/30/35, and a clear clash (heavy jeans with flip-flops, say) caps the total below 60.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Swaps stay inside the photo.&lt;/strong&gt; Change the shoes, adjust a hem, swap the top, add or remove one accessory. No shopping links, no brands, nothing you'd have to go out and buy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Photos are processed in the browser.&lt;/strong&gt; Images are resized to 768px on a canvas before upload. The server does no image processing and doesn't save photos. The share image is drawn on a canvas in the browser too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Next.js 16 (App Router) + Tailwind, deployed to Cloudflare Workers with &lt;code&gt;@opennextjs/cloudflare&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;A Gemini vision model on the paid API, with results cached for 24 hours, keyed by a SHA-256 of the images&lt;/li&gt;
&lt;li&gt;Supabase for sign-in and check balances, Stripe for one-time packs (no subscription)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What went wrong
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Native image libraries don't run on Workers.&lt;/strong&gt; &lt;code&gt;sharp&lt;/code&gt; was out from day one, so every resize happens in the browser with Canvas. It turned out better anyway: smaller uploads and faster checks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The model loves the number 79.&lt;/strong&gt; Early on I noticed the same few scores kept coming back. So I wrote a check that runs 100 test photos and fails if most scores aren't between 60 and 89, if 10% or more are 90 and above, or if any single score shows up more than 10 times. It caught real problems: when I tried a cheaper, faster model, 79 came up 16 times out of 100, and it also missed every "this photo can't be rated" case (a cropped photo, two different people). I stayed with the more expensive model. Every prompt change now has to pass this check before it ships.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The prompt was the main cost.&lt;/strong&gt; The first version was about 6,200 tokens per request. Cutting repeated sections brought it to about 4,800, and the cost per check went from about $0.0068 to $0.0055. Before shipping, the shorter prompt went through the same 100-photo check twice.&lt;/p&gt;

&lt;h2&gt;
  
  
  I'd love your feedback
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdcxhg18vcm9e08ir48gx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdcxhg18vcm9e08ir48gx.png" alt="The home page" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does the first screen make it obvious what the tool does?&lt;/li&gt;
&lt;li&gt;Pricing: free checks to start, then one-time packs (15 checks for $4.99, 40 for $9.99). Does that feel fair?&lt;/li&gt;
&lt;li&gt;If you've launched a consumer tool from zero, what got you your first real users?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try it at &lt;a href="https://outfitrating.com" rel="noopener noreferrer"&gt;outfitrating.com&lt;/a&gt;. In the US, UK, Canada and Australia you can do one check without an account.&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>cloudflare</category>
      <category>ai</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
