<?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: Reza Nosrat</title>
    <description>The latest articles on DEV Community by Reza Nosrat (@reza_nosrat_41c01e8b64512).</description>
    <link>https://dev.to/reza_nosrat_41c01e8b64512</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%2F4112684%2F6f21c8bd-da7e-4545-b5d3-78240e1c2a4d.jpg</url>
      <title>DEV Community: Reza Nosrat</title>
      <link>https://dev.to/reza_nosrat_41c01e8b64512</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/reza_nosrat_41c01e8b64512"/>
    <language>en</language>
    <item>
      <title>How I built a bilingual AI image-prompt gallery as a PWA</title>
      <dc:creator>Reza Nosrat</dc:creator>
      <pubDate>Sun, 06 Sep 2026 19:11:39 +0000</pubDate>
      <link>https://dev.to/reza_nosrat_41c01e8b64512/how-i-built-a-bilingual-ai-image-prompt-gallery-as-a-pwa-2l09</link>
      <guid>https://dev.to/reza_nosrat_41c01e8b64512/how-i-built-a-bilingual-ai-image-prompt-gallery-as-a-pwa-2l09</guid>
      <description>&lt;p&gt;I run a small studio called &lt;a href="https://renoxdigital.com" rel="noopener noreferrer"&gt;RENOX&lt;/a&gt; where I build automation, Telegram bots and web apps. Recently I shipped a side project worth sharing: a bilingual (English/Persian) gallery of ready-to-use &lt;strong&gt;AI image prompts&lt;/strong&gt; for ChatGPT, Sora and Midjourney. It's live and free to browse at &lt;a href="https://rnosrat.com/prompts" rel="noopener noreferrer"&gt;rnosrat.com/prompts&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here is how it's built and a few things I learned.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PHP 8 + SQLite (PDO)&lt;/strong&gt; on shared LiteSpeed hosting - no build step, cheap, and fast enough for a read-heavy gallery.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vanilla JS&lt;/strong&gt; front-end with light progressive enhancement.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PWA&lt;/strong&gt;: a manifest plus a service worker, so people can install it on their phone and browse prompts offline.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why SQLite
&lt;/h2&gt;

&lt;p&gt;For a catalog of a few hundred prompts with light writes (members, copy counts), SQLite is ideal: one file, no server to manage, trivial backups. I only reach for MySQL when I actually need concurrent writes at scale.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bilingual without a framework
&lt;/h2&gt;

&lt;p&gt;Every prompt stores both an English and a Persian field. The UI toggles with a &lt;code&gt;data-lang&lt;/code&gt; attribute and CSS, so switching languages never reloads the page, and RTL/LTR is handled with a &lt;code&gt;dir&lt;/code&gt; attribute on the root element.&lt;/p&gt;

&lt;h2&gt;
  
  
  A page per prompt for SEO
&lt;/h2&gt;

&lt;p&gt;Each prompt has its own URL (&lt;code&gt;?p=&amp;lt;id&amp;gt;&lt;/code&gt;) with its own title, description and sample image. That turned a single-page app into hundreds of indexable pages - which is what search engines actually rank.&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;Ship the smallest useful thing, then iterate.&lt;/li&gt;
&lt;li&gt;A PWA gets you "installable" without app-store friction.&lt;/li&gt;
&lt;li&gt;Individual, indexable pages beat one big client-rendered page for discovery.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you want to see the result, it's at &lt;a href="https://rnosrat.com/prompts" rel="noopener noreferrer"&gt;rnosrat.com/prompts&lt;/a&gt;. Happy to answer any questions about the build.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>php</category>
      <category>ai</category>
      <category>pwa</category>
    </item>
  </channel>
</rss>
