Architecture

My iOS app has no backend. Here is everything that decision cost and bought.

I build and sell Stacklight, an iPhone and Apple Watch dashboard for homelabs. It monitors and controls self-hosted services: Pi-hole, TrueNAS, Proxmox, Jellyfin, Home Assistant, 23 integrations in total. Before I wrote any of it, I made one architectural decision that ended up dictating almost everything else: there is no server. Not a small one. Not a relay. Not an analytics endpoint. The app talks to your services and to nothing else.

I want to write down honestly what that decision cost and what it bought, because “no backend” gets used as a marketing phrase, and it is one, but it is also an engineering constraint with teeth. If you are considering the same architecture, this is the ledger I wish I had read first.

Why I did it

I am a self-hoster. The entire point of running services at home is that no third party sits between you and your data. Every “homelab companion” app that routes your dashboard through someone’s cloud struck me as missing the point of the hobby it serves. If my app phoned home, the pitch would be “trust me.” I wanted the pitch to be “there is nothing to trust.”

The App Store privacy label for Stacklight says “Data Not Collected.” That label is self-declared, but it is contractually binding, and in my case it is also structurally true: there is no place for data to go. You do not have to believe me. Put the app behind your Pi-hole and read the query log. That is the entire audit.

What it bought

A privacy claim that survives hostile questions. When someone on Reddit asks “how do I know you’re not harvesting my API keys,” I have an answer that does not depend on my character: watch the network. Credentials live in the iOS Keychain, marked synchronizable, so they roam through iCloud Keychain, Apple’s infrastructure, not mine. The service list syncs through the user’s own iCloud via CloudKit. Apple is in the loop because Apple is already in your loop if you own an iPhone. I am not.

Zero marginal infrastructure cost, forever. The app costs me the Apple developer fee and my time. There is no server bill that scales with users, no database to migrate, no 3am pager. A one-person paid app has brutal economics; removing the recurring cost side is the difference between a sustainable side project and a slow bleed.

The app cannot die with me. This matters to self-hosters specifically. If I stop renewing my developer account tomorrow, every installed copy keeps working, because it never depended on anything I run. Software that outlives its maintainer is normal in the self-hosted world and nearly extinct in the app economy.

No GDPR surface, no breach surface, no subpoena surface. I cannot leak what I do not have. I cannot be compelled to hand over what was never sent to me. For a solo developer without a legal department, the cheapest compliance strategy is structural incapacity.

What it cost

Push notifications. This is the big one. “Tell me when my NAS goes down” is the most requested feature in my inbox, and it is the one thing this architecture cannot do honestly. Apple push requires a server that sends the push. Any “we watch your server and notify you” feature means my infrastructure probing your homelab, which is the exact thing I promised never to build. The honest version, which is on the roadmap, is subscribing the app to notifications the user’s own stack sends, via their own ntfy or Gotify instance. Your server tells your phone. I stay out of it. But I shipped v1 without down alerts, and I feel that gap every time a review mentions it.

Debugging blind. I have no crash telemetry beyond Apple’s opt-in reports and no analytics of any kind. When a user says “the TrueNAS screen is empty,” I cannot look at logs, because there are none to look at. Support becomes a correspondence: which version, which setup, what does this diagnostic screen show. It is slower for them and for me, and I chose it anyway, because the alternative is a telemetry pipeline with my name on it.

I do not know how many people use the app. I know downloads and sales because App Store Connect tells me. I do not know retention, feature usage, or which of the 23 integrations is most loved. Every product decision runs on reviews, emails, and my own usage instead of a dashboard. Occasionally I am sure this makes me slower and wronger. It also makes me listen harder to the users who actually write.

Sync is at the mercy of two systems I do not control. Config rides CloudKit; secrets ride iCloud Keychain. Both are opaque. When sync is slow, I cannot inspect a queue, because it is Apple’s queue. The Apple Watch app is a read-only mirror of the synced store, which means it is exactly as fresh as iCloud feels like being. I traded operational control for not operating anything.

Some features are just harder. Widgets cannot be fed by a server, so the widget extension will have to fetch from the homelab itself, inside WidgetKit’s time and memory budget, over whatever route the phone currently has to the lab. Cert pinning for self-signed certs had to be built into the app (trust on first use, SHA-256 of the leaf, with a prompt when a fingerprint changes) because there is no proxy in the middle to terminate TLS nicely. Everything the easy architecture outsources, this one does on device or not at all.

The App Review chapter

I will compress two months into a paragraph. An automated check saw credential fields and assumed a login flow with no demo account; that took a physical-device screen recording to resolve. Then a human reviewer flagged the app under the guideline about enabling access to third-party media services. The fix was not removing integrations; it was adding an explicit acceptable-use notice and terms. The app went live with all 23 integrations intact. What I learned: App Review responds to precision. Answer the exact question, show the exact screen, volunteer nothing else.

The part where I am honest about tools

I used AI heavily to build this app. Claude wrote a substantial share of the Swift, under my direction and review, the same way a growing share of working developers use it now. What it did not do: run my homelab, sit with 23 APIs until their real behavior matched their documentation, decide what a TrueNAS screen should show versus a Pi-hole screen, test on my own devices every day for months, or carry the app through App Review. I say this in every public post about the app, before anyone asks, because I would rather it be my sentence than someone’s discovery. Tools have never made anyone a builder. Judge the app.

Would I do it again

Yes, and I already have, because v1.1 doubled down: I rewrote the TrueNAS integration from the deprecated REST API to their new WebSocket JSON-RPC API before TrueNAS 27 ships and breaks every client that waited. No backend means nothing saved me from that migration; the app speaks to TrueNAS directly, so the app had to learn the new language. That is the deal in one sentence: every burden lands on the client, and in exchange, nothing stands between you and your stack.

If you run services at home, that trade will feel familiar. It is the self-hosting trade. I just made an app that takes the same side of it.

Stacklight is on the App Store. Free for 3 services, one-time purchase for unlimited, no subscription. The stack it watches is yours; the app is just a very opinionated HTTP client.