<?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>Vibe Coding Forem: Nextrader</title>
    <description>The latest articles on Vibe Coding Forem by Nextrader (@nextrader).</description>
    <link>https://vibe.forem.com/nextrader</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%2F3907013%2Fc1a58ab0-f189-43bf-a53a-19dcfa7b8545.png</url>
      <title>Vibe Coding Forem: Nextrader</title>
      <link>https://vibe.forem.com/nextrader</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://vibe.forem.com/feed/nextrader"/>
    <language>en</language>
    <item>
      <title>How I Built a Fully Automated SEO Blog for $0/Month (Cloudflare + Gemini API)</title>
      <dc:creator>Nextrader</dc:creator>
      <pubDate>Fri, 01 May 2026 04:57:19 +0000</pubDate>
      <link>https://vibe.forem.com/nextrader/how-i-built-a-fully-automated-seo-blog-for-0month-cloudflare-gemini-api-1kag</link>
      <guid>https://vibe.forem.com/nextrader/how-i-built-a-fully-automated-seo-blog-for-0month-cloudflare-gemini-api-1kag</guid>
      <description>&lt;p&gt;I run &lt;a href="https://app.nextrader.live" rel="noopener noreferrer"&gt;Nextrader&lt;/a&gt; — an AI-Powered Trading Bot Platform for Deriv trading. To drive organic traffic, I built a fully automated blog that publishes fresh, SEO-optimized articles twice a day without me touching a thing.&lt;/p&gt;

&lt;p&gt;Here's exactly how it works — the tech stack, architecture decisions, and lessons learned.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Goal
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Publish two trading-focused blog posts per day, fully automated.&lt;/li&gt;
&lt;li&gt;  Each post includes a unique topic, SEO title, meta description, full article content, and an AI-generated cover image.&lt;/li&gt;
&lt;li&gt;  Zero recurring cost — free tier everything.&lt;/li&gt;
&lt;li&gt;  No CMS, no WordPress, no maintenance.&lt;/li&gt;
&lt;/ul&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.amazonaws.com%2Fuploads%2Farticles%2Ft1zu06pxwqtjshmvcnc1.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.amazonaws.com%2Fuploads%2Farticles%2Ft1zu06pxwqtjshmvcnc1.png" alt="deriv bot" width="800" height="713"&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Runtime&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Cloudflare Workers (&lt;code&gt;Hono.js&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Database&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Cloudflare D1 (SQLite)&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Image Storage&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Cloudflare R2&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;AI Text&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Gemini 2.5 Flash&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;AI Images&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Gemini 2.5 Flash (Image Mode)&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Deploy&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;GitHub Actions + Wrangler&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$0/month&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The "Two-Call" Gemini Trick
&lt;/h2&gt;

&lt;p&gt;The biggest challenge with Gemini 2.5 Flash is thinking tokens. When you ask for JSON and a full article in one prompt, the thinking tokens corrupt the JSON output.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix: split it into two calls.&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Call 1 — Metadata only (small JSON):&lt;/strong&gt;
Returns the title, slug, meta description, tags, and an image prompt.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Call 2 — Article content (plain text):&lt;/strong&gt;
Writes the full 600–800 word article as plain text. No JSON wrapping.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This gave me 100% reliable JSON parsing with zero corruption.&lt;/p&gt;

&lt;h2&gt;
  
  
  Unique Topics Forever
&lt;/h2&gt;

&lt;p&gt;The early version used &lt;code&gt;getDayOfYear()&lt;/code&gt; — meaning topics would reset every January 1st and eventually repeat. I fixed this by switching to days since the Unix epoch. Today is day 20,546. Unique topics until the heat death of the universe.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI Image Generation
&lt;/h2&gt;

&lt;p&gt;Each post gets a unique cover image from Gemini's image API, with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;8 rotating color themes&lt;/strong&gt; — deep blue, emerald, crimson, purple, teal, cyan, amber, rose.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Topic-specific scene composition&lt;/strong&gt; described by the metadata call.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Varied layouts&lt;/strong&gt; — close-ups, overhead desk shots, phone screens, laptops.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;WASM compression&lt;/strong&gt; using &lt;code&gt;@jsquash/jpeg&lt;/code&gt; — reduces 1.1 MB PNGs down to ~50 KB JPEGs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  SEO Built In
&lt;/h2&gt;

&lt;p&gt;Every post automatically gets:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Article &lt;code&gt;JSON-LD&lt;/code&gt; structured data.&lt;/li&gt;
&lt;li&gt;  Open Graph tags.&lt;/li&gt;
&lt;li&gt;  Auto-generated &lt;code&gt;sitemap.xml&lt;/code&gt; and &lt;code&gt;robots.txt&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;  Clean slug URLs with no &lt;code&gt;/post/&lt;/code&gt; prefix.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Two-call LLM pattern:&lt;/strong&gt; Never mix structured JSON and long-form text in a single prompt with thinking models.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;WASM in Cloudflare Workers:&lt;/strong&gt; Pass the &lt;code&gt;.wasm&lt;/code&gt; binary manually via &lt;code&gt;init()&lt;/code&gt;, or it fails silently at runtime.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Wrangler deploys wipe dashboard secrets:&lt;/strong&gt; Keep all variables in &lt;code&gt;wrangler.toml&lt;/code&gt; if the repo is private.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Route order matters in Hono:&lt;/strong&gt; &lt;code&gt;/:slug&lt;/code&gt; catches everything, so always register it last.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;PNG vs. JPEG from Gemini:&lt;/strong&gt; Detect magic bytes (&lt;code&gt;0x89 0x50&lt;/code&gt; = PNG, &lt;code&gt;0xFF 0xD8&lt;/code&gt; = JPEG) to handle both formats.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;The live blog auto-publishes at 08:00 and 20:00 UTC every day. No servers. No bills. Just Cloudflare Workers and Gemini doing the work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check out the live blog:&lt;/strong&gt; &lt;a href="https://blog.nextrader.live" rel="noopener noreferrer"&gt;blog.nextrader.live&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cloudflare</category>
      <category>ai</category>
      <category>automation</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
