"Managing the financial risks of the next trillion-dollar frontier."
Try it out at https://spaceguard-a0dbc.web.app/
The space economy is booming ($600B+ today, $1T+ by 2030), but orbital risk is unmanaged.
- 25,000+ tracked objects and debris pieces are cluttering Low Earth Orbit (LEO).
- Satellite Collisions are becoming statistically inevitable (e.g., Iridium-33 vs Cosmos-2251).
- Launch Delays cost millions per day in lost revenue and operational burn.
- Space Weather (Solar Flares) can fry electronics instantly.
Currently, insurance is slow, manual, and reactive. SpaceGuard makes it real-time, algorithmic, and tradable.
SpaceGuard is a B2B Prediction Market & Financial Terminal that ingests real-time space data to price and hedge orbital risks instantly.
We don't just show you where satellites are; we calculate the financial probability of disaster.
- 🌍 Real-Time Orbital Conjunctions: Uses SGP4 propagation (Skyfield) on live TLE data to detect satellites on collision courses (<10km miss distance).
- 🚀 Launch Delay Prediction: analyzing pad location, live OpenWeather data, and historical provider reliability to price the risk of T-0 scrubs.
- ☄️ Deep Space & Weather: Monitoring NASA NeoWs (Asteroids) and DONKI (Space Weather) for external threats.
- 🧠 Mistral AI Financial Agent: An autonomous risk manager that analyzes raw telemetry and executes automated financial hedges (mock USD portfolio) when risk thresholds are breached.
We are not a consumer app. We are the Bloomberg Terminal for Space Insurers and Operators.
- Risk APIs: Selling high-frequency probability streams to parametric insurance providers.
- Automated Hedging: Smart contracts that automatically payout when a "Critical" event (Probability > 50%) is verified on-chain.
- Orbital Derivatives: Creating a market for "Collision Swaps" and "Delay Futures"—allowing operators to hedge their downside.
- Frontend: Next.js 14, Tailwind CSS, Framer Motion.
- Visualization: Three.js / React Three Fiber (R3F) for the 3D Digital Twin globe.
- Backend: Python (FastAPI/Scripts) for orbital mechanics & data ingestion.
- AI Engine: Mistral Large (mistral-large-latest) for structured financial reasoning and decision making.
- Data: Firebase Firestore (Real-time sync), CelesTrak (TLEs), NASA NeoWs, OpenWeather, The SpaceDevs.
git clone https://github.com/prashantsonibps/SpaceGuard.git
cd SpaceGuardcd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Add your .env file with:
# MISTRAL_API_KEY=...
# NASA_API_KEY=...
# OPENWEATHER_API_KEY=...
# FIREBASE_CREDENTIALS_PATH=serviceAccountKey.json
python src/main.pycd frontend
npm install
npm run devVisit http://localhost:3000 to see the future of space risk management.
On branch feat/host-frontend, the UI uses the inline-expand Financial Terminal and betting flow. To deploy the frontend:
- Set the backend API URL in your host’s environment:
NEXT_PUBLIC_API_URL= your backend base URL (e.g.https://your-api.fly.dev).
- Copy
frontend/.env.exampletofrontend/.env.localand fill inNEXT_PUBLIC_API_URLfor local builds, or configure the same variable in your hosting dashboard. - Ensure the backend allows your frontend origin in CORS (the default API allows all origins).
Without NEXT_PUBLIC_API_URL, the app falls back to http://localhost:8000 (local dev).
Live: https://spaceguard-a0dbc.web.app | API: https://spaceguard-api-1040980823268.us-central1.run.app
Redeploy:
# Backend
gcloud run deploy spaceguard-api --source ./backend --region us-central1 --project spaceguard-a0dbc --allow-unauthenticated
# Frontend (set backend URL first)
NEXT_PUBLIC_API_URL=https://spaceguard-api-1040980823268.us-central1.run.app npm run build --prefix frontend && firebase deploy --only hosting- Blockchain Integration: Move the "Hedge" button to execute real USDC transactions on Solana/Base.
- Parametric Payouts: Oracle-based triggers for instant insurance claims upon verified collisions.
- Debris Mapping: High-fidelity visualization of the 2009 Cosmos collision debris cloud.
Built for the Future of Space. 🚀