How vv3705029/forestary works
Planetary is an environmental monitoring application with two distinct user workflows: forest assessment from coordinates or uploaded satellite imagery, and wildfire-risk prediction from a location and date. The frontend provides the entry point and result views; an Express API routes requests to satellite imagery, weather data, and separate image- and fire-model services. The forest dashboard in App.jsx also contains a simulated satellite response, so it should not be mistaken for the backend inference path. Source excerpts establish the main routes and calls; other connections are omitted where wiring was not shown.
Main entry points: api.js API client · server.js Satellite route · main.jsx React entry · App.jsx Monitoring dashboard
Components 14
User interface
- React entry
frontend/src/main.jsx - Monitoring dashboard
frontend/src/App.jsx - Image upload
frontend/src/components/FileUpload.jsx - Fire prediction UI
frontend/src/components/FirePrediction.jsx
API orchestration
- API client
frontend/src/services/api.js - Express API
backend/server.js
Forest assessment
- Satellite route
backend/server.js - Image prediction route
backend/server.js - Image classifier
deforestModel/app.py - ESRI imagery
Wildfire risk
- Fire-risk route
backend/server.js - WeatherAPI
- Risk model API
fireModel/app.py
Other components
- User
Connections 13
- User → React entry: opens app
frontend/src/main.jsx - React entry → Monitoring dashboard: renders
frontend/src/main.jsx - Monitoring dashboard → Fire prediction UI: renders
frontend/src/App.jsx - Image upload → API client: requests analysis
frontend/src/components/FileUpload.jsx - Fire prediction UI → API client: requests risk
frontend/src/components/FirePrediction.jsx - API client → Satellite route: GET tile
frontend/src/services/api.js - API client → Image prediction route: uploads image
frontend/src/services/api.js - API client → Fire-risk route: POST risk
frontend/src/services/api.js - Satellite route → ESRI imagery: fetches tile
backend/server.js - Satellite route → Image prediction route: forwards tile
backend/server.js - Image prediction route → Image classifier: forwards image
backend/server.js - Fire-risk route → WeatherAPI: fetches conditions
backend/server.js - Fire-risk route → Risk model API: sends features
backend/server.js