# How I Built a 100% On-Device AI Reflection Journal with Apple's Foundation Models Framework (Zero Cloud, Zero Accounts)

> Source: <https://dev.to/woojinlim530/how-i-built-a-100-on-device-ai-reflection-journal-with-apples-foundation-models-framework-zero-29ef>
> Published: 2026-11-28 20:38:32+00:00

**Recommendation:** Constrain on-device LLM features with a fixed multi-step prompt structure rather than an open-ended chat window, and exclude private user files from backup with NSURLIsExcludedFromBackupKey to keep data local.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

There is a fundamental privacy paradox in almost every AI journaling app on the App Store today:

They ask you to write down your most vulnerable thoughts—anxieties, relationship friction, career doubts, bad days—and then immediately POST that raw text to a cloud LLM endpoint, store it in a remote database tied to your email address, and charge **$12/month** forever to cover API tokens.

That felt completely backwards to me. Personal writing should stay **personal**.

So I built **[Refruna: AI Reflection](https://refruna.com)** ([App Store](https://apps.apple.com/app/id6834296619))—a private, CBT-inspired reflection journal for iPhone and iPad where **every single AI step runs 100% on-device using Apple's Foundation Models framework** (iOS 26 / iPadOS 26).

Here are the architecture decisions that made a zero-cloud, zero-account, one-time-purchase AI app possible.

Instead of dropping users into an open-ended chatbot window—which often spirals into passive reassurance—Refruna guides you through a structured **5-step CBT-inspired thought record**:

Because inference runs locally via Apple's **Foundation Models framework**:

Privacy shouldn't be a toggle buried three settings screens deep. In Refruna:

`NSURLIsExcludedFromBackupKey`), so private reflections aren't silently duplicated onto remote backup servers.
When a thought is looping hard, staring at a blank text box can feel overwhelming. Refruna includes a **six-circle breathing exercise** (1, 3, or 5 minutes with optional subtle iPhone haptics) that can stay running right alongside your writing, with compact controls whenever you need a pause.

If you want to try the 5-step CBT reflection format and six-circle breathing rhythm right now in your browser (100% local JavaScript, zero network calls):

And if you're on iPhone or iPad and want on-device Apple Intelligence CBT guidance, searchable saved reflections, follow-up exercises, and haptic breathing in **English, Spanish, or Brazilian Portuguese**:

*(Note: Refruna is designed for personal reflection and general wellbeing—not medical advice, diagnosis, psychotherapy, or emergency care.)*

Are any other iOS devs here shipping production apps with Apple's Foundation Models framework yet? I'd love to hear how you're handling structured prompting and graceful fallbacks!
