KCL
CV

Pick an app from the dock or press ⌘K

MediTrack
Visit Live App

MediTrack

Full-Stack Care Platform

Production medication adherence, regimen scheduling, and inventory tracking platform.

Live
Patient Care Telemetry & Gemini 2.5 Triage
AES-256 Encrypted

Adherence

98.4%

Next Dose

08:00 AM · Sync

Portal Mode

Patient + MD

Overview

A production full-stack medication management and patient adherence platform. Engineered with strict dose state machines, idempotent occurrences, flexible regimen engines (daily times, recurring intervals, and multi-day cycles), non-negative inventory decrement triggers, and streak analytics with divide-by-zero protection. Verified with deterministic Vitest test suites running in <500ms.

Key Architecture & Features

  • Strict dose state machine: transitions between scheduled, taken, missed, skipped, and undo
  • Composite idempotency prevention against duplicate dose insertion on identical timestamps
  • Multi-regimen scheduling engine: daily specific times, fixed recurring intervals, and on/off cycles
  • Real-time inventory bounds enforcement with boundary-trip alerts when stock falls below threshold
  • Adherence rate and continuous streak analytics calculation with zero-division safety
  • Offline-first PWA design with Web Push notifications via VAPID and Upstash QStash scheduling
  • Deterministic unit and integration test suite with Vitest passing in <500ms

Technologies

Next.js 16React 19TypeScriptTailwind CSSDrizzle ORMNeon PostgreSQLBetter AuthUpstash QStashVitest
View RepositoryVisit Live App