<?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: FabIAlista</title>
    <description>The latest articles on DEV Community by FabIAlista (@fabialista).</description>
    <link>https://dev.to/fabialista</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%2F3898218%2Fddb92e31-8273-487e-a84a-6e2f070591b1.png</url>
      <title>DEV Community: FabIAlista</title>
      <link>https://dev.to/fabialista</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fabialista"/>
    <language>en</language>
    <item>
      <title>How I built a Brazilian price comparator with AI across 6 retailers (and 9000+ products)</title>
      <dc:creator>FabIAlista</dc:creator>
      <pubDate>Sun, 26 Apr 2026 02:10:07 +0000</pubDate>
      <link>https://dev.to/fabialista/how-i-built-a-brazilian-price-comparator-with-ai-across-6-retailers-and-9000-products-mdl</link>
      <guid>https://dev.to/fabialista/how-i-built-a-brazilian-price-comparator-with-ai-across-6-retailers-and-9000-products-mdl</guid>
      <description>&lt;h1&gt;
  
  
  How I built a Brazilian price comparator with AI across 6 retailers
&lt;/h1&gt;

&lt;p&gt;Brazilian e-commerce is fragmented. The same product costs different prices in &lt;strong&gt;Amazon BR, Mercado Livre, Carrefour, Magalu, Shopee, and Americanas&lt;/strong&gt; — sometimes a 40% difference. Existing comparators are slow, full of ads, and miss most of the catalog.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://www.fabialista.com.br" rel="noopener noreferrer"&gt;FabIAlista&lt;/a&gt; — a free, AI-powered price comparator with &lt;strong&gt;9.000+ products&lt;/strong&gt; across all six retailers, an OCR scanner that reads handwritten shopping lists, and a conversational AI that suggests substitutes.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compare prices in real-time&lt;/strong&gt; across 6 stores&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OCR scanner&lt;/strong&gt;: photograph a handwritten/printed shopping list, get the cheapest store&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI chat (Portuguese)&lt;/strong&gt;: "I want to make a barbecue for 10 people, R$ 200 budget" → it builds the list&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unified affiliate checkout&lt;/strong&gt;: one click sends each item to the best store&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cashback integration&lt;/strong&gt; with Awin, Lomadee, Admitad&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;100% free&lt;/strong&gt;, no signup wall, LGPD-compliant&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: React + Vite + Tailwind, deployed on Hostinger VPS via Nginx&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt;: Node.js + Express, PostgreSQL, Redis cache, PM2 cluster&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI&lt;/strong&gt;: Local Ollama (qwen2.5:14b) + fine-tuned fabia-8b, with Gemini API as free fallback&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OCR&lt;/strong&gt;: Tesseract 5.3.4 with &lt;code&gt;por+eng&lt;/code&gt; traineddata, Sharp preprocessing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vector search&lt;/strong&gt;: ChromaDB on port 8200, indexed with 4068 products&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SEO&lt;/strong&gt;: 134 pre-rendered static HTML pages, schema.org Product + BreadcrumbList + AggregateRating, IndexNow API pushing to Bing/Yandex/Naver&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Hard problems I solved
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Multi-token search
&lt;/h3&gt;

&lt;p&gt;Brazilian users search like "café 3 corações 500g torrado moído" — six tokens. Most engines OR these. I split queries into tokens and &lt;strong&gt;require all of them present&lt;/strong&gt;, case-insensitive, accent-stripped. Result: precision went from 60% to 94%.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Affiliate URL drift
&lt;/h3&gt;

&lt;p&gt;Every retailer changes their URL format every few months. Hardcoded affiliate links rotted constantly. Solution: &lt;strong&gt;always regenerate URLs at runtime&lt;/strong&gt; via &lt;code&gt;buildAffiliateUrl(product, store)&lt;/code&gt;. Never persist them. Lost 3 weekends to this lesson.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Image CDN blocks
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;images-na.ssl-images-amazon.com&lt;/code&gt; returns 404 for hotlinked product images. I had to whitelist only the CDNs that actually allow embedding: &lt;code&gt;vtexassets.com&lt;/code&gt;, &lt;code&gt;vteximg.com.br&lt;/code&gt;, &lt;code&gt;mlstatic.com&lt;/code&gt;, &lt;code&gt;kabum.com.br&lt;/code&gt;, &lt;code&gt;alicdn.com&lt;/code&gt;. Plus a fallback chain with WebP → AVIF → PNG.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. SEO from zero
&lt;/h3&gt;

&lt;p&gt;Started indexed with 0 pages on Google. Today: ~9.000 indexed across Google, Bing, Yandex. Key tactics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;134 static pre-rendered HTMLs (one per category, brand, blog post, comparison page)&lt;/li&gt;
&lt;li&gt;Sitemap split: products, categories, brands, pages, blog, images, local, comparisons&lt;/li&gt;
&lt;li&gt;IndexNow API pushing every product update to Bing+Yandex+Naver in &amp;lt;1 sec&lt;/li&gt;
&lt;li&gt;Schema.org &lt;code&gt;Organization&lt;/code&gt; + &lt;code&gt;WebSite&lt;/code&gt; + &lt;code&gt;SearchAction&lt;/code&gt; + &lt;code&gt;Product&lt;/code&gt; + &lt;code&gt;BreadcrumbList&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Brazilian users don't trust signup walls.&lt;/strong&gt; Bouncing rate dropped 60% when I removed forced login.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local LLMs beat cloud for cost when you have GPU.&lt;/strong&gt; RTX 5070 Ti runs qwen2.5:14b at ~8s/response, vs $0.003/req on Claude. Break-even at 100 reqs/day.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scraping is a dead-end.&lt;/strong&gt; Switched to official affiliate APIs everywhere. More stable, legal, monetizable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schema markup moves the needle.&lt;/strong&gt; AggregateRating + Product schema added rich snippets that lifted CTR ~30%.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;Mobile app (React Native + Expo) with native camera OCR&lt;/li&gt;
&lt;li&gt;Voice search ("Alexa, what's the cheapest rice today?")&lt;/li&gt;
&lt;li&gt;Black Friday Brazil 2026 dashboard (price history per SKU, alerts at -30%)&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Feedback welcome — especially from Brazilians who've fought e-commerce price chaos.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built solo in Recife-PE, Brazil.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>ai</category>
      <category>ecommerce</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
