<?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: feng chun</title>
    <description>The latest articles on DEV Community by feng chun (@feng_chun_025d420f88af236).</description>
    <link>https://dev.to/feng_chun_025d420f88af236</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%2F4275643%2F3f07b589-76fa-405a-ac74-0a1162a35b44.png</url>
      <title>DEV Community: feng chun</title>
      <link>https://dev.to/feng_chun_025d420f88af236</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/feng_chun_025d420f88af236"/>
    <language>en</language>
    <item>
      <title>How We Built an 18-Bot Self-Hosted AI Chatbot Storefront on Cloudflare Workers (4.7KB Widget, 648 Adversarial Tests, $0 Hosting)</title>
      <dc:creator>feng chun</dc:creator>
      <pubDate>Tue, 01 Dec 2026 06:22:35 +0000</pubDate>
      <link>https://dev.to/feng_chun_025d420f88af236/how-we-built-an-18-bot-self-hosted-ai-chatbot-storefront-on-cloudflare-workers-47kb-widget-648-420k</link>
      <guid>https://dev.to/feng_chun_025d420f88af236/how-we-built-an-18-bot-self-hosted-ai-chatbot-storefront-on-cloudflare-workers-47kb-widget-648-420k</guid>
      <description>&lt;p&gt;Most small Shopify stores, local clinics, and independent agencies abandon AI chatbot SaaS platforms within 30 days for three predictable reasons:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Unpredictable message-credit overages ($49–$199/mo).&lt;/li&gt;
&lt;li&gt;Heavy drag-and-drop workflow builders that take hours to configure.&lt;/li&gt;
&lt;li&gt;Hallucinated store policies or missing legal/safety guardrails.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We decided to build a different model: &lt;strong&gt;ShelfBot&lt;/strong&gt; (&lt;a href="https://tryshelfbot.com/?utm_source=devto" rel="noopener noreferrer"&gt;https://tryshelfbot.com&lt;/a&gt;) — a storefront of 18 single-purpose, ready-to-deploy niche AI chatbot kits delivered as &lt;strong&gt;self-hosted Cloudflare Worker ZIP archives (BYOK)&lt;/strong&gt; for a flat $19 one-time fee ($39 for 5 client sites).&lt;/p&gt;

&lt;h3&gt;
  
  
  Architecture Highlights ($0 Infra Overhead)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;4.7KB Async Embed Widget (&lt;code&gt;widget.js&lt;/code&gt;):&lt;/strong&gt; Zero framework dependencies, loads strictly after &lt;code&gt;window.load&lt;/code&gt; so it never hurts Lighthouse scores.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grounded-Only FAQ Matching + Workers AI:&lt;/strong&gt; Every bot ships with industry-specific verified FAQs and a strict safe fallback instead of guessing policies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Built-In EU AI Act Art. 50 Disclosure:&lt;/strong&gt; Every widget renders &lt;code&gt;"You're chatting with an AI"&lt;/code&gt; directly inside the DOM.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard Flood &amp;amp; Cost-Bomb Defense:&lt;/strong&gt; Daily-salted SHA-256 IP rate limiting + global sandbox cap verified against a 1,000-request flood test returning &lt;code&gt;HTTP 429&lt;/code&gt; with zero runaway spend.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;648 Automated Adversarial Guardrail Tests:&lt;/strong&gt; Every SKU is tested against prompt injections, PCI/IBAN/SSN/EIN leaks, medical/legal/tax advice traps, and life-safety interrupts (e.g., HVAC gas-leak 911/999 warnings, restaurant allergen cross-contact notices).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pure-JS ZIP Packaging Inside Cloudflare Workers:&lt;/strong&gt; After checkout, buyers immediately download a standard &lt;code&gt;PK\x03\x04&lt;/code&gt; ZIP bundle containing &lt;code&gt;worker.mjs&lt;/code&gt;, &lt;code&gt;wrangler.toml&lt;/code&gt;, &lt;code&gt;faq-knowledge.json&lt;/code&gt;, &lt;code&gt;embed-snippet.html&lt;/code&gt;, and a 10-minute &lt;code&gt;README.md&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Try Any of the 18 Live Sandboxes (No Sign-Up)
&lt;/h3&gt;

&lt;p&gt;You can test all 18 industry bots live on the homepage, preview your own brand color and 1-line &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; snippet, or vote for the next industry bot on our public board:&lt;br&gt;
👉 &lt;a href="https://tryshelfbot.com/?utm_source=devto" rel="noopener noreferrer"&gt;https://tryshelfbot.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Disclosure: I'm part of the team building ShelfBot &amp;amp; StarReply at Chunfeng Digital Studio — happy to share code details or answer Cloudflare Workers architecture questions in the comments!)&lt;/em&gt;&lt;/p&gt;

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