An interactive web-based asteroid impact simulator that combines real NASA data with physics-based calculations to model impact scenarios and evaluate planetary defense strategies.
- Live Demo: Meteor Madness
- GitHub Repo: Source Code
- NASA NeoWs API: api.nasa.gov
Meteor Madness is an educational tool designed for the NASA Space Apps Challenge that helps users understand asteroid impact threats and planetary defense strategies. It transforms complex scientific data into an intuitive, interactive experience.
A newly identified near-Earth asteroid poses a potential threat to Earth. Do we have the tools to help the public and decision-makers understand and mitigate its risks?
An all-in-one simulator that:
- Fetches real-time asteroid data from NASA
- Models impact physics with scientific accuracy
- Visualizes impacts on an interactive 3D Earth
- Evaluates deflection mission feasibility
- Calculates advanced effects (casualties, climate impact, tsunamis)
- NASA Data Integration: Fetch real near-Earth object (NEO) data from NASA NeoWs.
- 3D Visualization: Interactive globe (Three.js) with impact markers.
- Physics-Based Calculations: Energy, crater size, seismic magnitude, blast radius, tsunami risk.
- Terrain & Population Effects: Casualties, atmospheric changes, historical comparisons.
- Deflection Planning: Kinetic Impactor, Gravity Tractor, Nuclear, Laser — with feasibility, cost, and success probability.
- User-Friendly Interface: Clean space-themed design, sliders, tooltips, and mobile-friendly layout.
1. Fetch NASA Data → View real asteroids
2. Select Asteroid → Auto-fills parameters
3. Adjust Location → Drag Earth or use sliders
4. Calculate Impact → See comprehensive results
5. Plan Defense → Evaluate deflection strategies
- Frontend: HTML5, CSS3 (glassmorphism), JavaScript (ES6+)
- 3D Graphics: Three.js
- API: NASA NeoWs API
- License: MIT
meteor-madness/
├── index.html # Main HTML structure
├── app.css # All styling (glassmorphism theme)
├── config.js # API keys and constants
├── earth_visual.js # 3D Earth visualization (Three.js)
├── app.js # Main controller + impact physics
├── deflection_calc.js # Deflection mission planning
├── adv_effects.js # Terrain, casualties, atmosphere
└── matt-gross-*.jpg # Background image (space)
-
Clone the repository:
git clone https://github.com/rayyan-merchant/MeteorMadness-NasaSpaceAppsChallenge.git
-
Add your NASA API key to
config.js:const CONFIG = { NASA_API_KEY: "your_api_key_here", };
-
Open
index.htmlin a modern browser — or use the Live Demo.
- Rayyan Merchant - Team Owner (myGitHub)
- Rija Ali (@rija)
- Syed Ukkashah Ahmed Shah (@ukkashah)
- Ibrahim Johar Farooqi (@ibrahimjohar)
- Riya Bhart (@riyabhart)
Challenge: Meteor Madness
Location: Karachi, Pakistan
Event: NASA Space Apps Challenge 2025
Built for NASA Space Apps Challenge 2025
Making asteroid impact science accessible to everyone.