How chichibukai/cebu-brownout-track works
Cebu Brownout Tracker presents Cebu City outage information on a map and supports crowd outage reports and user ratings; server endpoints expose outage data and accept reports and feedback. Admin pages provide rating results/CSV export and compare feed events against a reference advisory. Backend calls are supported by the sampled source. The frontend modules indicate map, display, interaction, and feedback responsibilities, but their contents were not sampled, so their connections are left unverified.
Main entry points: app.js App bootstrap · pages.js Admin page logic · store.js Report and rating store · http.js HTTP response helpers
Components 26
Tracker interface
- App bootstrap
public/assets/js/app.js - Outage map
public/assets/js/map.js - Map drawing
public/assets/js/draw.js - UI state
public/assets/js/state.js - Client data
public/assets/js/data.js - Outage panel
public/assets/js/panel.js - Today view
public/assets/js/today.js - Crowd reports UI
public/assets/js/crowd.js - Ratings UI
public/assets/js/feedback.js - UI events
public/assets/js/events.js - View tabs
public/assets/js/tabs.js - Status banner
public/assets/js/banner.js - Client configuration
public/assets/js/config.js - Client utilities
public/assets/js/utils.js
HTTP endpoints
- Outage endpoint
api/outages.js - Crowd endpoint
api/crowd.js - Feedback endpoint
api/feedback.js - Results endpoint
api/results.js - Feed check endpoint
api/check.js - HTTP response helpers
lib/http.js
Outage and admin logic
- Feed fetch and normalization
lib/outages.js - Admin page logic
lib/pages.js
Report persistence
- Report and rating store
lib/store.js
Other components
- Tracker visitor
- Outage feed service
- Upstash Redis
Connections 30
- Tracker visitor → App bootstrap: uses
- App bootstrap → Outage map: renders
- App bootstrap → Client data: loads data
- App bootstrap → UI state: uses state
- Outage map → Map drawing: draws map
- App bootstrap → Outage panel: shows details
- App bootstrap → Today view: shows today
- App bootstrap → Crowd reports UI: offers reports
- App bootstrap → Ratings UI: offers ratings
- App bootstrap → UI events: handles events
- App bootstrap → View tabs: shows tabs
- App bootstrap → Status banner: shows status
- App bootstrap → Client configuration: reads config
- App bootstrap → Client utilities: uses helpers
- Client data → Outage endpoint: fetches events
- Crowd reports UI → Crowd endpoint: submits reports
- Ratings UI → Feedback endpoint: submits ratings
- Outage endpoint → Feed fetch and normalization: fetches and normalizes
api/outages.js - Feed fetch and normalization → Outage feed service: fetches feed
lib/outages.js - Crowd endpoint → Report and rating store: reads and writes
api/crowd.js - Feedback endpoint → Report and rating store: reads and writes
api/feedback.js - Crowd endpoint → HTTP response helpers: validates and responds
api/crowd.js - Feedback endpoint → HTTP response helpers: validates and responds
api/feedback.js - Results endpoint → Admin page logic: renders results
api/results.js - Results endpoint → HTTP response helpers: sends page
api/results.js - Feed check endpoint → Admin page logic: renders comparison
api/check.js - Feed check endpoint → HTTP response helpers: sends page
api/check.js - Admin page logic → Report and rating store: reads records
lib/pages.js - Admin page logic → Feed fetch and normalization: fetches events
lib/pages.js - Report and rating store → Upstash Redis: uses when configured
lib/store.js