An open-source, automated mapping project that makes the invisible infrastructure powering our digital lives visibleβstarting with Kenya, expanding globally.
An interactive, real-time mapping platform that:
- Makes Infrastructure Visible - Interactive maps showing every data center
- Tracks Growth Over Time - Timeline showing infrastructure expansion
- Reveals Impact - Visualize power consumption and economic investment
- Stays Current - Automated scrapers pull data from multiple sources
- Node.js 18+ and npm
- Python 3.9+
- PostgreSQL 14+ with PostGIS extension
# Clone the repository
git clone [your-repo-url]
cd data_centers_mapping
# Install all dependencies
npm run install:all
# Install Python dependencies
cd scraper && pip install -r requirements.txt# Create PostgreSQL database with PostGIS
createdb datacenter_map
psql datacenter_map -c "CREATE EXTENSION postgis;"
# Run migrations
npm run db:setup
npm run db:migrateCreate .env files in both backend/ and frontend/:
backend/.env
DATABASE_URL=postgresql://localhost:5432/datacenter_map
PORT=3001
NODE_ENV=developmentfrontend/.env
VITE_API_URL=http://localhost:3001
VITE_MAPBOX_TOKEN=your_mapbox_token_here# Start both frontend and backend
npm run dev
# Or start separately:
npm run dev:frontend # Frontend at http://localhost:5173
npm run dev:backend # Backend at http://localhost:3001npm run scrapeAutomatically monitors news sources for data center announcements and flags them for manual review:
cd scraper
python news_monitor.pyOr integrate into main scraper:
python main.py --include-news # Run news monitor + normal scraping
python main.py --news-only # Only check news (no DB updates)How it works:
- Scans RSS feeds from Citizen Digital, TechCrunch, Business Daily Kenya
- Finds articles mentioning data centers, AI infrastructure, etc.
- Generates a review report with article links
- You manually review and add new data centers to
scraper/scrapers/manual_data_scraper.py
See NEWS_MONITOR_GUIDE.md for details.
data_centers_mapping/
βββ frontend/ # React + TypeScript UI
β βββ src/
β β βββ components/ # UI components
β β βββ pages/ # Page components
β β βββ hooks/ # Custom hooks
β β βββ services/ # API services
β β βββ types/ # TypeScript types
β βββ public/
βββ backend/ # Node.js/Express API
β βββ src/
β β βββ routes/ # API routes
β β βββ controllers/ # Request handlers
β β βββ models/ # Database models
β β βββ middleware/ # Express middleware
β β βββ utils/ # Utilities
β βββ db/
β βββ migrations/ # Database migrations
βββ scraper/ # Python web scrapers
β βββ scrapers/ # Individual scrapers
β βββ processors/ # Data processing
β βββ data/ # Scraped data output
βββ docs/ # Documentation
- React 18 + TypeScript
- Vite - Fast build tool
- Mapbox GL JS - Interactive maps
- D3.js - Data visualizations
- Tailwind CSS - Styling
- React Query - Data fetching
- Node.js + Express
- PostgreSQL + PostGIS - Geospatial database
- Prisma - Database ORM
- Node-cron - Scheduled tasks
- Python 3.9+
- BeautifulSoup4 - HTML parsing
- Selenium - Dynamic scraping
- FuzzyWuzzy - Deduplication
- Geopy - Geocoding
- β Interactive map with data center locations
- β Filter by status, capacity, ownership type
- β Detail panel for each facility
- β Basic statistics dashboard
- β Mobile-responsive design
- β Export data (JSON, CSV, GeoJSON)
- Timeline slider (2010-2025)
- Layer system (power grid, fiber, cables)
- Impact calculator
- Community submissions
- Public API
- Alert system
We welcome contributions! See CONTRIBUTING.md for guidelines.
- Submit data center information
- Improve scrapers
- Enhance visualizations
- Write documentation
- Report bugs
- Code: MIT License
- Data: CC BY 4.0 (attribution required)
Created by: Victor Jotham Ashioya
If you use this project or its data, please provide attribution:
For Code (MIT License):
Data Centers Mapping Platform by Victor Jotham Ashioya
https://github.com/ashioyajotham/data_centers_mapping
For Data (CC BY 4.0):
Data sourced from "Data Centers Are Eating The World" by Victor Jotham Ashioya
Licensed under CC BY 4.0
https://github.com/ashioyajotham/data_centers_mapping
In Academic Papers:
Ashioya, V. J. (2025). Data Centers Are Eating The World:
An Open-Source Mapping Platform for Global Data Center Infrastructure.
GitHub. https://github.com/ashioyajotham/data_centers_mapping
Inspired by: