How riefki-123/bunpin works
BundaPintar is a browser-based maternal and child health education and monitoring application. A caregiver uses the Layanan hub to enter child growth measurements or pregnancy dates, review results and history, and complete educational modules and quizzes that award XP and badges. Growth history and gamification state persist in browser local storage. The README also describes BidanBot, but its implementation and connection are not visible in the sampled source; that branch is shown as documented capability only.
Main entry points: layanan.js Monitoring and learning logic · store.js State manager · main.js Shared menu · layanan.html Layanan hub
Components 20
Web experience
- Home
index.html - Layanan hub
layanan.html - About
about.html - Contact
contact.html - Shared menu
js/main.js
Health monitoring
- Monitoring and learning logic
js/layanan.js - Growth references
js/layanan.js - Jejak Janin
js/layanan.js - Growth history
js/layanan.js
Education and rewards
- Education modules
data_edukasi.json - Akademi Bunda
js/layanan.js - Module quizzes
js/layanan.js - XP and badges
js/layanan.js - BidanBot assistant
js
Local state
- State manager
js/store.js - Local storage
Other components
- Caregiver
- Chart.js
- YouTube
- AI service
Connections 23
- Caregiver → Home: opens
- Caregiver → Layanan hub: uses
- Caregiver → About: opens
- Caregiver → Contact: opens
- Home → Shared menu: loads
- Layanan hub → Shared menu: loads
- About → Shared menu: loads
- Contact → Shared menu: loads
- Layanan hub → Monitoring and learning logic: loads
- Monitoring and learning logic → Growth references: checks measurements
- Monitoring and learning logic → Jejak Janin: calculates dates
- Monitoring and learning logic → Growth history: records measurements
- Monitoring and learning logic → State manager: reads and updates
- Monitoring and learning logic → Chart.js: renders chart
- Monitoring and learning logic → Education modules: fetches modules
- Monitoring and learning logic → Akademi Bunda: renders modules
- Akademi Bunda → Module quizzes: opens quizzes
- Module quizzes → State manager: awards XP
- Monitoring and learning logic → State manager: updates progress
- Monitoring and learning logic → YouTube: links videos
- State manager → Local storage: reads and writes
- Caregiver → BidanBot assistant: asks questions
- BidanBot assistant → AI service: consults