<?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: CK FONG</title>
    <description>The latest articles on DEV Community by CK FONG (@ck_fong_be8648a22555e79b0).</description>
    <link>https://dev.to/ck_fong_be8648a22555e79b0</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%2F4265107%2F655bef01-9fbd-488f-b3dc-5279876ec04e.png</url>
      <title>DEV Community: CK FONG</title>
      <link>https://dev.to/ck_fong_be8648a22555e79b0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ck_fong_be8648a22555e79b0"/>
    <language>en</language>
    <item>
      <title>Why I Refused to Store User Text When Building an AI Detector (and How I Built It on Cloudflare Workers)</title>
      <dc:creator>CK FONG</dc:creator>
      <pubDate>Wed, 25 Nov 2026 15:52:15 +0000</pubDate>
      <link>https://dev.to/ck_fong_be8648a22555e79b0/why-i-refused-to-store-user-text-when-building-an-ai-detector-and-how-i-built-it-on-cloudflare-4426</link>
      <guid>https://dev.to/ck_fong_be8648a22555e79b0/why-i-refused-to-store-user-text-when-building-an-ai-detector-and-how-i-built-it-on-cloudflare-4426</guid>
      <description>&lt;p&gt;When I started building a bilingual Japanese/English AI text checker, the first thing a friend told me when testing an early prototype wasn't about accuracy. It was:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Wait—are you saving the thesis draft I just pasted in here?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That stuck with me. Students, researchers, and copywriters paste unpublished work into text tools every day, and most of them have no idea whether that text is sitting in a database somewhere or being logged in plain text for debugging.&lt;/p&gt;

&lt;p&gt;So when I shipped &lt;a href="https://gptcheck.app/en" rel="noopener noreferrer"&gt;GPTCheck&lt;/a&gt;, I made one hard rule early on: &lt;strong&gt;never persist user input.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What "zero retention" actually meant in practice
&lt;/h2&gt;

&lt;p&gt;It sounds simple until you realize how many places text accidentally leaks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Request logs:&lt;/strong&gt; If you log request payloads on error, congratulations—you're storing user drafts. We only log status codes, latency, and character counts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database tables:&lt;/strong&gt; There is no &lt;code&gt;submissions&lt;/code&gt; or &lt;code&gt;history&lt;/code&gt; table. Analysis runs in memory during the request lifecycle and disappears the moment the JSON response returns.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rate limiting without accounts:&lt;/strong&gt; Since the &lt;a href="https://gptcheck.app/en/free" rel="noopener noreferrer"&gt;free checker&lt;/a&gt; works with zero signup, we still needed basic abuse protection. Instead of tracking users with heavy sessions, we hash minimal request metadata with short-lived counters.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Cloudflare Workers + KV fit this well
&lt;/h2&gt;

&lt;p&gt;Running Next.js on Cloudflare Workers meant I didn't have to babysit a container or pay for an always-on server while validating the idea. The whole app stays stateless at the edge.&lt;/p&gt;

&lt;p&gt;The only persistent state I actually needed was a tiny waitlist for the Pro tier while payment onboarding was still in progress. For that, a single Cloudflare KV namespace (&lt;code&gt;WAITLIST_KV&lt;/code&gt;) took about ten minutes to wire up—store the email, timestamp, and locale, then return a clear confirmation. No ORM, no migrations, no cold-start headache.&lt;/p&gt;

&lt;h2&gt;
  
  
  One honest tradeoff
&lt;/h2&gt;

&lt;p&gt;Not storing text means I can't silently mine real user submissions to tune heuristics later. If a user hits a weird false positive, I don't have a copy of their essay unless they explicitly send me an example.&lt;/p&gt;

&lt;p&gt;Honestly? I'm fine with that tradeoff. Building a tool people actually feel safe pasting a real draft into is worth way more than a pile of scraped logs.&lt;/p&gt;

&lt;p&gt;If you're building any text-processing side project, try designing it without a &lt;code&gt;user_inputs&lt;/code&gt; table from day one—you'll be surprised how much simpler both your stack and your privacy policy become.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>cloudflare</category>
      <category>nextjs</category>
      <category>indiedev</category>
    </item>
  </channel>
</rss>
