cd /news/artificial-intelligence/how-i-built-a-100-on-device-ai-refle… · home › topics › artificial-intelligence › article
[ARTICLE · art-177876] src=dev.to ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

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

A developer built Refruna: AI Reflection, a CBT-inspired journaling app for iPhone and iPad that runs every AI step on-device using Apple's Foundation Models framework on iOS 26, with no cloud endpoints, no accounts, and a one-time purchase instead of a subscription. The app guides users through a structured five-step thought record, keeps reflections out of remote backups via NSURLIsExcludedFromBackupKey, and adds a six-circle haptic breathing exercise alongside writing, shipping in English, Spanish, and Brazilian Portuguese.

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 playbook: Designing agent systems
by read2 min views5 publishedNov 28, 2026

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 (App Store)—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 .

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!

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @apple 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-i-built-a-100-on…] indexed:0 read:2min 2026-11-28 · —