How sabinevela/competenciasdk works
CompetenciaSDK is an Ecuador-focused climate and hazard-monitoring mobile app backed by an Express API. The user journey runs from welcome and Supabase authentication into the signed-in dashboard, which provides access to weather, AI risk prediction, community reports, volcano monitoring, and preparedness resources. The backend proxies weather and AI requests and runs scheduled prediction and alert tasks. The README documents major capabilities not fully visible in sampled code; edges to backend integrations follow those documented API flows.
Main entry points: Navigation.tsx Navigation and auth gate · index.js Express API · supabase.ts Supabase client · config.ts Backend URL config
Components 24
Mobile app
- Navigation and auth gate
navegacion/Navigation.tsx - Welcome screen
screens/HomeScreen.tsx - Login and registration
screens/LoginScreen.tsx - Supabase client
security/supabase.ts - Climate dashboard
screens/FirstPage.tsx - AI prediction
screens/PredictScreen.tsx - Community feed
screens/FeedScreen.tsx - Volcano monitor
screens/VolcanoesScreen.tsx - Risk map
screens/MapaScreen.tsx - Emergency plan
screens/EmergenciaScreen.tsx - Climate education
screens/EducacionScreen.tsx - Sustainable actions
screens/AccionesScreen.tsx - Climate video feed
screens/TiktokScreen.tsx - User profile
screens/ProfileScreen.tsx - Backend URL config
src/config.ts
Backend API
- Express API
server/index.js - In-memory feed
server/index.js
Scheduled monitoring
- Prediction and alert jobs
server/scheduler.js - In-memory alerts
server/scheduler.js
External services
- OpenWeatherMap
- OpenAI
- IGEPN data source
- Supabase service
Other components
- App user
Connections 35
- App user → Navigation and auth gate: opens app
README.md - Navigation and auth gate → Welcome screen: routes to
navegacion/Navigation.tsx - Navigation and auth gate → Login and registration: routes to
navegacion/Navigation.tsx - Navigation and auth gate → Climate dashboard: routes to
navegacion/Navigation.tsx - Navigation and auth gate → AI prediction: routes to
navegacion/Navigation.tsx - Navigation and auth gate → Community feed: routes to
navegacion/Navigation.tsx - Navigation and auth gate → Volcano monitor: routes to
navegacion/Navigation.tsx - Navigation and auth gate → Risk map: routes to
navegacion/Navigation.tsx - Navigation and auth gate → Emergency plan: routes to
navegacion/Navigation.tsx - Navigation and auth gate → Climate education: routes to
navegacion/Navigation.tsx - Navigation and auth gate → Sustainable actions: routes to
navegacion/Navigation.tsx - Navigation and auth gate → Climate video feed: routes to
navegacion/Navigation.tsx - Navigation and auth gate → User profile: routes to
navegacion/Navigation.tsx - Navigation and auth gate → Supabase client: checks auth
navegacion/Navigation.tsx - Login and registration → Supabase client: authenticates with
screens/LoginScreen.tsx - Login and registration → Supabase client: registers with
screens/LoginScreen.tsx - Supabase client → Supabase service: connects to
security/supabase.ts - User profile → Supabase client: uses
screens/ProfileScreen.tsx - Climate dashboard → Backend URL config: uses URL
screens/FirstPage.tsx - AI prediction → Backend URL config: uses URL
screens/PredictScreen.tsx - Community feed → Backend URL config: uses URL
screens/FeedScreen.tsx - Volcano monitor → Backend URL config: uses URL
screens/VolcanoesScreen.tsx - Backend URL config → Express API: targets API
README.md - Climate dashboard → Express API: requests weather
README.md - AI prediction → Express API: requests prediction
README.md - Community feed → Express API: reads and posts reports
README.md - Volcano monitor → Express API: requests volcanoes
README.md - Express API → OpenWeatherMap: fetches weather
README.md - Express API → OpenAI: generates predictions
server/index.js - Express API → In-memory feed: reads and writes
server/index.js - Express API → Prediction and alert jobs: starts jobs
server/index.js - Prediction and alert jobs → OpenAI: requests forecasts
server/scheduler.js - Prediction and alert jobs → In-memory alerts: stores high-risk alerts
server/scheduler.js - Express API → In-memory alerts: serves alerts
README.md - Prediction and alert jobs → IGEPN data source: checks hourly
server/scheduler.js