How kailashkalidoss/vascflow works
VascFlow is an offline-capable ABI wellness tracker: a user enters or scans blood-pressure readings, reviews calculated ABI results, and can save sessions or export a printable summary. Its main runtime is a single vanilla-JavaScript application, with localStorage for drafts and history and a service worker for cached access. The excerpts show the calculation, history, camera/OCR, export, and caching responsibilities, but not every handoff between them; uncertain links are omitted.
Main entry points: app.js Reading entry · sw.js Cache handler
Components 16
Measurement workflow
- Reading entry
app.js - Input validation
app.js - ABI calculation
app.js
Results and records
- Results view
app.js - ABI categories
app.js - Session history
app.js - Draft persistence
app.js - Local storage
- Printable export
app.js
Reading capture
- Device camera
- Text recognition
app.js - Tesseract.js
Offline support
- Cache handler
sw.js - Asset cache
Other components
- User
- Network
Connections 16
- User → Reading entry: enters readings
app.js - Reading entry → Input validation: checks pressures
app.js - Input validation → ABI calculation: calculates maxima
app.js - ABI calculation → Results view: renders results
app.js - Results view → ABI categories: categorizes ABI
app.js - Reading entry → Draft persistence: persists draft
app.js - Draft persistence → Local storage: writes draft
app.js - Session history → Local storage: reads sessions
app.js - User → Session history: saves session
app.js - User → Printable export: exports summary
app.js - User → Device camera: starts scan
- Device camera → Text recognition: provides image
app.js - Text recognition → Tesseract.js: recognizes text
app.js - Cache handler → Asset cache: caches assets
sw.js - Cache handler → Network: fetches misses
sw.js - Network → Cache handler: returns response
sw.js