How sshafiuddin-dev/salahhub works
Iqama Times is an installable, local-settings prayer hub for an always-on tablet. The main flow runs from the app’s location and preferences through prayer-time calculation and schedule assembly to clock displays and alerts; parallel features provide weather, adhkar, Quran playback, and feedback. Cloudflare endpoints supply live iqama times and US weather alerts, while committed data supports daily use. Edges reflect calls visible in excerpts or explicit README statements; unsampled capability links are omitted rather than inferred.
Main entry points: app.js App orchestration · quran.js Quran player · feedback.js Feedback UI · adhkar.js Adhkar controls
Components 23
Prayer Hub
- App orchestration
app.js - Clock displays
clocks.js - Weather display
weather.js - Sky and sun
sky.js - Feedback UI
feedback.js
Daily Content
- Adhkar controls
adhkar.js - Hisn text
hisn.js - Hisn al-Muslim data
hisn-text.json - Quran player
quran.js - Queue logic
quran-logic.js
Cloud Services
- Live iqama API
functions/api/iqama.js - Schedule parser
functions/_lib/parse.js - Stored iqama schedule
iqama.json - Weather alerts API
functions/api/alerts.js - Feedback endpoint
functions/api/feedback.js
Prayer Calculation
- Time logic
logic.js - Prayer calculator
lib/PrayTimes.js - Calculation methods
lib/CalculationMethods.js
Other components
- Tablet user
- ISCJ schedule
- US weather service
- Quran recitations
- Resend email
Connections 22
- Tablet user → App orchestration: uses
README.md - App orchestration → Prayer calculator: calculates prayers
app.js - Prayer calculator → Calculation methods: uses methods
lib/PrayTimes.js - App orchestration → Time logic: uses time logic
app.js - App orchestration → Clock displays: renders
app.js - App orchestration → Live iqama API: fetches live times
- Live iqama API → Schedule parser: reads schedule
functions/api/iqama.js - Schedule parser → ISCJ schedule: fetches schedule
functions/_lib/parse.js - App orchestration → Stored iqama schedule: loads schedule
- App orchestration → Weather display: uses weather
app.js - App orchestration → Sky and sun: uses sky data
app.js - App orchestration → Weather alerts API: fetches alerts
- Weather alerts API → US weather service: requests warnings
functions/api/alerts.js - App orchestration → Adhkar controls: controls
app.js - Adhkar controls → Hisn text: uses text
adhkar.js - Hisn text → Hisn al-Muslim data: loads
- App orchestration → Quran player: opens player
app.js - Quran player → Queue logic: uses queue logic
quran.js - Quran player → Quran recitations: plays audio
- App orchestration → Feedback UI: opens feedback
app.js - Feedback UI → Feedback endpoint: submits feedback
- Feedback endpoint → Resend email: sends email
functions/api/feedback.js