<?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: zr9959</title>
    <description>The latest articles on DEV Community by zr9959 (@zr9959).</description>
    <link>https://dev.to/zr9959</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%2F4187708%2Fa1050140-5e0c-45cf-b160-5f9f391c2c7a.png</url>
      <title>DEV Community: zr9959</title>
      <link>https://dev.to/zr9959</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zr9959"/>
    <language>en</language>
    <item>
      <title>auto-xhs, 11 days later: five platforms, English docs, and a first release</title>
      <dc:creator>zr9959</dc:creator>
      <pubDate>Sun, 25 Oct 2026 15:42:45 +0000</pubDate>
      <link>https://dev.to/zr9959/auto-xhs-11-days-later-five-platforms-english-docs-and-a-first-release-5hmi</link>
      <guid>https://dev.to/zr9959/auto-xhs-11-days-later-five-platforms-english-docs-and-a-first-release-5hmi</guid>
      <description>&lt;p&gt;Eleven days ago I open-sourced auto-xhs, a system that lets a cloud AI agent run a social account end to end: research, writing, video, posting, and following up on comments. It works through the browser like a person would — no unofficial APIs, no bulk-engagement tricks.&lt;/p&gt;

&lt;p&gt;Last week I wrote about the first external user, who ran the pipeline, measured the output videos frame by frame, and filed three real bugs our validator had missed. That story ended with a promise: if he sent a PR, his would be reviewed first and used first. The fixes are now in, and issue #1 is closed.&lt;/p&gt;

&lt;p&gt;Since then the repo has grown in three ways:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Five platforms, one chain. The same daily chain now covers Xiaohongshu, Douyin/TikTok, X, YouTube, and WeChat Official Accounts. Each platform has its own module with its own rules and runnable scripts: subtitle burning and clip splicing for Douyin, a post checker for X, an upload checker for YouTube, a draft builder for WeChat. The Xiaohongshu chain is still the most complete; the others are honest about what they do and do not automate.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;English by default. All docs and script output are now in English, with a Chinese version linked at the top of every file. And the first thing a new agent does after reading the repo is ask the operator: Chinese or English? The whole session then follows that choice. No more guessing from file names.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A first release. v0.1.0 is out. The honest numbers today: 13 stars, 1 fork.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What has not changed: the compliance rules. No bulk interaction, no reposting other people's content, human pace. And a few things are deliberately not automated: posting to X itself (anti-ban), uploading to YouTube itself (use the official API), and the final WeChat publish (manual). The repo says so in plain words instead of pretending otherwise.&lt;/p&gt;

&lt;p&gt;If you run it and your videos look wrong in a way the validator misses, that is still the report I want most. And if you have content that repeats daily — weather, a digest, a ranking — playbooks live in scenarios/, and new ones are welcome. The collection thread is issue #2.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/zr9959/auto-xhs" rel="noopener noreferrer"&gt;https://github.com/zr9959/auto-xhs&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>buildinpublic</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Our validator checked files, not frames — the first external user taught us the difference</title>
      <dc:creator>zr9959</dc:creator>
      <pubDate>Sun, 18 Oct 2026 04:54:16 +0000</pubDate>
      <link>https://dev.to/zr9959/our-validator-checked-files-not-frames-the-first-external-user-taught-us-the-difference-114j</link>
      <guid>https://dev.to/zr9959/our-validator-checked-files-not-frames-the-first-external-user-taught-us-the-difference-114j</guid>
      <description>&lt;p&gt;auto-xhs is an open-source system that lets an AI agent (Muse, Dots, or Grok Bot) run a Xiaohongshu account end to end: research, writing, video production, posting, and replying to comments. It works through the browser like a person would — no unofficial APIs. I open-sourced it on Oct 14.&lt;/p&gt;

&lt;p&gt;On the same day, a user in Vietnam, axiom3356, ran the pipeline as-is, measured the output videos, and filed issue #1: three reproducible visual flaws that our validator, validate.py, had not caught. Not one of them.&lt;/p&gt;

&lt;p&gt;The three flaws:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;At a scene change, the picture goes almost blank for about 2 seconds. Cards in the new scene appear one by one, and before the first one lands, there is nothing on screen.&lt;/li&gt;
&lt;li&gt;The finished video came out at 585 kb/s. For 1080p that is far too low — edges smear. 2 Mb/s is the floor anyone recommends.&lt;/li&gt;
&lt;li&gt;Two annotation cards in the same area, entering with different delays, can overlap each other.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;His root-cause note was the part that stung: the validator checked the file — duration, resolution, word counts, silence gaps — but never looked at a single frame.&lt;/p&gt;

&lt;p&gt;What we changed, all of it credited to his report:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Blank frames are now a check. Every 0.5 seconds we grab a frame, shrink it to a small grayscale image, and ask whether it is nearly one flat color. Two seconds of that in a row raises a warning with the rough position. Only ffmpeg and the Python standard library.&lt;/li&gt;
&lt;li&gt;Low bitrate is now a check. Below 2000 kb/s the validator warns. Our own weather example, rendered with the old settings, is 844 kb/s — it gets warned too, and that warning is correct.&lt;/li&gt;
&lt;li&gt;The assembler got a bitrate floor: target 3M, cap 4M. A small trap here: we had -crf 21 and -b:v set together, and in that combination ffmpeg follows crf and the bitrate target is ignored. Dropping crf fixed it.&lt;/li&gt;
&lt;li&gt;The overlapping cards are NOT a machine check, and I want to be plain about why. A frame is pixels. Pixels cannot tell a full-bleed background (fine) from a card cropped by the frame edge (broken). A check built on that would cry wolf every day. So instead the template rules now say: one delayed entrance per area, and cards sharing an area go into a layout container. Prevention, not detection.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both new checks are warn-only. A warning respects the person running the pipeline; a hard error from a check that can misfire does not.&lt;/p&gt;

&lt;p&gt;The issue is still open, on purpose. If axiom3356 sends a PR, his gets reviewed first and used first — he found the problems and proposed the checks.&lt;/p&gt;

&lt;p&gt;If you run it and your videos look wrong in a way the validator misses, that is exactly the report I want. And if you have content that repeats daily — weather, a digest, a ranking — playbooks live in scenarios/ and new ones are welcome.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/zr9959/auto-xhs" rel="noopener noreferrer"&gt;https://github.com/zr9959/auto-xhs&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>showdev</category>
      <category>python</category>
    </item>
    <item>
      <title>I scanned 8 popular SaaS starter templates. 7 had launch-blocking patterns hiding in plain sight.</title>
      <dc:creator>zr9959</dc:creator>
      <pubDate>Fri, 16 Oct 2026 02:24:38 +0000</pubDate>
      <link>https://dev.to/zr9959/i-scanned-8-popular-saas-starter-templates-7-had-launch-blocking-patterns-hiding-in-plain-sight-1ac5</link>
      <guid>https://dev.to/zr9959/i-scanned-8-popular-saas-starter-templates-7-had-launch-blocking-patterns-hiding-in-plain-sight-1ac5</guid>
      <description>&lt;p&gt;Most AI-built SaaS apps don't start from a blank file. They start from a starter template — clone, rename, add features, ship. So I ran a local launch-readiness scanner (ai-saas-guard, 65 deterministic rules, no LLM) over 8 of the most popular open-source starters for Next.js + Supabase + Stripe apps — official vendor templates and widely used community boilerplates alike.&lt;/p&gt;

&lt;p&gt;196 findings in total. 7 of the 8 templates had at least one critical or high-severity pattern. Here's what kept showing up.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The database is wide open in one of the most-copied templates
&lt;/h2&gt;

&lt;p&gt;The only critical findings in the whole run were in one widely cloned Stripe + Supabase template: its starter schema creates broad row-level-security policies (things like "allow all operations for authenticated users") so the demo works out of the box.&lt;/p&gt;

&lt;p&gt;That's a reasonable trade-off for a teaching template. The problem is what happens next: an AI assistant scaffolds your app on top of it, you add your tables next to theirs, and the demo policy ships to production unchanged. RLS that lets every signed-in user touch every row is the single most common real-world Supabase incident — and it starts here, as a default.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Stripe webhooks that don't finish the job
&lt;/h2&gt;

&lt;p&gt;16 findings across the starters were &lt;code&gt;stripe.webhook.missing-critical-event&lt;/code&gt; — webhook handlers that listen for checkout but never handle the events that revoke access (subscription deleted, payment failed). Add missing signature verification and missing idempotency from the wider rule set, and you get the classic launch week story: a user cancels, keeps access forever; or a forged webhook grants a plan nobody paid for.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Fake success, ready to ship
&lt;/h2&gt;

&lt;p&gt;19 findings were production code paths containing mock or demo data fallbacks, plus 7 hardcoded fallbacks and more swallowed errors. Starters include demo data so the UI renders before you've wired a database. In production, the same pattern means: the payment provider times out, your API returns a cheerful success with sample data, and nobody finds out until a customer complains.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The boring stuff nobody configures
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;33 findings: public environment variable inventories that expose more than intended&lt;/li&gt;
&lt;li&gt;12: API routes with no rate limiting&lt;/li&gt;
&lt;li&gt;11: GitHub Actions pinned to floating tags instead of commit SHAs&lt;/li&gt;
&lt;li&gt;8: routes that check "is this user logged in?" but never "does this resource belong to them?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these are exotic. All of them are one-line-to-one-hour fixes — if somebody looks before launch.&lt;/p&gt;

&lt;h2&gt;
  
  
  The point isn't that templates are bad
&lt;/h2&gt;

&lt;p&gt;Templates are doing their job: get you running fast. Security hardening is deliberately left as an exercise. The failure mode is new: when an AI writes most of the code on top of the template, there is no human left who remembers which parts were demo trade-offs. The person "reviewing" the PR sees working features, green tests, and no reason to open the migration file from three weeks ago.&lt;/p&gt;

&lt;p&gt;That's the gap a launch gate is for. Not a full security audit — a short, deterministic checklist run at the one moment it matters: before the first real users arrive. Scan your starter before you build on it, and scan again before you ship:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx ai-saas-guard@latest scan &lt;span class="nt"&gt;--root&lt;/span&gt; /path/to/your-saas
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Method and limits, honestly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One scanner (mine), one pass, default rules, on 2026-10-07. Findings are "read this first" signals, not proven vulnerabilities — some are known demo trade-offs, and templates are not production apps.&lt;/li&gt;
&lt;li&gt;Sample: 8 public starters for Next.js + Supabase + Stripe apps, spanning official vendor templates and community boilerplates. Two large production monorepos were scanned separately and are not in these numbers.&lt;/li&gt;
&lt;li&gt;Counts: 5 critical, 43 high, 73 medium, 31 low, 44 info across the 8 repos.&lt;/li&gt;
&lt;li&gt;If you maintain a starter template and want to know whether yours was in the sample and see its detailed list, open an issue — happy to share it privately first.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you build on a starter, I'd love to hear: did you re-check the template's defaults before launch, or did they ship as-is?&lt;/p&gt;

</description>
      <category>security</category>
      <category>webdev</category>
      <category>nextjs</category>
      <category>saas</category>
    </item>
  </channel>
</rss>
