Engineering Deep-Dive Houston, TX April 15, 2026 8 min read

How We Built Houston Alert — A Real-Time City Warning System

How two engineers at 4th and Bailey designed, built, and shipped a live infrastructure monitoring platform covering 160 Houston metro ZIP codes — from a blank terminal to a production PWA.

How We Built Houston Alert — A Real-Time City Warning System. Engineering deep-dive by Lionel Mosley and Nigel Brooks of 4th and Bailey. Covers 160 Houston metro ZIP codes with 6 live data sources refreshing every 60 seconds.
Houston Alert — real-time road, flood, and emergency monitoring across 160 Houston metro ZIP codes. Built by Lionel Mosley & Nigel Brooks · 4th and Bailey LLC
ZIP Codes
160
Houston metro
Refresh Cycle
60s
All data sources
Live Feeds
6+
Unified pipeline
Monthly Cost
<$20
Full production infra

01 Houston Has a Real Infrastructure Problem

Living in the Greater Houston area for quite some time, we've watched the city flood, lose power, and sit in hours of standstill traffic — often all at the same time. What struck us wasn't the severity of the events themselves, but how poorly that information traveled to the people who needed it most.

During major weather events, Houstonians would frantically refresh social media, call relatives, and listen to the radio just to find out if their street was passable. Government alert channels were siloed. News coverage was reactive. There was no single place that pulled it all together in real time.

160
ZIP Codes Monitored
60s
Data Refresh Cycle
6+
Independent Data Sources
$0
Cost to Users

We didn't want to build another weather app. We wanted to build the tool that would have helped our neighbors during Harvey, during the February freeze, during every flood season since.

— Lionel Mosley, Co-Author
🌊
Flash flooding with no warning

Harris County averages over 50 inches of rain per year. Flood events can become dangerous within minutes, yet residents often have no localized, real-time indication that their route is compromised. A flood alert from two hours ago is worse than no alert — it creates false confidence.

Power outage information deserts

During the February 2021 winter storm, millions lost power for days. Utility outage maps were overwhelmed or offline. People needed a survivability layer, not just a weather advisory.

🚗
Traffic & road incident blindspots

Houston has one of the most complex highway systems in the United States. A single accident on I-10 or the Katy Freeway can cascade into hours of gridlock — with no aggregate view of the full picture available to residents.

📡
Fragmented official channels

Emergency alerts lived across TxDOT dashboards, NWS feeds, county flood warnings, and 311 systems — none of them talking to each other, all requiring separate monitoring by an individual citizen.

02 Why 4th and Bailey Decided to Build It

Nigel and I had been working together on data infrastructure projects for roughly a year before Houston Alert became a real conversation. The idea crystallized during a weekend in early 2026 when a water main break near Midtown created a three-hour traffic situation that we only learned about after we were already sitting in it.

We asked ourselves: all of this data is public. Government agencies publish it. Stream gauges are online. Road incident APIs exist. Social platforms surface real-world events within minutes. Why is nobody stitching it together for Houston residents?

The answer was that it's technically non-trivial to do well. Merging heterogeneous data sources with different schemas, refresh rates, coordinate systems, and reliability characteristics requires genuine engineering effort. That's exactly the kind of problem we enjoy. We started prototyping the same weekend.

Three non-negotiables before writing a line of code

Non-Negotiable 01
Free for users, forever
No paywalls, no subscription tiers, no ads. Public safety information belongs to the public. We committed to keeping Houston Alert free to access for every Houston resident, indefinitely.
Non-Negotiable 02
Works on any device
A warning system that only works on a laptop is not a warning system. From the beginning we designed for mobile-first, targeting the full range of devices Houstonians actually use — including older Android phones and Safari on iOS.
Non-Negotiable 03
Data must be current, not cached
A flood alert from two hours ago is worse than no alert at all — it creates false confidence. Every data source needed a live polling cycle, with the UI always showing the freshest available state. Sixty-second refresh cycles became the baseline.

03 The System We Designed

We'll talk about principles and patterns here rather than naming specific vendor products — this architecture is intentionally portable and the structural decisions matter more than the specific tooling.

Browser
PWA · houstonalert.com Interactive Map Live Feed Panel ZIP Filter
↕ CDN Edge → API Proxy
Frontend
Static Site Delivery Global CDN /api/* → Backend
↕ HTTPS
Backend
Event Aggregation Server · Node / Express
↕ 60s Scheduler · In-Memory Store · Dedup Engine
Pollers
Road Conditions NWS Weather Flood Gauges Seismic TxDOT Social Signals
↕ External APIs (Public + Authenticated)
Sources
ArcGIS USGS NWIS NWS REST DriveTexas X API v2

Key architectural decisions

In-memory event store

We chose an in-memory store with a 6-hour TTL and a 2,000-event cap over a traditional database. For a real-time feed, write latency matters more than persistence. Events older than 6 hours are no longer actionable — stale data misleads.

6hr TTL 2,000 event cap dedup by ID
Scheduled polling over webhooks

Not all government APIs support webhooks. Scheduled polling on a tight cycle was the only reliable cross-source architecture. We run pollers every 60 seconds for most sources, with a 5-minute cycle for sources with stricter rate limits.

60s standard 30s severe weather mode
Deterministic deduplication

The same road incident can appear in multiple sources simultaneously. Our deduplication engine uses deterministic ID generation — identical events from different sources produce the same hash, preventing the map from clustering duplicate pins.

FNV-1a hash source-agnostic IDs 300m radius merge
Confidence scoring

Official government sources receive verified status. Social signals are weighted by post volume, keyword specificity, and geographic precision. The UI surfaces this as a confidence percentage so users can assess source quality at a glance.

0–100% visual ring color coding

Confidence by source type

Verified gov
95%
NWS / NOAA
90%
USGS gauges
88%
Social signals
42%

04 Six Feeds. One Coherent Picture.

Every data source we integrated required custom handling. Different schemas, different coordinate formats, different reliability profiles, different authentication models.

The most interesting engineering problem wasn't fetching the data. It was building a trust model that lets a citizen distinguish between a verified TxDOT closure and an unconfirmed community report — at a glance, under stress.

— Nigel Brooks, Co-Author
  • Houston TranStar — Road & Traffic
    The regional traffic management authority for the Houston metro. TranStar operates 24/7 and monitors incident data from freeway sensors, cameras, and law enforcement dispatch. Our highest-trust source for accident and lane-closure events.
    60s
    Official · Verified
  • TxDOT — Construction & Lane Closures
    Texas Department of Transportation publishes construction activity through ArcGIS REST endpoints. Construction zones significantly affect routing on major arteries like I-10, 290, and the Beltway, and they change frequently.
    60s
    Official · ArcGIS
  • National Weather Service — Weather Alerts
    NWS publishes active warnings, watches, and advisories via a public REST API with polygon coverage areas. We filter for Harris, Fort Bend, Galveston, Brazoria, Montgomery, and Waller counties. During severe weather we drop to a 30-second polling cycle.
    60s / 30s
    Federal · NOAA
  • Harris County FWS — Stream Gauges
    HCFWS operates a network of stream gauges across Harris County bayous and creeks. We pull gauge readings via the USGS National Water Information System and map them against flood stage thresholds to surface at-risk waterways in real time.
    60s
    Official · USGS NWIS
  • USGS Earthquake Catalog — Seismic Activity
    The Gulf Coast region has experienced induced seismicity events in recent years. We monitor the USGS earthquake catalog for events within the Houston bounding box, providing early awareness of ground-motion events that may affect infrastructure.
    60s
    Federal · FDSN
  • Social Signal Layer — Community Reports
    Real-world events appear on social platforms before official sources acknowledge them. We ingest recent posts filtered to Houston geography and run keyword classification across 8 incident categories — from flooding and power outages to gas leaks and structural damage.
    5min
    Social · Auth Required

05 What Actually Took Time

Challenge

Cross-source event deduplication at scale

The same freeway accident shows up in TranStar, TxDOT, the social layer, and sometimes NWS in rapid succession. Naive deduplication by title string failed on minor text variations. Coordinate-radius deduplication failed across sources with different precision.

↳ How we solved it

We moved to deterministic ID generation using a hash of the event's canonical location bucket, category, and source-type. Events within 300 meters of the same category from any source resolve to the same ID and are merged rather than duplicated. The UI shows the highest-trust source for any merged event.

Challenge

iOS Safari touch event routing failure

On iPhones and iPads, backdrop-filter CSS on overlay elements caused iOS's Metal compositor to misroute touch events to the map layer beneath, making every button in the interface unresponsive. This was extremely difficult to reproduce in emulation — it only appeared on physical devices.

↳ How we solved it

We stripped backdrop-filter from all overlay elements on viewports under 900px, replacing with high-opacity solid backgrounds that are visually identical. We also removed filter from map tile layers at mobile breakpoints, which was creating additional compositor layers that worsened the hit-testing issue.

Challenge

Map readability during mass-event weather

During a major storm we could receive 200+ concurrent events all within the same metropolitan area. An unmanaged map becomes an unusable cluster of pins that conveys no meaningful information.

↳ How we solved it

We implemented geographic clustering with dynamic radii — clusters tighten at low zoom and expand at high zoom, displaying event counts. Clicking a cluster either zooms to reveal it or spiderfies tightly-packed events. High-severity events break out of clusters at lower zoom levels than routine incidents.

Challenge

Keeping infrastructure costs near zero

A platform that goes viral during a hurricane could receive 50,000 concurrent users. We couldn't absorb unpredictable cloud compute costs for a free public service with no monetization model.

↳ How we solved it

The frontend is fully static — no server-side rendering, no compute on page loads. All the intelligence lives in the backend scheduler that runs continuously at low cost. API responses are small JSON payloads. Map tiles are served from a CDN-backed public tile provider. Our total monthly infrastructure cost for a production deployment is under $20.

06 Why We Built a PWA, Not a Native App

This was a deliberate and consequential architectural choice. A native app requires installation friction, review cycles, and ongoing maintenance across platform versions. A PWA requires none of that — it's a URL you share, a bookmark on your home screen, and a notification permission if the user consents.

For an emergency information tool, zero installation friction is not a nice-to-have — it's a core safety feature. During a hurricane, you don't wait for an app to download. You send someone a link and they're looking at real-time data within seconds.

📲
Home screen install
Users can add Houston Alert to their home screen via browser prompt — no App Store required, no account needed.
🔔
Push notifications
Users who grant notification permission receive high-severity alerts even when the tab is in the background.
📍
Geolocation aware
The map can fly to the user's current location with a single tap, surfacing events in their immediate area.
Instant load
Static delivery via CDN means the interface loads in under a second globally — critical when seconds matter.
🌐
Any device
Fully responsive from a 320px iPhone SE to a 27" desktop monitor. Custom iOS Metal workarounds ensure touch events work correctly.
🔗
Deep linkable events
Every event generates a shareable short URL. Send anyone a direct link to a specific incident — they open the map already focused on it.
manifest.json — PWA configuration
// Web App Manifest — enables home screen install + splash screen
{
  "name": "Houston Alert",
  "short_name": "Houston Alert",
  "description": "Real-time infrastructure alerts · 160 Houston ZIP codes",
  "start_url": "/",
  "display": "standalone",
  "background_color": "#f5f5f5",
  "theme_color": "#0f6cbd",
  "orientation": "any",
  "icons": [
    { "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
    { "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" }
  ]
}

07 What's Next

Near Term
Community Reporting
Let verified Houston residents submit events directly — pothole reports, power outages, road blockages — with automatic confidence scoring against existing verified sources. Citizen-sourced data, not anonymous noise.
Mid Term
ZIP Code Subscriptions
Persistent notification subscriptions by ZIP code. Rather than blanket alerts, residents get notified about events relevant to their neighborhood, commute route, or school zone.
Longer Term
Historical Pattern Analysis
Six months of continuous data will let us build flood-likelihood models for specific bayous and streets based on rainfall rate. Predictive alerts — "Brays Bayou typically exceeds flood stage 40 minutes after this rain rate begins" — are more valuable than reactive ones.

08 Built by Two Engineers Who Call Houston Home

Lionel Mosley
IT Consultant · Backend Lead
Lionel leads backend infrastructure and data pipeline architecture at 4th and Bailey. He designed the multi-source aggregation engine, the confidence scoring system, and the event deduplication logic that makes Houston Alert's map coherent even during major weather events with hundreds of simultaneous incidents. His obsession with low-latency systems and public-interest technology made him the right engineer to tackle the challenge of merging half a dozen heterogeneous government APIs into a single coherent data stream.
Nigel Brooks
Junior Administrator · Frontend Lead
Nigel owns frontend architecture, mobile optimization, and the user experience design across Houston Alert. He built the responsive interface from scratch, authored the iOS Safari compositor workarounds that make the platform actually usable on iPhones, and implemented the PWA layer that enables home-screen installation and push notifications. Nigel kept asking: "what does someone in a flooding neighborhood actually need to see, and can they see it in under three seconds on their phone?"

4th and Bailey exists to build things that matter in the communities we're part of. Houston Alert isn't a side project. It's an obligation.

— Lionel Mosley & Nigel Brooks · 4th and Bailey LLC