How skotm/meteoquake works
Purpose and Delivery
MeteoQuake is a Japanese earthquake, tsunami, weather, and disaster-information viewer. The currently implemented focus is earthquake information sourced from P2P Earthquake Information APIs and Japan Meteorological Agency intensity data; other tabs are under development.
It is a static client-side web application, deployable as a PWA and published through GitHub Pages. Main deployment automation is in .github/workflows/deploy.yml.
Application Entry and Runtime
Vite boots the React application from src/main.jsx, which mounts the root UI component in src/App.jsx. Global and application-specific styling are split between src/index.css and src/App.css.
• src/main.jsx
• src/App.jsx
• index.html
• vite.config.ts
The runtime is browser-only: no backend, server routes, or repository-hosted API service is present.
Root UI and Feature Composition
App.jsx is the architectural center for the current application surface: it owns the visible app composition, likely including the information tabs referenced by the README and their client-side state/control flow. Earthquake viewing is the primary active domain; tsunami, weather, and warning/disaster tabs are planned boundaries rather than implemented service modules in this tree.
• src/App.jsx
• src/App.css
• src/index.css
External Information Boundary
The browser application fetches earthquake data from external providers: the P2P Earthquake Information API and JMA’s seismic-intensity database, as described in the README. These are remote-data boundaries: availability, schema changes, request failures, and CORS behavior are handled entirely by the frontend because no proxy/backend exists.
The repository itself packages geographic reference datasets rather than generating them dynamically.
• public/map/stations_with_amp_revised.json
• public/map/prefectures.json
• public/map/細分区域.json
Geographic Visualization Assets
Static GeoJSON/JSON files in public/map support map-oriented earthquake presentation: world and prefectural outlines, plate boundaries, faults, station data, and regional subdivisions. Vite serves these unchanged from the public asset root, allowing runtime fetches or direct URLs without bundling them into JavaScript.
• public/map/world.json
• public/map/plate-boundaries.json
• public/map/faults.geojson
Static Content and Policy Boundary
User-facing legal and notice content is static public content, independently addressable from the application bundle. This keeps operational notices and policy documents outside React component deployment logic.
• public/notices.md
• public/privacy-policy.md
• public/terms-of-use.md
Build, Hosting, and PWA Context
The project uses Node/npm with Vite and React, indicated by package.json, package-lock.json, and vite.config.ts. TypeScript configuration exists for tooling/build checking, while the visible app source is JSX. GitHub Actions deploys the generated static site, consistent with the GitHub Pages URL in the README.
• package.json
• vite.config.ts
• .github/workflows/deploy.yml
Main entry points: App.jsx Root application UI · main.jsx React bootstrap · index.html HTML entry · vite.config.ts Vite build
Components 18
Browser application
Client-side React runtime.
- HTML entry
index.html - React bootstrap
src/main.jsx - Root application UI · Composes the active earthquake-viewing surface and client-side controls.
src/App.jsx - Application styles
src/App.css - Global styles
src/index.css
Data boundaries
Remote earthquake feeds and public map assets.
- P2P Earthquake API · Browser-fetched earthquake information.
- JMA intensity database · Browser-fetched seismic-intensity data.
- Station reference data
public/map/stations_with_amp_revised.json - Prefecture boundaries
public/map/prefectures.json - Regional subdivisions
public/map/細分区域.json - World outlines
public/map/world.json - Plate boundaries
public/map/plate-boundaries.json - Fault geometry
public/map/faults.geojson - Notices and policies · Independently addressable legal and notice content.
public/notices.md
Build and delivery
Static-site build and GitHub Pages deployment.
- Vite build · Builds the React application into static assets.
vite.config.ts - Node dependencies
package.json - Pages deployment · Publishes the generated static site.
.github/workflows/deploy.yml - GitHub Pages
Connections 18
- HTML entry → React bootstrap: loads
- React bootstrap → Root application UI: mounts
- React bootstrap → Global styles: applies
- Root application UI → Application styles: uses
- Root application UI → P2P Earthquake API: fetches earthquake data
- Root application UI → JMA intensity database: fetches intensity data
- Root application UI → Station reference data: loads map reference
- Root application UI → Prefecture boundaries: loads map geometry
- Root application UI → Regional subdivisions: loads regional data
- Root application UI → World outlines: loads map geometry
- Root application UI → Plate boundaries: loads map geometry
- Root application UI → Fault geometry: loads map geometry
- Node dependencies → Vite build: provides tooling
- Vite build → HTML entry: builds static site from
- Pages deployment → Vite build: runs build
- Pages deployment → GitHub Pages: publishes
- GitHub Pages → HTML entry: serves
- GitHub Pages → Notices and policies: serves