Project
Tiryaq v2
Diabetes Management Without the Mental Math
1. The Philosophy
Automating metabolic logic to substitute constant clinical anxiety with deterministic, silent guardrails.
Managing Type 1 Diabetes demands continuous, flawless mathematical calculations under conditions of physical and mental fatigue. Tiryaq is a high-resilience mobile application engineered to automate insulin-to-carbohydrate ratios, track dosage metrics, and enforce strict schedule boundaries. It handles these calculations entirely on-device, preserving data absolute privacy and local autonomy.
2. The Technical Breakdown
A. The Multi-Layer Food Database & Meal Composition Engine
-
Decoupled Schema Hierarchy: Built on an optimized local SQLite database structured in a three-layer relational schema to isolate baseline food compositions, meal aggregates, and historical transactional logging.
-
Predictive Calculation Matrix: Converts highly fluid meal inputs into exact nutritional weights on-the-fly, generating immediate, deterministic insulin dosage recommendations based on user-specific sensitivity constants. This eliminates computational human error during critical injection windows.
B. High-Resilience Scheduling & Temporal Automation
-
Time-Shift Rescheduling Logic: Real-world biological schedules are highly dynamic. The core engine implements custom time-shift logic that smoothly reschedules dependent alarms, calibration reminders, and nutritional intake intervals based on current, live metabolic drift.
-
Native Foreground Subsystems: To ensure 100% notification reliability that bypasses standard Android OS aggressive battery-throttling profiles, the application utilizes a native Android AlarmManager bridge bound to dedicated foreground services. This guarantees that critical alarms fire exactly on time, independent of host-device sleep states.
C. Local-First Ingestion & High-Density UI
-
Zero-Latency Data Ingestion: Utilizing a customized, amber-toned Gluestack-UI implementation, the front-end is stripped of visual clutter to maximize rapid data input. The focus is entirely on extreme legibility and rapid tap-targets for quick entry under low-blood-sugar or disoriented cognitive states.
-
Isolated Local Telemetry: Eradicates cloud dependency for critical operations. Analytical reporting engines process local transactional ledgers instantly to generate structural, PDF-exportable trend logs directly from on-device storage.