How xdev200/grow-baby-grow works
Grow Baby Grow is an offline-first child health tracking app for parents. A parent creates or selects a child profile, then uses the dashboard to review age-adjusted developmental milestones and alerts, and navigates to assessment, timeline, growth, or vaccination tracking; reports support pediatric consultations. Local persistence underpins these workflows. The README documents clinical standards, corrected age, immunization guidance, offline use, safety alerts, and PDF reporting. Some screen implementations were not sampled, so their internal connections are not inferred.
Main entry points: App.tsx App Router · ChildContext.tsx Child Context · DashboardScreen.tsx Dashboard · VaccinationScreen.tsx Vaccination Tracking
Components 21
App and Profiles
- App Router
src/App.tsx - Child Onboarding
src/screens/OnboardingScreen.tsx - Profile Form
src/components/onboarding/ProfileForm.tsx - Child Context
src/context/ChildContext.tsx
Developmental Tracking
- Dashboard
src/screens/DashboardScreen.tsx - Assessment Logic
src/hooks/useAssessment.ts - Development Quiz
src/screens/QuizScreen.tsx - Milestone Timeline
src/screens/TimelineScreen.tsx - Milestone Processor
src/data/milestoneProcessor.ts
Growth and Immunization
- Growth Tracking
src/screens/GrowthScreen.tsx - Growth Chart
src/components/growth/GrowthChart.tsx - Vaccination Tracking
src/screens/VaccinationScreen.tsx - Vaccine Schedule
src/services/vaccineService.ts - Clinical Reports
src/services/report.ts
Local Data
- IndexedDB Storage
src/services/storage.ts - Local Preferences
src/services/preferencesService.ts
Clinical Foundations
- Age Calculation
src/utils/age.ts - Child Helpers
src/utils/childHelpers.ts - ID Utility
src/utils/id.ts - Clinical Data Types
src/types/index.ts
Other components
- Parent
Connections 32
- Parent → App Router: uses
src/App.tsx - App Router → Child Onboarding: routes to
src/App.tsx - App Router → Dashboard: routes to
src/App.tsx - App Router → Development Quiz: routes to
src/App.tsx - App Router → Milestone Timeline: routes to
src/App.tsx - App Router → Growth Tracking: routes to
src/App.tsx - App Router → Vaccination Tracking: routes to
src/App.tsx - App Router → Child Context: provides
src/App.tsx - Child Onboarding → Profile Form: renders
- Child Context → IndexedDB Storage: reads and writes
src/context/ChildContext.tsx - Child Context → Local Preferences: reads and writes
src/context/ChildContext.tsx - Child Context → Age Calculation: calculates age
src/context/ChildContext.tsx - Dashboard → Child Context: reads context
src/screens/DashboardScreen.tsx - Dashboard → Assessment Logic: uses
src/screens/DashboardScreen.tsx - Assessment Logic → IndexedDB Storage: reads logs
src/hooks/useAssessment.ts - Assessment Logic → Milestone Processor: uses milestones
src/hooks/useAssessment.ts - Dashboard → Vaccine Schedule: checks schedule
src/screens/DashboardScreen.tsx - Dashboard → Clinical Reports: generates report
src/screens/DashboardScreen.tsx - Growth Tracking → Growth Chart: renders
src/screens/GrowthScreen.tsx - Vaccination Tracking → Vaccine Schedule: uses schedule
src/screens/VaccinationScreen.tsx - Vaccine Schedule → IndexedDB Storage: reads and writes logs
src/services/vaccineService.ts - Vaccination Tracking → IndexedDB Storage: uses
src/screens/VaccinationScreen.tsx - Vaccination Tracking → Local Preferences: uses
src/screens/VaccinationScreen.tsx - Vaccination Tracking → Child Context: reads context
src/screens/VaccinationScreen.tsx - Growth Tracking → Child Context: reads context
src/screens/GrowthScreen.tsx - Clinical Reports → Milestone Processor: uses milestones
src/services/report.ts - Clinical Reports → Child Helpers: uses
src/services/report.ts - Dashboard → IndexedDB Storage: reads logs
src/screens/DashboardScreen.tsx - Profile Form → Age Calculation: calculates age
src/components/onboarding/ProfileForm.tsx - Profile Form → ID Utility: creates identifiers
src/components/onboarding/ProfileForm.tsx - Vaccine Schedule → Clinical Data Types: uses types
src/services/vaccineService.ts - Milestone Processor → Clinical Data Types: uses types
src/data/milestoneProcessor.ts