Skip to content
razeltechPublic

About

Offline-First Family Medicine Routine & Inventory Guardian — 145+ PMBJP Jan Aushadhi & NLEM Formulations, Dose Calendar Adherence, and Natural Voice Assistant

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MEDIC — Offline-First Family Medicine Routine & Inventory Guardian



MEDIC Live Telemetry Monitor

MEDIC

Offline-First Family Medicine Routine & Inventory Guardian

Live Demo PWA Ready Medical Standards Voice TTS Zero Cloud Privacy Powered By

A resilient, 100% offline-first Progressive Web Application (PWA) tailored for multi-generational Indian households to track clinical routines, calendar adherence logs, inventory stock depletion, optical packaging recognition, and pharmacy reorders with zero subscription fees, zero cloud surveillance, and authentic natural Indian accent voice guidance.

[ Launch Web Application ]  •  [ System Overview ]  •  [ Core Capabilities ]  •  [ Medicine Catalogue ]  •  [ Architecture ]  •  [ Development ]


Clinical System Overview

System Dimension Clinical & Architectural Specification
Live Web Application https://razeltech.github.io/medic/
Primary Repository https://github.com/razeltech/medic
Distribution Mirror https://github.com/r2dapps/medic
Engineering Author Razel Tech
Runtime Target Modern Web Browsers (Chrome, Edge, Safari, Firefox), Android PWA, iOS PWA
Storage Engine 100% Client-Side W3C IndexedDB (16 Atomic Object Stores, Zero Remote Calls)
Formulary Standards PMBJP Jan Aushadhi Generics, NLEM 2022, CDSCO Formulations & OpenFDA Fallback
Calendar Adherence Engine Monthly Dose Compliance Tracker with Full/Partial/Missed Color Matrix & Streak Metrics
Acoustic Synthesizer Harmonic Web Audio Tri-Tone Chimes (D5-A5-D6) with Exponential Decay

Core Capabilities

Zero-Cloud Offline Engine

STATUS: 100% AIR-GAPPED CAPABLE

Built strictly to W3C Progressive Web App standards with high-resilience Service Worker caching (sw.js). Runs identically across Android, Apple iOS, Windows, macOS, and Linux desktop browsers. Fully operational in basements, transit, or rural zones with zero cellular connectivity.

Jan Aushadhi & NLEM Formulary

STATUS: 145+ FORMULATIONS INCLUDED

Comprehensive catalogue containing 145+ essential medicine formulations including 33 Pradhan Mantri Bhartiya Janaushadhi Pariyojana (PMBJP) generic salts. Features two-way generic-to-brand mapping and progressive OpenFDA online medicine discovery with automatic IndexedDB caching.

Calendar Adherence History

STATUS: MONTHLY MATRIX & STREAK TRACKING

Interactive month-by-month compliance calendar visualizing full adherence, partial compliance, and missed doses. Select any calendar day to inspect an itemized log of taken routines with patient chips, exact dosage timestamps, and clinical food timing.

Natural Accent Speech Synthesis

STATUS: EN / HI / TE VOICE CALIBRATED

Dedicated speech prioritization configured for natural Indian phonetics. Prioritizes Microsoft Aarti Online, Apple Rishi, and Google Indian phonetics with normalized 0.88x cadence and 1.04 pitch for elderly auditory clarity in English, Telugu (తెలుగు), and Hindi (हिन्दी).

Harmonic Web Audio Chimes

STATUS: D5 - A5 - D6 RESONANCE

Zero-file Web Audio API algorithmic chime generator. Synthesizes gentle tri-tone acoustic alerts (587 Hz → 880 Hz → 1175 Hz) with natural exponential decay ramps, replacing jarring phone alarms with soothing clinical reminders.

WhatsApp Pharmacy Refill Dispatcher

STATUS: 1-TAP STANDARDIZED ORDER

Compiles pending shortages and depleted stock into clean, standardized WhatsApp order strings formatted for immediate transmission to neighborhood chemists or delivery services without manual typing.

On-Device Packaging OCR Engine

STATUS: CLIENT-SIDE TESSERACT.JS

HTML5 Canvas pre-processing normalizes contrast and applies adaptive binarization before client-side Tesseract.js optical character recognition extracts brand names and salt strengths without transmitting packaging photos to external servers.

Ergonomic Accessibility Settings

STATUS: TEXT SCALING & ROLE CONTROL

Configurable text sizing (Standard 15px, Medium 17px, Large 19px) specifically tailored for senior vision accessibility, combined with multi-role access modes (Caretaker, Adult Member, Senior Patient).

Multi-Role Access Control (RBAC)

CARETAKER MODE ADULT MEMBER MODE SENIOR PATIENT MODE
Administrative Control
  • Prescribe medicine regimens
  • Register household members
  • Scan blister packaging via OCR
  • Record pharmacy purchases
  • Manage local database backups
Operational Execution
  • Log taken and skipped doses
  • Track personal daily schedules
  • Record expense line items
  • Inspect current stock inventory
  • Trigger WhatsApp reorders
Accessible Simplicity
  • High-contrast visual layout
  • One-tap dose confirmation
  • Aarti natural voice read-aloud
  • Large readable font scaling
  • Destructive settings locked out

Clinical Formulary Database

PMBJP Jan Aushadhi & NLEM 2022 Classification Reference
Clinical Classification Reference Formulations Standard Food Timing Regulatory Standard
Jan Aushadhi Generics Metformin IP 500/1000mg, Telmisartan IP 40mg, Paracetamol IP 650mg, Atorvastatin IP 10/20mg, Pantoprazole IP 40mg Clinical Protocol PMBJP / NLEM
Cardiology & BP Telma 40, Telma AM, Amlong 5, Cilacar 10, Starpress XL 50 After Food CDSCO / NLEM 2022
Endocrinology (Diabetes) Glycomet 500, Glycomet-GP 1/2, Januvia 100, Galvus 50 Before / With Food NLEM 2022
Gastroenterology Pan 40, Pan-D, Omez 20, Pantocid 40, Gelusil Before Food (Empty Stomach) NLEM 2022
Analgesics & Antipyretics Dolo 650, Calpol 650, Combiflam, Zerodol-P After Food CDSCO / NLEM 2022
Thyroid Management Thyronorm 25/50/75/100 mcg, Eltroxin Early Morning (Empty Stomach) CDSCO
Pulmonology (Asthma) Asthalin 100 mcg Inhaler, Budecort, Montair LC Anytime / Night NLEM 2022
Nutritional Supplements Becosules Z, Neurobion Forte, Shelcal 500, Evion 400 After Food CDSCO
Infectious Diseases Augmentin 625 Duo, Azithral 500, Taxim-O 200 After Food CDSCO / NLEM 2022

System Architecture

+-------------------------------------------------------------------------+
|                           MEDIC CLIENT (PWA)                            |
+------------------------------------+------------------------------------+
| UI LAYER                           | LOGIC & ENGINES                    |
| - Semantic HTML5 Responsive Shell  | - Web Speech API (Indian Cadence)  |
| - Multilingual Dictionary Engine   | - Web Audio API (Harmonic Chimes)  |
| - Tailwind CSS Design Architecture | - 15-Second Due Dose Scheduler     |
| - Calendar Dose Adherence Tracker  | - Progressive OpenFDA Fallback     |
| - Optical Strip Canvas OCR Preproc | - WhatsApp String Refill Builder   |
+------------------------------------+------------------------------------+
                                     |
                                     v
+-------------------------------------------------------------------------+
|                  W3C INDEXEDDB STORAGE (16 ATOMIC STORES)               |
+-------------------+--------------------+-------------------+------------+
| Households        | Caretakers         | FamilyMembers     | Conditions |
| MedicineCatalogue | MemberMedicines    | MedicineSchedules | DoseHistory|
| MedicineInventory | InventoryAdjustments| Purchases        | PurchaseItems|
| RefillHistory     | OCRRecords         | NotificationPrefs | AppSettings|
+-------------------+--------------------+-------------------+------------+

Local Development

1. Clone Repository

git clone https://github.com/razeltech/medic.git
cd medic

2. Run Local Development Server

Because MEDIC is completely zero-backend and offline-first, no build tools or server runtime installations are mandated:

npx serve .

Or with Python:

python -m http.server 8000

3. Open Application

Navigate to http://localhost:8000 or http://localhost:3000 in any modern browser.


Distribution Mirrors


License & Mandatory Attribution

Copyright (c) 2026 Razel Tech. All rights reserved.

Licensed under the MIT License with Mandatory Author Attribution. Any public deployment, mirror, or distribution must attribute the author as Razel Tech and include an active hyperlink to https://razeltech.github.io.

About

Offline-First Family Medicine Routine & Inventory Guardian — 145+ PMBJP Jan Aushadhi & NLEM Formulations, Dose Calendar Adherence, and Natural Voice Assistant

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages