<?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: Isiah Swopes</title>
    <description>The latest articles on DEV Community by Isiah Swopes (@isiah_swopes_d8deec2d9ef1).</description>
    <link>https://dev.to/isiah_swopes_d8deec2d9ef1</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%2F4125923%2F21a8d186-00fe-4b86-8b49-c7b501486f12.png</url>
      <title>DEV Community: Isiah Swopes</title>
      <link>https://dev.to/isiah_swopes_d8deec2d9ef1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/isiah_swopes_d8deec2d9ef1"/>
    <language>en</language>
    <item>
      <title>I built a harm-reduction drug-info site on Cloudflare's free tier — 111+ Drug profiles, 150+ pages, $0 hosting</title>
      <dc:creator>Isiah Swopes</dc:creator>
      <pubDate>Tue, 15 Sep 2026 09:06:04 +0000</pubDate>
      <link>https://dev.to/isiah_swopes_d8deec2d9ef1/i-built-a-harm-reduction-drug-info-site-on-cloudflares-free-tier-111-drug-profiles-150-pages-2hkk</link>
      <guid>https://dev.to/isiah_swopes_d8deec2d9ef1/i-built-a-harm-reduction-drug-info-site-on-cloudflares-free-tier-111-drug-profiles-150-pages-2hkk</guid>
      <description>&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Someone finds a pill at a party, or a parent finds a baggie in a kid's room, or a friend overdoses at 2 AM. What do they search? "White round pill M30" or "what is tranq." The results they get are either unreadable government PDFs or 15-year-old forum threads.&lt;/p&gt;

&lt;p&gt;I'm building &lt;a href="https://plugreports.com" rel="noopener noreferrer"&gt;plugreports.com&lt;/a&gt; to fix that: a visual, fast, plain-English harm-reduction library covering &lt;strong&gt;111+ street drugs and pharmaceuticals&lt;/strong&gt; — effects, overdose signs, street prices, legal status — plus drug busts, adulterant alerts, day-by-day quitting guides, and verified 24/7 hotlines for the US, Canada, Europe, Australia and Africa.&lt;/p&gt;

&lt;p&gt;Everything is compiled from primary sources (NIDA, DEA, CDC, EMCDDA, WHO) and externally linked, because in this space, citing your sources isn't optional.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack (all free tier)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Static site generator in Python&lt;/strong&gt; — content lives in typed Python dicts (&lt;code&gt;data_drugs.py&lt;/code&gt; is literally the database schema); one &lt;code&gt;build.py&lt;/code&gt; run emits ~160 HTML pages with JSON-LD (&lt;code&gt;MedicalWebPage&lt;/code&gt;, &lt;code&gt;FAQPage&lt;/code&gt;, &lt;code&gt;NewsArticle&lt;/code&gt;), hreflang, sitemap, RSS, and an llms.txt for the AI-search era.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloudflare Pages + Functions&lt;/strong&gt; — static pages for SEO speed, Pages Functions for the dynamic layer: a PIN-protected &lt;code&gt;/admin&lt;/code&gt; CMS, a KV-backed content API, image upload/storage, and a hydration layer that overlays admin edits onto static pages in real time. New CMS entries even get instant URLs via dynamic routes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Workers AI&lt;/strong&gt; (m2m100) for on-demand page translation, plus a fully static &lt;code&gt;/es/&lt;/code&gt; batch for the SEO-heavy Spanish version.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PWA&lt;/strong&gt; — service worker + manifest, because someone mid-crisis on bad hotel wifi still needs the hotlines page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;i18n UI in 10 languages&lt;/strong&gt; with browser-language auto-detection.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The interesting engineering bits
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Hydration over static HTML.&lt;/strong&gt; Static pages give you Google-love; a CMS gives you instant edits. I do both: every content page loads, then fetches the KV content API and overlays the latest version. Static stays as the SEO fallback, edits go live in seconds without a rebuild.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Functions that defer to static assets.&lt;/strong&gt; Cloudflare Pages' routing made this tricky — a dynamic route shadows static pages, and Pages serves &lt;code&gt;index.html&lt;/code&gt; with a 200 for &lt;em&gt;missing&lt;/em&gt; paths, so the function checks a build-time &lt;code&gt;_static.json&lt;/code&gt; manifest before rendering anything client-side. Bogus slugs return real 404s.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Media pipeline with zero external services.&lt;/strong&gt; Admin image uploads go to KV (with R2 auto-upgrade when bound), served through a &lt;code&gt;/media/*&lt;/code&gt; function with immutable caching. The admin picker searches the gallery by drug name &lt;em&gt;or&lt;/em&gt; street alias, not just filename.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current numbers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;111 substance profiles (opioids, RC benzos, cathinones, nitazenes, GLP-1 grey market…) and More to add soon&lt;/li&gt;
&lt;li&gt;18 profiles added this week, each with FAQPage schema and agency citations&lt;/li&gt;
&lt;li&gt;32+
&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fohapl39lhy5qwe8i1n2n.png" alt=" " width="800" height="361"&gt; real product photos served from KV&lt;/li&gt;
&lt;li&gt;100 Lighthouse, ~200KB of JS total, TTFB ~50ms on the free tier&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why build this?
&lt;/h2&gt;

&lt;p&gt;Harm reduction is one of the few domains where better information literally saves lives that night — a wrong pill doesn't care about your search results. The whole thing is &lt;a href="https://github.com/coke-blog/plugreports" rel="noopener noreferrer"&gt;open source on GitHub&lt;/a&gt;, and I'd genuinely love contributions: drug data corrections, new profiles (the schema is just a dict), translations.&lt;/p&gt;

&lt;p&gt;If you've built something similar — or want to argue about KV vs D1 for this — the comments are open. 🔻&lt;/p&gt;

</description>
      <category>health</category>
      <category>python</category>
      <category>cloudflarechallenge</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
