Gayathri Sukumar / G3 Labs

Work

G3 Journal — private writing with explicit access boundaries

A focused iPhone journal with photo entries, local retrieval, Keychain-backed PIN policy, device authentication, and a separate data store.

SwiftUI · SwiftData · Keychain · LocalAuthentication

G3 Journal is a single-person writing system with dated entries, optional photos, mood filtering, and text search. Splitting it from the larger family app created a separate storage and release boundary for more personal content.

System structure

SwiftUI editor → SwiftData entry model → local search and filters. Entry metadata and text live in SwiftData. Photos arrive through PhotosPicker, are prepared before persistence, and use external storage for image bytes. Search and mood matching run locally over the entries returned by the store.

A journal-specific four-digit PIN is checked against a salted hash held in Keychain. Retry cooldown limits casual guessing. LocalAuthentication handles device-owner authentication for PIN recovery and an optional app-wide gate. Private CloudKit sync, export, restore, and deletion complete the data lifecycle without introducing an account or journal-content API.

Engineering boundaries

  • Two gates, two purposes. The journal PIN controls entry to the writing area; the optional biometric or device-passcode gate controls entry to the app.
  • The PIN is not content encryption. A short PIN and UI gate do not create end-to-end encryption. The design relies on the iOS Keychain and platform data protection for its stated security boundary.
  • Recovery is a first-class path. Device-owner authentication can recover or remove the PIN, while explicit export and restore keep a lost credential from becoming silent data loss.

The architecture is deliberately narrow: one entry model, local retrieval, platform access controls, and a clear separation between interface privacy and storage protection.

← All work