How 92am/brishty works
Brishty is a weather web application: users search for a location and reach a weather page, while the home page also presents regional weather previews, a world map, and news. The weather service resolves location names or coordinates, obtains forecasts and nearby cities, and maps provider responses into application data. The tree documents additional map, autocomplete, regional forecast, and news capabilities, but their internal wiring is not sampled here; those links are omitted where uncertain.
Main entry points: index.tsx Home page · [...slug].tsx Weather pages · WeatherDetailsService.ts Weather details · OpenWeatherMapLocationDetailsClient.ts Location weather API
Components 24
Pages and UI
- Home page
pages/index.tsx - Weather pages
pages/weather/[...slug].tsx - Search UI
components/SearchBox.tsx - Forecast views
components/DetailedCurrentWeather.tsx - Nearby locations
components/NearbyLocations.tsx - Regional previews
components/TopLocationsWeatherPreviewsCarousel.tsx
Weather data
- Weather details
services/WeatherDetailsService.ts - Location weather API
apis/OpenWeatherMapLocationDetailsClient.ts - Forecast API
apis/OpenWeatherMapWeatherDetailsClient.ts - Response cache
services/CacheService.ts
Location discovery
- Search navigation
services/SearchService.ts - Nearby lookup
services/NearbyLocationsService.ts - GeoDB nearby API
apis/GeoDbNearbyLocationsClient.ts - Location autocomplete
components/AsyncLocationSearchTypeahead.tsx - Geoapify autocomplete client
apis/GeoapifyAutoCompleteClient.ts
Map and news
- Interactive map
components/Map.tsx - Map controls
components/MapControlsExecutor.tsx - World news
services/WorldNewsService.ts - NY Times client
apis/NyTimesNewsClient.ts
Other components
- Visitor
- OpenWeather
- GeoDB Cities
- Geoapify
- NY Times
Connections 28
- Visitor → Home page: opens
- Visitor → Search UI: searches
- Visitor → Weather pages: opens
- Home page → Weather details: loads previews
- Home page → World news: loads news
- Home page → Interactive map: renders map
- Home page → Regional previews: renders forecasts
- Weather pages → Weather details: loads forecast
- Weather pages → Forecast views: renders forecast
- Search UI → Search navigation: submits search
- Search navigation → Weather pages: navigates
- Weather details → Location weather API: resolves location
- Weather details → Forecast API: fetches forecast
- Weather details → Nearby lookup: gets nearby cities
- Location weather API → Response cache: reads or writes
- Forecast API → Response cache: reads or writes
- Location weather API → OpenWeather: requests weather
- Forecast API → OpenWeather: requests forecast
- Nearby lookup → GeoDB nearby API: requests nearby cities
- GeoDB nearby API → Response cache: reads or writes
- GeoDB nearby API → GeoDB Cities: requests cities
- Weather pages → Nearby locations: renders locations
- Visitor → Location autocomplete: enters location
- Location autocomplete → Geoapify autocomplete client: requests suggestions
- Geoapify autocomplete client → Geoapify: requests suggestions
- Interactive map → Map controls: uses controls
- World news → NY Times client: fetches stories
- NY Times client → NY Times: requests stories