[ swiftui · iphone ]
Auremi
An expense journal that never leaves the phone.
SwiftUI, one local file, Apple Pay through Shortcuts, and an on-device model that explains but never decides.
A local-first expense journal for iPhone. Spending, income, accounts, goals and debts stay on the device. There are no bank connections and no backend; the on-device model is optional and never touches a number.
The diary is one file, and saving comes first
Everything lives in a single journal file. Screens never mutate it: they call an operation on the store, which builds the next snapshot and hands it to a commit. The commit writes to disk first, atomically and with full file protection; only when the write succeeds does the store publish the snapshot and bump its revision. A failed save keeps the previous file and the published state as they were. Widgets and notifications read the same journal through a shared app group.
- Capture form · Apple Pay · PDF statement · receipt photo
- Store operation builds the next snapshot
- Atomic write full file protection
- Publish new revision, only after the write
- Screens · widgets · notices
The journal has gone through ten schema versions. One migration sequence serves both opening a journal and restoring a backup, and before a migrated journal is saved, a self-contained copy with its photos is written next to it.
Money rules
- Amounts are cents, and every calculation is local code.
- Income is its own record, never a negative expense. Pay periods include their start and exclude their end.
- Pesos and dollars are never converted or added together. A dollar budget has its own profile and periods.
- What left my accounts is not what I consumed. A dinner I paid for and split counts the whole amount as outflow and only my share as spending; a repayment is not new income.
Apple Pay without a server
The app exposes native App Intents to Shortcuts. A personal automation on the iPhone fires on each Wallet payment and hands the amount and merchant to the app, which drops it into a durable inbox and imports it idempotently, so a retry never records the same payment twice. Nothing goes through a payment API.
- Wallet payment
- Shortcuts automation
- App Intent
- Durable inbox
- Idempotent import
One bug shows how this is debugged. A payment arrived with no amount. The phone's logs showed it had no data connection when I paid, so Wallet did not yet know the amount; Shortcuts waited 100 seconds, ran the automation with an empty amount and then crashed converting that empty currency value to text, so the app never ran. Reproduced on a Mac with the same frameworks, the fix was to take the amount as a number, which turns an empty value into zero instead of a crash. The earlier diagnosis was wrong, and the doc says so.
A model that explains, never decides
Goals have an assistant on Apple Intelligence's on-device model, when the device has it. It drafts explanations; it does not choose amounts, change data or press buttons. Each question travels as quoted data next to the plan's verified facts, never as an instruction; input is capped at 500 characters and output at 300 tokens, and an answer that introduces figures of its own is replaced by the computed explanation. Without the model, three guided questions with calculated answers take its place.
Status
In TestFlight, not in the App Store yet. The latest validation run passed 884 unit tests with no failures, on the simulator; the doc keeps simulator and device results apart, and flows not yet checked on a physical iPhone are listed as unverified. Requires iOS 26.
Stack Swift · SwiftUI · App Intents · WidgetKit · Foundation Models · Vision · PDFKit · Codable · XcodeGen