An interactive asteroid impact simulator that demonstrates planetary defense capabilities using real NASA data and physics-based calculations.
Endurance Protocol provides an educational platform for understanding asteroid threats and planetary defense strategies. Users can explore near-Earth objects from NASA's database, simulate impacts at any location on Earth, and evaluate the effectiveness of kinetic impactor missions like NASA's DART.
- Real-time integration with NASA Near-Earth Object Web Service (NeoWs) API
- Interactive 3D Earth visualization with WebGL rendering
- Physics-based impact modeling including crater formation, energy release, and casualty estimation
- Planetary defense simulation using momentum transfer calculations
- AI-generated scenario analysis via Google Gemini
- Historical impact and earthquake comparisons
- Responsive design for desktop and mobile devices
- Frontend Framework: Next.js 15 with React 19
- 3D Graphics: React Three Fiber with Three.js
- Animation: Framer Motion
- Styling: Tailwind CSS
- AI Integration: Google Generative AI (Gemini)
- Data Sources: NASA NeoWs API
- Deployment: Vercel
-
Clone the repository:
git clone https://github.com/JittoJoseph/Endurance-Protocol.git cd endurance-protocol -
Install dependencies:
npm install
-
Obtain API keys:
- NASA API key from https://api.nasa.gov/
- Google Gemini API key from https://makersuite.google.com/app/apikey
-
Create environment file:
# .env.local NASA_API_KEY=your_nasa_api_key_here GEMINI_API_KEY=your_gemini_api_key_here -
Start development server:
npm run dev
- Browse the asteroid carousel populated with real NASA data
- Select an asteroid to view its orbital characteristics
- Click on the 3D Earth or choose from preset city locations
- Review impact calculations and AI-generated analysis
- Activate DART defense simulation to evaluate deflection outcomes
The application implements scientifically-grounded formulas for impact modeling:
- Kinetic Energy: E = ½mv²
- TNT Equivalent: Conversion using 4.184 × 10¹⁵ J per megaton
- Crater Diameter: Empirical scaling laws based on projectile parameters
- DART Deflection: Momentum transfer with ejecta enhancement factor (β = 3.6)
Endurance Protocol serves as an educational tool to:
- Demonstrate the scale and frequency of near-Earth asteroid encounters
- Illustrate the physics of high-velocity impacts
- Explain planetary defense strategies and their limitations
- Provide context through historical impact events and seismic comparisons
GET /api/neo- Fetches filtered asteroid data from NASAPOST /api/gemini- Generates AI analysis of impact scenarios
Contributions are welcome. Areas for improvement include:
- Additional planetary defense techniques
- Enhanced visualization features
- Multi-language support
- Performance optimizations
MIT License - see LICENSE file for details.
- NASA for providing open asteroid data and planetary defense research
- Google for Gemini AI API
- Open source community for Three.js, React, and related libraries