Skip to content

About

Locate an earthquake's epicenter from P–S arrival-time differences on real seismograms.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seismology Lab

CI

Locate an earthquake's epicenter from P–S arrival-time differences on real seismograms.

Features

  • Real data: 19 USGS-catalogued earthquakes (9 regional, 10 global), with seismograms from 13 networks; each earthquake's waveforms load on demand
  • Waves screen: replay an earthquake in compressed time and watch the P and S fronts spread from the epicenter, each record fill in, and S–P grow with distance; playback pauses briefly as the P wave reaches each station
  • Regional screen: pick P and S, turn S–P into distance with adjustable crustal wave speeds, and locate the epicenter
  • Global screen: the same method at teleseismic distances, using IASP91 travel-time curves
  • Check (miss distance only) and Reveal (USGS epicenter, theoretical arrivals, best fit of your circles)
  • Keyboard-operable pick and epicenter markers and time controls, with spoken responses
  • English, Spanish, and French localization via StringManager
  • Default and projector color profiles
  • Progressive Web App (installable, offline-capable)
  • Git hooks for Biome pre-commit checks
  • Shared GitHub Actions CI via OpenLyceum/Baton

Quick Start

npm install
npm run icons    # generate PNG icons from public/icons/icon.svg
npm start        # dev server → http://localhost:5173

Scripts

Command Description
npm start / npm run dev Start Vite dev server
npm run build Type-check + production build → dist/
npm run build-data Re-download and regenerate the bundled seismic data (network + Java)
npm run preview Preview the production build locally
npm test Run Vitest unit tests (includes memory-leak suite)
npm run test:fuzz Optional Playwright fuzz smoke: pointer (?fuzz) + keyboard (?fuzzBoard), with ?ea, 30s each
npm run test:fuzz -- 90 Same fuzz for 90 seconds (--duration 90 or FUZZ_DURATION=90 also work)
npm run test:fuzz:quick Shorter fuzz smoke (10s)
npm run test:fuzz:long Longer fuzz smoke (300s)
npm run test:soak By-hand leak soaks: headless (tests/soak/headless.soak.ts), then browser (tests/soak/browser.spec.ts)
npm run check TypeScript type check
npm run lint Biome check (warnings fail too)
npm run check:unused / npm run knip Report unused files, exports, and dependencies (manual check)
npm run check:architecture dependency-cruiser layer and cycle rules on src/ (manual check)
npm run format Auto-format all files
npm run fix Lint + auto-fix
npm run icons Regenerate PNG icons from public/icons/icon.svg
npm run release check && lint && build && test, then version patch + push tags
npm run clean Remove dist/

Tech Stack

Tool Version Purpose
SceneryStack ^3.0.0 Simulation framework
Vite ^8 Build tool + dev server
TypeScript ^7 Type-safe JavaScript
Biome ^2.5 Linting + formatting
vite-plugin-pwa ^2 PWA + service worker

License

GNU Affero General Public License v3.0 — see OpenLyceum org license.

Contributing

See OpenLyceum contributing guidelines. Report bugs via GitHub Issues; use org issue templates.

About

Locate an earthquake's epicenter from P–S arrival-time differences on real seismograms.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages