What it does
You record recurring dreams. Every five entries, the app analyses them together and produces a pattern card. It is deliberately not a dream dictionary: each dream is decoded from the dreamer’s own associations, and every five entries the app looks for what repeats.
Each dream also gets a theme, a message and a reprogramming step: a way to revisit the scene before sleep, with a phrase to anchor it.
The app
- iOS 26: SwiftUI, SwiftData mirrored to the user’s private CloudKit.
- Live dictation: on-device with Apple’s new
SpeechAnalyzer/DictationTranscriber, plus automatic language detection (NaturalLanguage). - Also: App Intents, background tasks, StoreKit 2, Charts.
- Android: Compose, Hilt, Room, Firebase, encrypted storage, Play Billing.
The AI layer
- Three versioned system prompts (detective, interpreter, pattern; currently v1.1) ship as files with both apps, so iOS and Android behave the same.
- The app never calls the model directly. It goes through a Cloudflare Worker I wrote that:
- accepts only the app’s own prompts, recognised by hash, so the endpoint can’t be reused as a general-purpose LLM;
- allows only approved Claude models (Sonnet by default, Haiku available), with a token cap per prompt;
- requires a bearer token and rate-limits per IP;
- streams when the client asks, with observability on.
What this shows
Shipping an LLM feature means more than the prompt. It also covers cost control, abuse prevention, prompt versioning across platforms, and a product framing that keeps the model in a role it’s good at.