How skotm/meteoquake-kyoshinviewer works
MeteoQuake-KyoshinViewer is a browser app for live seismic intensity and earthquake, EEW, and tsunami information. Users open the map-based real-time view, inspect quake records and tsunami advisories, and can search historical events or configure the display. App.jsx is the visible orchestration point for live data and history loading; map and analysis modules support the real-time view. The index and excerpts support the main module relationships, but some wiring and implementations were not sampled, so those links are omitted or marked unverified.
Main entry points: App.jsx App orchestration · MapCanvas.jsx Live map · shakeDetection.ts Shake detection · tsunamiData.js Tsunami history
Components 26
Application
- App orchestration
src/App.jsx - Map overlays
src/app/mapOverlayUi.jsx - Settings UI
src/app/settingsPanels.jsx
Live Seismic View
- Live stream hook
src/useRealtimeStream.ts - Stream protocol client
src/realtimeProtocolClient.ts - Live map
src/app/MapCanvas.jsx - Shake detection
src/shakeDetection.ts - Grid detection
src/gridDetection.ts - Weak-array detection
src/weakArrayDetection.ts - Epicenter estimation
src/epicenterEstimation.ts - Epicenter confidence
src/epicenterConfidence.ts - JMA travel time
src/jmaTravelTime.ts
Earthquake Information
- Quake history
src/app/quakeCards.js - JMA quake database
src/app/eqdb.js - Quake search UI
src/app/quakeSearchUi.jsx
Tsunami Information
- Tsunami history
src/app/tsunamiData.js - Tsunami view
src/app/tsunamiTideUi.jsx
Shared Services
- Map data loaders
src/app/mapDataLoaders.js - Geospatial utilities
src/app/geo.js - Persistent settings
src/app/settingsStorage.js - Theme system
src/app/theme.js - Intensity color schemes
src/app/colorSchemes.js
Other components
- Viewer
- Strong-motion feeds
- P2P Quake API
- Japan Meteorological Agency
Connections 27
- Viewer → App orchestration: opens
README.md - App orchestration → Live stream hook: uses stream
src/App.jsx - Live stream hook → Stream protocol client: uses client
src/useRealtimeStream.ts - App orchestration → Live map: renders view
src/App.jsx - Live map → Shake detection: uses detection
src/app/MapCanvas.jsx - Shake detection → Grid detection: uses detection
src/gridDetection.ts - Shake detection → Weak-array detection: uses detection
src/shakeDetection.ts - Shake detection → JMA travel time: uses timing
src/shakeDetection.ts - Live map → Epicenter estimation: uses estimates
src/app/MapCanvas.jsx - Epicenter estimation → Epicenter confidence: uses confidence
src/epicenterEstimation.ts - Epicenter estimation → JMA travel time: uses timing
src/epicenterEstimation.ts - App orchestration → Quake history: loads history
src/App.jsx - App orchestration → Tsunami history: loads history
src/App.jsx - Quake search UI → JMA quake database: searches events
src/app/quakeSearchUi.jsx - Tsunami view → Tsunami history: reads advisories
src/app/tsunamiTideUi.jsx - Map overlays → Tsunami history: uses grades
src/app/mapOverlayUi.jsx - Quake search UI → Map data loaders: loads names
src/app/quakeSearchUi.jsx - Live map → Map data loaders: loads map data
src/app/MapCanvas.jsx - Live map → Geospatial utilities: finds place
src/app/MapCanvas.jsx - Settings UI → Persistent settings: uses preferences
src/app/settingsPanels.jsx - App orchestration → Persistent settings: persists settings
src/App.jsx - Map overlays → Intensity color schemes: uses colors
src/app/mapOverlayUi.jsx - Map overlays → Theme system: uses theme
src/app/mapOverlayUi.jsx - Strong-motion feeds → Live stream hook: provides observations
README.md - P2P Quake API → Quake history: provides records
src/app/quakeCards.js - Japan Meteorological Agency → Tsunami history: provides advisories
src/app/tsunamiData.js - Japan Meteorological Agency → JMA quake database: provides records
README.md