How dearseolhwa/uni-guard works
UniGuard is a prototype for community disaster information and response: residents and local officials use a browser-based app for reporting, alerts, assistance, preparedness information, and road updates. The central runtime controller handles user actions and delegates database work to a repository that supports Supabase and a local/offline mode. The tree also shows account management and notification delivery services. Source excerpts are partial, so some feature modules are shown without inferred call relationships.
Main entry points: screens.js Mobile screens · screens.web.js Web screens · app.js App controller · repo.js Data repository
Components 23
Web application
- App controller
final yata/js/app.js - Account screens
final yata/js/screens.auth.js - Mobile screens
final yata/js/screens.js - Web screens
final yata/js/screens.web.js
Response features
- Location services
final yata/js/geo.js - Hazard map
final yata/js/map.js - Hazard types
final yata/js/hazard-types.js - SOS reporting
final yata/js/sos.js - Urgent alerts
final yata/js/urgent-alerts.js - Relief assistance
final yata/js/relief.js - Road updates
final yata/js/roadwork.js - Preparedness guides
final yata/js/guides.js - Help center
final yata/js/faqs.js
Data and identity
- Authentication
final yata/js/auth.js - Data repository
final yata/js/repo.js - Supabase backend
- Admin user service
final yata/supabase/functions/admin-users/index.ts
Notification delivery
- Notification store
final yata/js/notifications-store.js - Offline and PWA
final yata/js/pwa.js - Service worker
final yata/sw.js - Push dispatch
final yata/supabase/functions/push-dispatch/index.ts - SMS fallback
final yata/supabase/functions/sms-fallback/index.ts
Other components
- Resident or official
Connections 13
- Resident or official → App controller: uses
- App controller → Data repository: loads data
final yata/js/app.js - App controller → Location services: reverse geocodes
final yata/js/app.js - Authentication → Data repository: reads profiles
final yata/js/auth.js - Data repository → Supabase backend: reads and writes
final yata/js/repo.js - Mobile screens → Relief assistance: renders relief
final yata/js/screens.js - Mobile screens → Preparedness guides: renders guides
final yata/js/screens.js - Mobile screens → Help center: renders FAQs
final yata/js/screens.js - Web screens → Relief assistance: renders relief
final yata/js/screens.web.js - Web screens → Preparedness guides: renders guides
final yata/js/screens.web.js - Web screens → Help center: renders FAQs
final yata/js/screens.web.js - Push dispatch → SMS fallback: invokes fallback
final yata/supabase/functions/push-dispatch/index.ts - Service worker → Push dispatch: handles payload
final yata/sw.js