How yacsch/estacionesserviciowpa works
This is a Chilean fuel-station finder and price-comparison web app. The main journey loads official CNE station data through a server-side proxy, then lets users locate stations, filter by distance and fuel, compare prices, view a map, and open directions or share a station. The graph includes the sampled runtime flow and documented-in-code proxy behavior; other UI capabilities are included where supported by the tree and excerpts. Unsampled relationships are omitted rather than inferred.
Main entry points: HomeList.jsx Station discovery · Home.jsx Home page · StationCard/index.jsx Station details · Header/index.jsx Header and controls
Components 21
Web application
- App routing
src/App.jsx - Home page
src/pages/Home.jsx - Header and controls
src/components/Header/index.jsx - Main view
src/components/Main/index.jsx - Footer
src/components/Footer/index.jsx
Station discovery
- Station discovery
src/components/Views/HomeList.jsx - Station details
src/components/StationCard/index.jsx - Station map
src/components/Maps/index.jsx - Station utilities
src/utils/stations.js - Brand logos
src/utils/brandLogos.js
CNE data access
- Station API client
src/api/getData.js - Stations endpoint
api/estaciones.js - CNE proxy
api/_cne.js
User preferences
- Local preferences
src/utils/storage.js - Theme toggle
src/components/ThemeToggle/index.jsx - Install prompt
src/components/InstallPrompt/index.jsx
Other components
- Driver
- Browser geolocation
- Map tiles and directions
- CNE API
- Browser share and clipboard
Connections 23
- Driver → App routing: opens
- App routing → Home page: routes to
src/App.jsx - Home page → Station API client: loads stations
src/pages/Home.jsx - Station API client → Stations endpoint: requests
src/api/getData.js - Stations endpoint → CNE proxy: delegates to
api/estaciones.js - CNE proxy → CNE API: authenticates and fetches
api/_cne.js - Home page → Header and controls: renders
src/pages/Home.jsx - Home page → Main view: renders
src/pages/Home.jsx - Home page → Footer: renders
src/pages/Home.jsx - Main view → Station discovery: renders
src/components/Main/index.jsx - Station discovery → Station utilities: calculates and filters
src/components/Views/HomeList.jsx - Station discovery → Local preferences: reads and saves location and filters
src/components/Views/HomeList.jsx - Station discovery → Browser geolocation: requests position
- Station discovery → Station map: renders stations
src/components/Views/HomeList.jsx - Station discovery → Station details: renders results
src/components/Views/HomeList.jsx - Station details → Station utilities: formats station data
src/components/StationCard/index.jsx - Station details → Brand logos: gets logo
src/components/StationCard/index.jsx - Station details → Browser share and clipboard: shares or copies
- Station map → Station utilities: formats map data
src/components/Maps/index.jsx - Station map → Map tiles and directions: loads tiles and directions
src/components/Maps/index.jsx - Header and controls → Theme toggle: renders
src/components/Header/index.jsx - Header and controls → Install prompt: renders
src/components/Header/index.jsx - Theme toggle → Local preferences: reads and writes theme
src/components/ThemeToggle/index.jsx