# Kenya Climate Monitor
**Live Demo:** kenya-climate-monitor-with-global-w.vercel.app
**Status:** Production • Last updated: May 2026
---
## Overview
Kenya Climate Monitor is a production-grade weather intelligence platform that demonstrates real-world cloud engineering practices. The application serves real-time weather data for 10 Kenyan cities and provides global weather coverage through an interactive map interface.
**Technical Focus:** Serverless architecture, edge computing, geospatial data processing, and fault-tolerant design.
---
## Features
### Kenya Weather Coverage
Real-time data for Nairobi, Mombasa, Kisumu, Nakuru, Eldoret, Thika, Malindi, Garissa, Kitale, and Kakamega. Each location includes region information and population data.
### Global Weather Explorer
Interactive Leaflet map with search functionality for any city worldwide (10,000+ locations). Click anywhere on the map to retrieve current weather conditions for that exact location.
### Historical Data Analysis
Seven-day charts for temperature trends, air quality (PM2.5 and PM10), and rainfall patterns.
### Data Export
CSV download of current weather data for all tracked cities. PDF export of the main dashboard.
### User Features
Favorite cities persisted to localStorage, keyboard shortcuts (refresh, compare, search), shareable URLs with query parameters, and side-by-side city comparison (up to four cities).
### Responsive Design
Mobile-first layout that works across all device sizes.
---
## Architecture
### Serverless Functions
All API endpoints run as serverless functions on Vercel's edge network. Each function is stateless, idempotent, and scales horizontally.
API endpoints:
- `/api/weather` - Current weather for Kenyan cities
- `/api/historical` - Seven-day historical data with air quality
- `/api/weather/coordinates` - Weather retrieval by latitude and longitude
### Multi-Layer Caching
The application implements a four-layer cache hierarchy:
**Layer 1: Browser Cache** …