Monzim
Hono.js
React
Vite
PostgreSQL
Redis

BD Quake Monitor: Real-Time Earthquake Tracking

Real-time earthquake monitoring for Bangladesh with USGS data, AI-powered analysis, and multi-channel alerts.

Azraf Al Monzim
BD Quake Monitor: Real-Time Earthquake Tracking cover

Project Overview

Built in just 2 hours during a real earthquake event in Bangladesh. Integrates USGS API for real-time data, Google Gemini for AI analysis, and supports Email, SMS, and Discord alerts. Interactive map with Leaflet, Redis caching, and PostgreSQL for persistence.

When Bangladesh got hit with several earthquakes in a short time, my feed was full of random postsβ€”none of them matched the real data. I wanted something accurate. So I built it.


πŸ’‘ The Spark

Scrolling through Facebook during the earthquake events, I noticed a pattern: misinformation everywhere. People sharing outdated data, exaggerated magnitudes, and incorrect locations. Someone mentioned the USGS FDSN Event API, and that's when it clicked.

What if there was a simple, accurate earthquake tracker specifically for Bangladesh?

Two hours of vibe coding later, BD Quake Monitor was live.


🌍 What It Does

Real-Time Earthquake Data

Fetches verified earthquake data directly from USGSβ€”the gold standard for seismic monitoring. No more guessing, no more misinformation.

AI-Powered Risk Analysis

Integrated Google Gemini AI analyzes earthquake patterns and assesses potential risks for Bangladesh. Get intelligent insights, not just raw numbers.

Interactive Map Visualization

See earthquake locations plotted on an interactive Leaflet map. Understand the geography of seismic activity at a glance.

Personal Alert System

Never miss a significant earthquake near Bangladesh:

  • Email Alerts β€” Instant notifications to your inbox
  • SMS Alerts β€” Direct to your phone
  • Discord Alerts β€” For the tech-savvy crowd

πŸ› οΈ Tech Stack

Built fast, built right:

Backend

  • Hono.js β€” Ultrafast web framework
  • Node.js & TypeScript β€” Type-safe server logic
  • Prisma β€” Modern ORM for PostgreSQL
  • Redis β€” Caching and rate limiting

Frontend

  • React & Vite β€” Blazing fast development
  • TypeScript β€” End-to-end type safety
  • Leaflet β€” Interactive mapping
  • Recharts β€” Data visualization
  • Tailwind CSS β€” Rapid UI development

AI & Infrastructure

  • Google Gemini API β€” AI-powered analysis
  • Docker β€” Containerized deployment
  • Self-hosted β€” Running on my own server

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   React + Vite  │────▢│   Hono.js API   │────▢│   USGS FDSN     β”‚
β”‚   Frontend      β”‚     β”‚   Backend       β”‚     β”‚   API           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β–Ό            β–Ό            β–Ό
            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
            β”‚ PostgreSQLβ”‚ β”‚   Redis   β”‚ β”‚  Gemini   β”‚
            β”‚ Database  β”‚ β”‚   Cache   β”‚ β”‚    AI     β”‚
            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β–Ό            β–Ό            β–Ό
            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
            β”‚   Email   β”‚ β”‚    SMS    β”‚ β”‚  Discord  β”‚
            β”‚  Alerts   β”‚ β”‚  Alerts   β”‚ β”‚  Webhook  β”‚
            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

✨ Key Features

πŸ“Š Dashboard

  • Latest earthquake events near Bangladesh
  • Global seismic activity overview
  • Historical data and trends
  • Magnitude and depth visualizations

πŸ—ΊοΈ Interactive Map

  • Real-time earthquake markers
  • Magnitude-based marker sizing
  • Click for detailed event information
  • Bangladesh-centered view with global context

πŸ€– AI Insights

  • Risk assessment for Bangladesh regions
  • Pattern analysis from historical data
  • Plain-language explanations
  • Actionable safety suggestions

πŸ”” Alert Subscriptions

  • Customizable magnitude thresholds
  • Multiple notification channels
  • Instant delivery on significant events
  • Easy subscription management

⚑ Built in 2 Hours

This was pure vibe codingβ€”the kind of project where you're in the zone and everything just flows:

  1. Hour 1: Backend setup, USGS API integration, basic data processing
  2. Hour 2: Frontend dashboard, map visualization, Gemini AI integration, deployment

Sometimes the best projects come from a simple frustration: I just wanted accurate earthquake data.


🎯 Why This Matters

During natural disasters, accurate information saves lives. Misinformation creates panic. BD Quake Monitor provides:

  • Verified Data β€” Straight from USGS, not social media
  • Real-Time Updates β€” Know what's happening as it happens
  • Bangladesh Focus β€” Relevant events, not global noise
  • Actionable Alerts β€” Get notified when it matters

πŸ”— Open Source

The entire project is open source. Check out the code, contribute, or fork it for your own region:

GitHub: github.com/monzim/BD_QuakeMonitor


πŸš€ Try It

Visit quake.monzim.com to see real-time earthquake data for Bangladesh.


Built with ❀️ during a late-night coding session. #VibeCoding #Antigravity

Technologies:
Hono.js
React
Vite
PostgreSQL
Redis
Google Gemini
Leaflet
Docker
TypeScript
USGS API