Skip to main content
Back to Blog
From Idea to Paid SaaS Product in 5 Hours
AISaaSClaudeCloudflareStripeBuildingInPublic

From Idea to Paid SaaS Product in 5 Hours

Ulrich Diedrichsen
Ulrich Diedrichsen
12 min read

How we built a complete AI product with Claude Code, Cloudflare, and Stripe in one day — without ever having used Stripe before.

The Starting Point

Thursday, February 6th, 2026, 10 AM. I'm sitting at my desk with an idea: An AI tool that analyzes social media posts before you hit publish. Not as a moralizing warning finger, but as a dramatic, British-polite analyst who paints vivid scenarios of what happens after posting.

"Conrad" — the Consequences Eradicator.

By 3 PM the same day, Conrad is live. With real payment flow. With Stripe. With cost protection. With a Chrome Extension.

I had never used Stripe before.


What Was Built in 5 Hours

A complete SaaS product with:

  • AI-powered post analysis for 5 platforms (LinkedIn, X, Bluesky, TikTok, Instagram)
  • Post improvement mode — Conrad rewrites your post without losing your voice
  • Magic link authentication — no password, no OAuth setup
  • Credit system with 3 free analyses per day
  • Stripe payments — 50 credits for €5, live, with real money
  • User dashboard with analysis history, credit balance, billing management
  • Community wishlist with AI moderation
  • Chrome Extension (Manifest V3) for 5 platforms
  • Bilingual from day 1 (German + English, native quality)
  • Cost protection — per-user daily limits, global budget breaker, request deduplication
  • Admin monitoring — real-time cost overview

In numbers: 70 source files, 8,300+ lines of code, 34 commits, 5 database migrations, 85 specification entities.


The Tech Stack

Cloudflare — The Entire Infrastructure From One Source

This was the most important architectural decision. No AWS. No Vercel. No separate database server. All Cloudflare:

  • Cloudflare Pages — Hosting and deployment. One wrangler pages deploy and the app is live. Worldwide. With automatic SSL.
  • Cloudflare Workers — The SvelteKit server routes ARE Workers. No separate backend server needed.
  • D1 (SQLite) — Relational database directly at the edge. Users, analyses, credits, subscriptions — all in D1.
  • KV — Key-value store for rate limiting, usage tracking, request deduplication, budget breaker.
  • Turnstile — Bot protection without CAPTCHA.

The biggest advantage: Zero DevOps. No Docker, no Kubernetes, no Terraform.

Cost for beta operation: Effectively $0. Cloudflare Pages is extremely generous in the free tier.

SvelteKit — The Framework That Gets Out of the Way

SvelteKit with the Cloudflare adapter is the perfect combination. A monorepo where frontend and backend live side by side. Svelte 5 with Runes ($state, $derived, $effect) is reactive without boilerplate.

Claude API — The Brain

Conrad uses Claude Sonnet 4.5 as its analysis engine. No SDK — raw fetch() calls, because Cloudflare Workers don't support Node.js SDKs.

The trick is tool_use: Claude delivers structured scores (JSON) AND free text recommendations in a single API call. The user sees results within 2 seconds while Conrad is still writing.

Cost per analysis: ~$0.02. At 50 credits for €5, we have ~77% gross margin.

Stripe — Payments Without Prior Knowledge

I had never used Stripe before. Claude Code walked me through it step by step.

Important: No Stripe SDK. Stripe's API is so clean that raw fetch() calls are completely sufficient.

Claude Code — The AI Development Partner

And here it gets meta: The tool that built Conrad itself uses Claude as its engine.

Claude Code wasn't just a code generator. It was an architecture advisor, a Stripe expert, a security auditor, and a pair programmer all in one.


What We Learned

1. Cloudflare Is a Solo Developer's Best Friend

No DevOps overhead. D1 + KV + Workers + Pages is everything you need for a SaaS.

2. No SDK Is Sometimes the Best SDK

Cloudflare Workers don't have full Node.js. Instead of fighting it, we built everything with fetch().

3. Cost Protection BEFORE the First Paying User

Five protection layers:

  • Per-user daily limit (100/day)
  • Global budget breaker (500/day total)
  • Request deduplication
  • Fail-closed
  • Platform-specific character limits

4. tool_use Is the Game Changer

Claude's tool_use solves the biggest problem with AI APIs: reliably extracting structured data.

5. Personality Is the Product

The same score (shitstormRisk: 75) is boring as a naked value. As "Post this and your recruiter pretends not to know you by Friday" it's unforgettable.

6. AI-Assisted Development Is Not Autopilot

The crucial difference from "vibe coding": We created a complete specification with 85 entities BEFORE a single line of code was written.

7. Bilingual From Day 1

With i18n keys and Claude Code's native German language quality, it was almost free.


The Numbers

MetricValue
Time from idea to live~5 hours
Source files70
Lines of code8,300+
Commits34
DB migrations5
Languages2 (DE + EN)
Platforms5
TypeScript errors0
Monthly infrastructure costs~$0
Claude API cost per analysis~$0.02
Gross margin per credit pack~77%

The Stack at a Glance

Frontend:    SvelteKit 5 + Tailwind CSS v4
Backend:     SvelteKit Server Routes (= Cloudflare Workers)
Database:    Cloudflare D1 (SQLite at the edge)
Cache/KV:    Cloudflare KV
Hosting:     Cloudflare Pages
AI Engine:   Claude Sonnet 4.5 (via raw fetch, tool_use)
Payments:    Stripe (Checkout, Webhooks, Customer Portal)
Auth:        Magic Links via Resend (JWT, HttpOnly Cookies)
Bot Protection: Cloudflare Turnstile
Extension:   Chrome Manifest V3
Development: Claude Code (Anthropic CLI)

Conclusion

The combination of Cloudflare (infrastructure without overhead), Claude API (AI without complexity), Stripe (payments without prior knowledge), and Claude Code (development without waiting) is a paradigm shift.

Previously, this project would have kept a team of 3-4 developers busy for several weeks. Today, a single person with a clear vision and the right tools can build a market-ready product in one day.

This doesn't mean AI development is trivial. You still need product understanding, security awareness, and the ability to ask the right questions. But the barrier between idea and product? It's almost gone.

Conrad now analyzes real posts. With real money. Built in one day.

Not bad for a Thursday.

Tags:

AISaaSClaudeCloudflareStripeBuildingInPublic
Ulrich Diedrichsen

Ulrich Diedrichsen

AI Product Builder & Workshop Operator

40 years of software engineering. Ex-IBM, Ex-PwC. Now building real products with AI in Hamburg.