<?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: Velobase</title>
    <description>The latest articles on DEV Community by Velobase (@velobasex).</description>
    <link>https://dev.to/velobasex</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%2F3930714%2F64013cd4-f59e-41ea-96c7-6aa0456c28bb.jpg</url>
      <title>DEV Community: Velobase</title>
      <link>https://dev.to/velobasex</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/velobasex"/>
    <language>en</language>
    <item>
      <title>AI can write the code. It can't tell you when the product is done.</title>
      <dc:creator>Velobase</dc:creator>
      <pubDate>Thu, 18 Jun 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/velobasex/ai-can-write-the-code-it-cant-tell-you-when-the-product-is-done-4oh6</link>
      <guid>https://dev.to/velobasex/ai-can-write-the-code-it-cant-tell-you-when-the-product-is-done-4oh6</guid>
      <description>&lt;p&gt;I built an AI slide-deck generator on top of &lt;a href="https://github.com/velobase/velobase-harness" rel="noopener noreferrer"&gt;Velobase Harness&lt;/a&gt; — type a topic, get a presentation. The AI had a demo running almost immediately: it wrote an outline, generated the slides, exported a file. On screen, it looked finished.&lt;/p&gt;

&lt;p&gt;Here's it running:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/LbbOkHjecE0"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;It wasn't. All it had proven was that one user could make one deck one time.&lt;/p&gt;

&lt;p&gt;A real product is a different animal. It has to handle a hundred people generating at once, bill each of them correctly, recover when a step dies halfway, review its own output and redraw the bad parts, and export a PPTX that actually opens in PowerPoint. None of that showed up in the demo — and the AI didn't think to add it, because I hadn't told it to.&lt;/p&gt;

&lt;p&gt;That turned out to be the whole lesson of the project: &lt;strong&gt;when you build with AI, the hard part isn't describing the feature. It's defining what "done" means.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Harness gave me the boring foundation — auth, payments, credits, admin, database, queues, object storage, deployment. That stuff shouldn't be rebuilt for every new idea, so I didn't. It let me point the AI at the only part that was actually mine: the PPT generation itself.&lt;/p&gt;

&lt;p&gt;And that's where "looks done" and "is done" kept pulling apart. Four places made it obvious.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Concurrency.&lt;/strong&gt; AI treats "it worked once on my machine" as "the feature is complete." But 100 users generating decks of 10–20 slides each is not one big task you run serially in a single worker. The instruction that actually works: split the pipeline into &lt;em&gt;plan → slide → finalize&lt;/em&gt; queues, generate each slide as its own job, let workers scale out, and don't let third-party image polling hog a worker slot. Then write a test that proves &lt;em&gt;concurrent&lt;/em&gt; generation works — not that one deck succeeds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Billing.&lt;/strong&gt; Tell the AI "deduct credits when generating," and it'll deduct once, up front, and call it done. A real product needs a state machine: reserve credits first, settle against what was actually spent (model tokens, image generation, redraws, export), refund on failure, pause when the balance runs out, resume after top-up. That's not a button handler.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Self-review.&lt;/strong&gt; If retries happen silently in the backend, the user just stares at a spinner. To make self-review a &lt;em&gt;feature&lt;/em&gt;, the AI has to persist intermediate results and surface the states — generating, checking, redrawing — along with scores and attempts. Now the wait reads as "the system is improving the slide," not "it's stuck."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Export.&lt;/strong&gt; A slide that looks perfect in the browser can come out broken as PPTX — layers, fonts, aspect ratio, cropping all drift. So the requirement can't be "generate a PPTX file." It has to be "the exported PPTX must visually match the web preview."&lt;/p&gt;

&lt;p&gt;Once I saw the pattern, the brief I gave the AI stopped being a feature list and started being acceptance criteria:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Do not build only a working demo.
Build this as a production-ready SaaS product.

This product is based on Velobase Harness.
Harness already provides auth, payments, credits, queues, object storage, and deployment.
Implement PPT generation as an independent business module.

Requirements:
1. Support at least 100 users generating presentations concurrently.
2. Split generation into plan, slide, and finalize queues.
3. Generate each slide independently with concurrency, retries, and failure recovery.
4. Connect all model calls, image generation, editing, and export to credit billing.
5. Pause generation when credits are insufficient and resume after top-up.
6. Run AI review and deterministic layout checks after each slide.
7. Persist intermediate states and show generation, self-check, and redraw progress in real time.
8. Upload generated images to object storage instead of relying on temporary provider URLs.
9. Prioritize visual consistency for PPTX export.
10. Tests must cover concurrency, billing, failure recovery, and export fidelity — not just one successful run.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here's what the project made unambiguous: AI is already good at writing code. It just doesn't know what makes something shippable. It will treat one successful run as completion, a local demo as a system, a page that renders as a correct export. The part only a human can supply isn't the feature description — it's the acceptance criteria, the engineering boundaries, the failure cases, the business rules.&lt;/p&gt;

&lt;p&gt;That's the real split. Harness covers the common SaaS foundation so it's already there. AI fills in the business logic fast — &lt;em&gt;once the boundaries are clear&lt;/em&gt;. Faster shipping doesn't come from thinking less. It comes from turning your thinking into sharper input.&lt;/p&gt;

&lt;p&gt;If you've shipped something AI-built past the demo stage: what was the gap between "it ran" and "I'd let customers near it" that bit you hardest?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>saas</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The boring 80% nobody warns you about when an AI demo becomes a real product</title>
      <dc:creator>Velobase</dc:creator>
      <pubDate>Wed, 17 Jun 2026 04:55:33 +0000</pubDate>
      <link>https://dev.to/velobasex/the-boring-80-nobody-warns-you-about-when-an-ai-demo-becomes-a-real-product-3dnm</link>
      <guid>https://dev.to/velobasex/the-boring-80-nobody-warns-you-about-when-an-ai-demo-becomes-a-real-product-3dnm</guid>
      <description>&lt;p&gt;This month the front page filled up with AI agents going off the rails — one reportedly ran its operator's bill into the ground, another tore through a Linux box unsupervised. Funny, until it's your credits and your customers. We learned that lesson the slower, more expensive way.&lt;/p&gt;

&lt;p&gt;Our team shipped an AI demo in a weekend. Turning it into something people could actually pay for took the next four months, and almost none of that time went into the AI part.&lt;/p&gt;

&lt;p&gt;That gap surprised us more than it should have. The model call was maybe 30 lines. Everything around it — getting paid, knowing who to thank for a signup, stopping one script from burning $400 of credits overnight — was the real product. Below is what we got wrong on the way there, in roughly the order it hurt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pitfall 1: "We'll just add Stripe later"
&lt;/h2&gt;

&lt;p&gt;Later is a lie. The moment you charge for AI usage, billing stops being a checkout button and becomes a metering problem.&lt;/p&gt;

&lt;p&gt;A flat $20/month subscription is easy. The trouble starts when usage is the cost. A heavy user can run you negative on a plan a light user is wildly overpaying for. So you end up needing both: a subscription &lt;em&gt;and&lt;/em&gt; a usage meter that counts tokens (or images, or minutes) and reconciles them against credits the customer actually has left.&lt;/p&gt;

&lt;p&gt;What we underestimated was the bookkeeping. Every generation has to decrement a balance, that decrement has to survive a crash mid-request, and the customer needs a dashboard that agrees with what Stripe charged them — to the cent — or you get support tickets you can't answer. We rebuilt this twice. The second time we finally separated "what the model did" (an event) from "what we charged" (a ledger entry), and the bugs stopped.&lt;/p&gt;

&lt;p&gt;If you take one thing from this post: &lt;strong&gt;model the usage event and the billing entry as two different things from day one.&lt;/strong&gt; Collapsing them feels simpler and costs you a weekend later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pitfall 2: Free credits are a free lunch — for abusers
&lt;/h2&gt;

&lt;p&gt;We gave new signups some free credits so people could try the thing without a card. Reasonable. Within a week someone had scripted a few hundred throwaway accounts and was draining the free tier in a loop.&lt;/p&gt;

&lt;p&gt;There's no single fix. What actually worked was a stack of cheap, boring checks layered together:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rate limits per account and per IP (Redis, sliding window).&lt;/li&gt;
&lt;li&gt;A CAPTCHA on signup — we used Turnstile, but anything that adds friction for bots helps.&lt;/li&gt;
&lt;li&gt;Blocking disposable email domains at signup.&lt;/li&gt;
&lt;li&gt;Small signup signals (is this account an hour old with 200 generations?) feeding a guest quota.&lt;/li&gt;
&lt;li&gt;And the unglamorous one: &lt;strong&gt;credit clawbacks&lt;/strong&gt;, so when you do catch fraud after the fact, you can actually take the credits back instead of eating the loss.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these is clever. The lesson was that abuse control isn't a feature you build once — it's a posture. You assume the free tier will be attacked and you make abuse slightly more annoying than it's worth.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pitfall 3: You will not know which channel actually works
&lt;/h2&gt;

&lt;p&gt;We spent money on a few channels and had no idea which one produced paying customers. Client-side analytics told us about pageviews. It told us nothing trustworthy about &lt;em&gt;purchases&lt;/em&gt;, because ad blockers and the gap between "clicked an ad on Monday" and "paid on Thursday" quietly destroy attribution.&lt;/p&gt;

&lt;p&gt;The thing that fixed it was moving attribution server-side: stamp the acquisition source when the account is created, carry it through, and fire the conversion from the backend when money actually changes hands — including the offline-conversion uploads back to Google Ads and the pixel events platforms expect. Suddenly "this campaign cost $X and produced Y paying users" was a sentence we could finish.&lt;/p&gt;

&lt;p&gt;If you're running any paid acquisition for an AI product, do the server-side version early. The client-side numbers feel fine right up until you try to make a budget decision with them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pitfall 4: An affiliate program is an accounting system wearing a marketing hat
&lt;/h2&gt;

&lt;p&gt;This one humbled us. "Let people refer others for a cut" sounds like a referral link and a counter. It is not.&lt;/p&gt;

&lt;p&gt;The instant real money is owed to real people, you're running double-entry accounting whether you meant to or not. A referred customer asks for a refund — now you have to claw back the commission you already credited the affiliate. Someone wants to cash out (in our case people asked for USDT). Promo codes stack in ways you didn't intend. Get any of this slightly wrong and you're not shipping a bug, you owe someone the wrong amount of money.&lt;/p&gt;

&lt;p&gt;We ended up treating the whole thing as a proper ledger — every credit and clawback is a balanced entry — because that's the only way the numbers stay defensible when an affiliate disputes their payout.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pitfall 5: The "rest of the backend" is a second full-time job
&lt;/h2&gt;

&lt;p&gt;Auth. Background workers for anything slower than a request (we used BullMQ on Redis). Lifecycle email so trials don't silently lapse. An admin panel so you can actually look at a customer when they email you. Then Docker, then Kubernetes, then CI/CD so a deploy isn't a held breath.&lt;/p&gt;

&lt;p&gt;Each of these is a known, solved problem. The cost isn't difficulty — it's &lt;em&gt;count&lt;/em&gt;. There are a dozen of them, none is the thing you set out to build, and together they're where the months go.&lt;/p&gt;

&lt;h2&gt;
  
  
  So what did we do about it
&lt;/h2&gt;

&lt;p&gt;We kept ripping these pieces out of one product and into something reusable, and eventually it became its own open-source project: &lt;a href="https://github.com/velobase/velobase-harness" rel="noopener noreferrer"&gt;Velobase Harness&lt;/a&gt; — MIT licensed, Next.js 15 / React 19 / tRPC / Prisma / Postgres, with the usage billing, server-side attribution, affiliate ledger, anti-abuse stack, workers, and deploy config already wired together. It's the scaffolding we wish we'd had before pitfall 1.&lt;/p&gt;

&lt;p&gt;We're not going to pretend it's the only way to do this — plenty of people would (and do) assemble these from separate services, and that's a legitimate choice. We just got tired of rebuilding the same plumbing for every AI idea.&lt;/p&gt;

&lt;p&gt;What we're actually curious about, and the reason we wrote this down: &lt;strong&gt;for those of you who've taken an AI product past the demo — which of these bit you hardest?&lt;/strong&gt; And did you build the billing/abuse/attribution layer yourself, reach for something off-the-shelf, or just... not, and hope? We're collecting war stories and genuinely want to hear how other people drew the line.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>product</category>
      <category>saas</category>
      <category>softwareengineering</category>
    </item>
  </channel>
</rss>
