<?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: mdl2170</title>
    <description>The latest articles on DEV Community by mdl2170 (@mdl2170).</description>
    <link>https://dev.to/mdl2170</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%2F4040254%2Ff1f63072-6d34-46dd-8b99-5fa51ccb2c80.png</url>
      <title>DEV Community: mdl2170</title>
      <link>https://dev.to/mdl2170</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mdl2170"/>
    <language>en</language>
    <item>
      <title>I built an iOS app where AI researches your shower thoughts (and what it actually costs)</title>
      <dc:creator>mdl2170</dc:creator>
      <pubDate>Tue, 21 Jul 2026 14:04:12 +0000</pubDate>
      <link>https://dev.to/mdl2170/i-built-an-ios-app-where-ai-researches-your-shower-thoughts-and-what-it-actually-costs-42dh</link>
      <guid>https://dev.to/mdl2170/i-built-an-ios-app-where-ai-researches-your-shower-thoughts-and-what-it-actually-costs-42dh</guid>
      <description>&lt;p&gt;I kept losing ideas. Not for lack of capture tools — I had Apple Notes, Notion, and a graveyard of half-sentences like "app for the thing??" that meant nothing a week later. The problem was never capture. It's that nothing &lt;em&gt;happens&lt;/em&gt; after capture.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://apps.apple.com/app/thought-spark/id6785658186" rel="noopener noreferrer"&gt;Thought Spark&lt;/a&gt;: a solo-built iOS app where the loop is the product — &lt;strong&gt;Capture → Clarify → Research → Act&lt;/strong&gt;. Here's the architecture, the surprises, and the real unit economics of shipping an LLM app alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;iOS:&lt;/strong&gt; SwiftUI + SwiftData, on-device-first. Ideas never live on my server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; a deliberately thin, stateless FastAPI service on Render. It holds the API keys, meters usage per user, and does nothing else. The server stores identity + usage counts — not idea content.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI:&lt;/strong&gt; Claude (Opus for reasoning/research, Haiku for cheap cleanup), ElevenLabs Scribe for transcription.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth/billing:&lt;/strong&gt; Sign in with Apple → backend-issued JWT; StoreKit 2 with server-side receipt verification via the App Store Server API.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Surprise #1: on-device speech recognition can't do multi-sentence
&lt;/h2&gt;

&lt;p&gt;I started with Apple's Speech framework (&lt;code&gt;requiresOnDeviceRecognition = true&lt;/code&gt;) for privacy. It works beautifully — for one sentence. The recognizer resets its &lt;code&gt;formattedString&lt;/code&gt; per utterance, and there's no clean signal to commit the previous one. After days of segment-stitching hacks, I switched to recording an m4a and uploading to ElevenLabs Scribe (~$0.40/audio-hour). Then a small model pass cleans the transcript: "Um so like I was thinking…" becomes prose. That cleanup step is the single most-loved thing in the app and it costs ~$0.003 per capture.&lt;/p&gt;

&lt;h2&gt;
  
  
  Surprise #2: research UX is a progress problem, not a prompt problem
&lt;/h2&gt;

&lt;p&gt;The research feature sends an idea to the web (Claude's web-search tool) and returns prior art, gaps, and sources. v1 was one big call behind a spinner — 60–90 seconds of blind waiting. Terrible.&lt;/p&gt;

&lt;p&gt;The fix: a &lt;code&gt;/research/plan&lt;/code&gt; endpoint first returns a 3–4 step plan the user can edit, then each step executes as its own call with persisted state. Progress is real ("Researching 2 of 4"), results stream in as steps finish, failed steps retry individually, and the run survives app navigation because state lives in SwiftData, not in a view model.&lt;/p&gt;

&lt;h2&gt;
  
  
  The economics (real numbers)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Operation&lt;/th&gt;
&lt;th&gt;Cost/call&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Capture (transcribe + clean)&lt;/td&gt;
&lt;td&gt;~$0.003&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Title/tags&lt;/td&gt;
&lt;td&gt;~$0.003&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clarify interview turn&lt;/td&gt;
&lt;td&gt;~$0.01–0.02&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Web research run&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;~$0.30–0.50&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Research dominates — one run costs more than a hundred captures. That's why the free tier is generous on capture (unlimited, forever) and capped on research (3/month), and Pro ($7.99/mo) has a 50-run fair-use cap. The pricing isn't growth hacking; it's the cost structure made legible.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell past me
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Meter from day one. Unauthenticated LLM endpoints on a public URL are a wallet with a URL.&lt;/li&gt;
&lt;li&gt;Don't fight platform speech recognition; it's not built for dictation-length input.&lt;/li&gt;
&lt;li&gt;Progress UI beats faster inference. Users forgive 90 seconds they can watch.&lt;/li&gt;
&lt;li&gt;StoreKit 2 + App Store Server Notifications V2 is genuinely good now — but verify signatures server-side; never trust the client's "I'm Pro."&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The app is live: &lt;a href="https://apps.apple.com/app/thought-spark/id6785658186" rel="noopener noreferrer"&gt;Thought Spark on the App Store&lt;/a&gt; · &lt;a href="https://thoughtsparkapp.com" rel="noopener noreferrer"&gt;thoughtsparkapp.com&lt;/a&gt;. Capture is free. I'd love feedback — especially where the loop breaks for you.&lt;/p&gt;

</description>
      <category>ios</category>
      <category>swift</category>
      <category>ai</category>
      <category>indiehack</category>
    </item>
  </channel>
</rss>
