A local-first family journal being developed to cover pregnancy, birth, postpartum care, and raising children. The product prioritizes quick recording, accurate history, traceable analysis, data protection, and use across platforms. See the product definition (Chinese) for the target experience, acceptance criteria, and implementation order.
The current implementation covers daily care for children aged 0–6, built with React, TypeScript, Tauri 2, and the shared Vita design system. Desktop, iOS, and Android use the same application entry at /. Pregnancy and maternal profiles, birth transitions, and trend analysis are planned, not yet implemented.
Create a child profile, record feeding, diaper changes, sleep, bathing, vaccinations, growth, and vitamins. Build custom record types from timers, counters, measurements, choices, notes, and dates. Track family supplies with refill thresholds. Search history, edit records, delete with Undo, and resume active timers after reopening the app.
Settings offers System, Light, and Dark appearances, remembered on each device. Appearance settings are also available before creating a child profile.
Desktop Settings also includes a configurable global shortcut for quick recording. The default is Command+Shift+Space on macOS and Control+Shift+Space on Windows/Linux. While the app is running, it opens an always-on-top full-screen recorder with a clock and numbered record types. Press 1–9 to select a type and open its bottom sheet, then save with Enter (Command/Control+Enter in notes). Saving closes only the sheet, keeping the recorder open for the next entry. Escape dismisses the sheet; Escape from the type picker or the Close button closes the recorder and restores the previous window state. Returning to the picker preserves the current form until another type is selected or the recorder closes. Types beyond the first nine remain clickable.
Closing the main desktop window keeps the app in the system tray; use the tray's Quit action to exit. Shortcut preferences are stored in the native app configuration directory, separately from care data. Registration conflicts are reported in Settings. Browser and mobile builds do not expose desktop shortcuts. macOS packaging and the recorder UI have been checked locally; physical cross-app hotkey activation and Windows/Linux window behavior still need platform verification.
Use Node.js 26 LTS (26.13.1 pinned in .node-version) and pnpm 12.18.0, pinned in package.json.
If your global pnpm is older, prefix commands with npm exec --yes --package=pnpm@12.18.0 --,
for example npm exec --yes --package=pnpm@12.18.0 -- pnpm install.
Android uses AGP 8.13.2, Gradle 8.14.5, and Kotlin 2.1.21 for compatibility with
Tauri 2.11.6. AGP 9.4.1 / Kotlin 2.4.20 reject the legacy Android and
kotlinOptions DSL still used by Tauri's Android libraries. Upgrade that toolchain
when the upstream libraries migrate; do not upgrade those three versions independently.
pnpm install
pnpm dev # Browser: http://localhost:1424
pnpm dev:desktop # Tauri desktop
pnpm init:ios # Once, with Xcode installed
pnpm dev:ios # Select a simulator/device
pnpm dev:ios:sim # Booted simulator with UI hot reload
pnpm init:android # Once, with Android SDK/NDK installed
pnpm dev:androidTo select the simulator directly: pnpm dev:ios 'iPhone 17 Pro'. Close another development process using port 1424 before launching. No example URL or configuration override is required.
pnpm typecheck
pnpm test
pnpm build
pnpm build:desktop
pnpm build:ios:sim
pnpm build:androidNative builds require the corresponding SDK. Device signing and store distribution require platform-specific setup.
For SDK paths, standalone APK builds, and USB installation, see Android physical-device development.
src/main.tsx,src/App.tsx: single application entry.src/features/little-days/domain/: validated domain schemas and date/timer calculations.src/features/little-days/storage/: local persistence boundary.src/features/little-days/hooks/: workspace actions, context consumption, and nursing clock lifecycle.src/features/little-days/state/: workspace context, provider, and navigation/dialog types.src/features/little-days/components/: components grouped by responsibility; forms live with their feature.src/features/little-days/pages/: page composition. See the feature structure.packages/: shared UI, typography, tokens, and styles.src-tauri/: desktop, iOS, and Android hosts.
examples/ has been removed. Earlier Journal and Collage modules and unrelated prototypes remain as historical work, disconnected from the shipped entry. Their tests remain intact. The Little days prototype has been promoted and removed.
New installations start empty; no fictional children or medical records are inserted. Data uses the versioned little-days.workspace.v1 local-storage key. Writes validate the full workspace; failed saves preserve the form, and unreadable data is never silently reset. Timers persist their start timestamps and paused duration; elapsed time is recalculated after reopening. Each browser origin and each native installation has its own storage. This is not encrypted storage or a backup service; uninstalling or clearing app data removes records. Old Journal/Collage storage is not imported or deleted.
LocalStorage is the first persistence adapter. Cloud sync, backup/export/import, profile editing, notifications, widgets, Live Activities, and store release setup are not implemented. Timers do not require a continuously running WebView, but there are no background notifications. Vaccination and vitamin entries record caregiver input; the app does not prescribe schedules or dosage.
Keep pnpm dev:ios:sim running while editing React, CSS, or shared UI packages. Boot a simulator first and free ports 1424/1425. start:ios:sim only opens the installed app; build:ios:sim bundles static assets and does not provide hot reload.