<?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: Dev Ai med</title>
    <description>The latest articles on DEV Community by Dev Ai med (@dev_aimed_d457595107bac8).</description>
    <link>https://dev.to/dev_aimed_d457595107bac8</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%2F4263553%2F0f3063e1-4b04-42f9-bd3a-d422442c0671.png</url>
      <title>DEV Community: Dev Ai med</title>
      <link>https://dev.to/dev_aimed_d457595107bac8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dev_aimed_d457595107bac8"/>
    <language>en</language>
    <item>
      <title>How I Built a 12-Language HTML5 Gaming Portal with Next.js 15 SSG &amp; 3,599 Indexable Pages</title>
      <dc:creator>Dev Ai med</dc:creator>
      <pubDate>Tue, 24 Nov 2026 23:52:07 +0000</pubDate>
      <link>https://dev.to/dev_aimed_d457595107bac8/how-i-built-a-12-language-html5-gaming-portal-with-nextjs-15-ssg-3599-indexable-pages-43g3</link>
      <guid>https://dev.to/dev_aimed_d457595107bac8/how-i-built-a-12-language-html5-gaming-portal-with-nextjs-15-ssg-3599-indexable-pages-43g3</guid>
      <description>&lt;p&gt;Mobile casual apps routinely demand 300 MB of storage and mandatory logins just for a five-minute puzzle round. I built &lt;strong&gt;&lt;a href="https://yogames.online" rel="noopener noreferrer"&gt;YoGames&lt;/a&gt;&lt;/strong&gt; to ship &lt;strong&gt;261+ instant-play HTML5 browser games&lt;/strong&gt; across &lt;strong&gt;29 genres&lt;/strong&gt; and &lt;strong&gt;12 native languages&lt;/strong&gt; with 0 MB installed and fast static HTML delivery on Vercel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture Overview
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Framework:&lt;/strong&gt; Next.js 15 App Router (TypeScript + Tailwind CSS)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pre-rendered + ISR Scale:&lt;/strong&gt; &lt;code&gt;958&lt;/code&gt; statically pre-rendered core pages at build time plus 24-hour CDN ISR covering &lt;strong&gt;3,599 indexable URLs&lt;/strong&gt; across 12 languages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native RTL + LTR Route Groups:&lt;/strong&gt; Separate root layouts (&lt;code&gt;(en)/layout.tsx&lt;/code&gt; and &lt;code&gt;[lang]/layout.tsx&lt;/code&gt;) emit true server-rendered &lt;code&gt;&amp;lt;html lang="ar" dir="rtl"&amp;gt;&lt;/code&gt; for Arabic alongside &lt;code&gt;fr&lt;/code&gt;, &lt;code&gt;es&lt;/code&gt;, &lt;code&gt;pt&lt;/code&gt;, &lt;code&gt;de&lt;/code&gt;, &lt;code&gt;ru&lt;/code&gt;, &lt;code&gt;hi&lt;/code&gt;, &lt;code&gt;vi&lt;/code&gt;, &lt;code&gt;it&lt;/code&gt;, &lt;code&gt;tr&lt;/code&gt;, and &lt;code&gt;id&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Structured Data Stack:&lt;/strong&gt; Every game page ships &lt;code&gt;VideoGame&lt;/code&gt;, &lt;code&gt;HowTo&lt;/code&gt;, &lt;code&gt;FAQPage&lt;/code&gt;, and &lt;code&gt;BreadcrumbList&lt;/code&gt; JSON-LD schemas so search engines and AI assistants can parse controls, difficulty, and gameplay steps cleanly.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Multilingual Sitemap &amp;amp; &lt;code&gt;hreflang&lt;/code&gt; Generation
&lt;/h2&gt;

&lt;p&gt;One tricky part of multi-language SEO in Next.js App Router is generating bidirectional &lt;code&gt;hreflang&lt;/code&gt; links plus &lt;code&gt;x-default&lt;/code&gt; across thousands of URLs. Using &lt;code&gt;src/app/sitemap.ts&lt;/code&gt; with Next.js's built-in &lt;code&gt;alternates.languages&lt;/code&gt; map generates &lt;strong&gt;45,864+ &lt;code&gt;&amp;lt;xhtml:link rel="alternate" hreflang="..."&amp;gt;&lt;/code&gt; entries&lt;/strong&gt; automatically in XML:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;buildHreflangMap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;clean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`/${path}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;map&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;loc&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="no"&gt;LOCALES&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;loc&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"en"&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="n"&gt;clean&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;clean&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"/"&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="sb"&gt;`/${loc}`&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`/${loc}${clean}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;map&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;loc&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`https://yogames.online${p === "/" ? "" : p}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="n"&gt;map&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"x-default"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`https://yogames.online${clean === "/" ? "" : clean}`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;map&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Highlights Live on YoGames
&lt;/h2&gt;

&lt;p&gt;If you want to test the latency, RTL mirroring, or game pages directly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Full No-Download Catalog (261+ games):&lt;/strong&gt; &lt;a href="https://yogames.online/no-download-games" rel="noopener noreferrer"&gt;yogames.online/no-download-games&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Arabic RTL Edition:&lt;/strong&gt; &lt;a href="https://yogames.online/ar" rel="noopener noreferrer"&gt;yogames.online/ar&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Classic 2048 + Corner Strategy Guide:&lt;/strong&gt; &lt;a href="https://yogames.online/games/2048" rel="noopener noreferrer"&gt;yogames.online/games/2048&lt;/a&gt; &amp;amp; &lt;a href="https://yogames.online/guides/how-to-beat-2048-strategy-guide" rel="noopener noreferrer"&gt;How to Beat 2048 Guide&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-Install Alternatives:&lt;/strong&gt; &lt;a href="https://yogames.online/games-like/suika-game" rel="noopener noreferrer"&gt;Games Like Suika Game&lt;/a&gt; and &lt;a href="https://yogames.online/games-like/candy-crush" rel="noopener noreferrer"&gt;Games Like Candy Crush&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chromebook &amp;amp; Quick Break Hub:&lt;/strong&gt; &lt;a href="https://yogames.online/unblocked" rel="noopener noreferrer"&gt;yogames.online/unblocked&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Indexing Checklist That Worked on Day 1
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Submitted both &lt;code&gt;/sitemap.xml&lt;/code&gt; and &lt;code&gt;/feed.xml&lt;/code&gt; (RSS 2.0) to Google Search Console and Bing Webmaster Tools.&lt;/li&gt;
&lt;li&gt;Added &lt;code&gt;/llms.txt&lt;/code&gt; at the root for AI search crawlers.&lt;/li&gt;
&lt;li&gt;Triggered IndexNow right after deploy to notify Bing, DuckDuckGo, and Yandex across all 12 locale prefixes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Happy to answer questions about Next.js App Router multi-root RTL layouts, ISR caching budgets, or HTML5 game embedding!&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>webdev</category>
      <category>seo</category>
      <category>gamedev</category>
    </item>
    <item>
      <title>Why XML Tags Beat Plain Paragraphs for 200K-Token Claude Prompts (2026 Patterns)</title>
      <dc:creator>Dev Ai med</dc:creator>
      <pubDate>Tue, 24 Nov 2026 23:18:57 +0000</pubDate>
      <link>https://dev.to/dev_aimed_d457595107bac8/why-xml-tags-beat-plain-paragraphs-for-200k-token-claude-prompts-2026-patterns-1bb3</link>
      <guid>https://dev.to/dev_aimed_d457595107bac8/why-xml-tags-beat-plain-paragraphs-for-200k-token-claude-prompts-2026-patterns-1bb3</guid>
      <description>&lt;p&gt;Most engineers prompt frontier models with one long paragraph mixing background docs, rules, and formatting wishes. Once a context window passes 20,000 tokens, instruction drift starts immediately.&lt;/p&gt;

&lt;p&gt;Wrapping prompt blocks in explicit XML tags (&lt;code&gt;&amp;lt;documents&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;rules&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;output_format&amp;gt;&lt;/code&gt;) separates reference input from task instructions so Claude parses boundaries cleanly across multi-turn coding and audit sessions.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Put raw source files at the top, formatting rules at the bottom
&lt;/h2&gt;

&lt;p&gt;Place codebases, transcripts, or financial tables first inside &lt;code&gt;&amp;lt;documents&amp;gt;&lt;/code&gt; tags, then define your JSON schema or acceptance checklist at the end. Recent tokens exert stronger formatting control, while early quoted passages anchor retrieval.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;documents&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;file&lt;/span&gt; &lt;span class="na"&gt;path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"src/app/sitemap.ts"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    ...
  &lt;span class="nt"&gt;&amp;lt;/file&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/documents&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;rules&amp;gt;&lt;/span&gt;
  1. Quote exact line numbers inside &lt;span class="nt"&gt;&amp;lt;evidence&amp;gt;&lt;/span&gt; tags before recommending edits.
  2. Return only changed hunks. Do not rewrite untouched functions.
&lt;span class="nt"&gt;&amp;lt;/rules&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;output_format&amp;gt;&lt;/span&gt;
  Return a JSON array of { "file": string, "line": number, "fix": string }.
&lt;span class="nt"&gt;&amp;lt;/output_format&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Split quote extraction from final synthesis
&lt;/h2&gt;

&lt;p&gt;When auditing long technical specs, ask the model to list matching verbatim lines inside &lt;code&gt;&amp;lt;evidence&amp;gt;&lt;/code&gt; first, then write the conclusion strictly from those extracted quotes. Separating extraction from synthesis cuts fabricated citations on multi-file reviews.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Pair XML prompting with MCP tool servers
&lt;/h2&gt;

&lt;p&gt;If you run terminal coding agents, combine strict XML system prompts with narrow Model Context Protocol (MCP) tool definitions so every external call validates typed JSON arguments before running.&lt;/p&gt;

&lt;p&gt;We organized our complete XML prompt templates, 200K-token ordering patterns, and MCP wiring checklists into concise 25-page offline PDF handbooks ($1.99 each, zero subscription):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://kindlebooks.online/en/books/claude-ai-bible-complete-mastery-guide" rel="noopener noreferrer"&gt;The Claude AI Bible (25-page 2026 PDF)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kindlebooks.online/en/books/mcp-model-context-protocol-developer-guide" rel="noopener noreferrer"&gt;MCP Developer Guide (25-page 2026 PDF)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kindlebooks.online/en/blogs/claude-ai-prompt-engineering-complete-guide-2026" rel="noopener noreferrer"&gt;Full 2026 Claude AI &amp;amp; Prompt Engineering Guide&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>promptengineering</category>
      <category>developers</category>
    </item>
  </channel>
</rss>
