How dma-teams/nasa-app works
Surco is an interactive crop-planning app for Honduras: users choose a place, review climate, select a planning mode and crops, then receive an annual planting plan with a calendar, explanation, parcel simulation, and printable output. The app also has a map, municipality and climate API routes, and climate and crop-planning logic. Edges are limited to relationships visible in the excerpts or SOURCE INDEX; unsampled route-to-service wiring is not inferred.
Main entry points: Explorador.tsx Guided explorer · SimulacionParcela.tsx Parcel simulation · ModuloPlan.tsx Plan module · Planta.tsx Plant illustration
Components 28
User journey
- Guided explorer
app/components/Explorador.tsx - Start panel
app/components/PanelInicio.tsx - Place panel
app/components/PanelLugar.tsx - Plan mode
app/components/PanelModo.tsx
Place and climate
- Interactive map
app/components/MapaReal.tsx - Place details
app/components/DatosLugar.tsx - Climate view
app/components/modulos/ModuloClima.tsx - Monthly chart
app/components/GraficaMensual.tsx - Climate route
app/app/api/clima/route.ts - Municipality route
app/app/api/municipios/route.ts - Climate logic
app/lib/clima.ts
Plan logic
- API client
app/lib/api.ts - Plan service logic
app/lib/planApi.ts - Plan route
app/app/api/plan/route.ts - Plan and calendar logic
app/lib/plan.ts - Crop catalog
app/lib/cultivos.ts - Shared data types
app/lib/tipos.ts
Plan presentation
- Plan module
app/components/modulos/ModuloPlan.tsx - Crop calendar
app/components/CalendarioCultivos.tsx - Printable plan
app/components/PlanImprimible.tsx - Crop and climate art
app/components/dibujos.tsx - UI primitives
app/components/ui.tsx
Parcel simulation
- Parcel simulation
app/components/simulacion/SimulacionParcela.tsx - Simulation timeline
app/components/simulacion/LineaTiempo.tsx - Plant illustration
app/components/simulacion/Planta.tsx - Growth-stage logic
app/lib/simulacion.ts - Crop appearance
app/lib/aspecto-cultivos.ts
Other components
- Grower
Connections 14
- Grower → Guided explorer: starts workflow
- Guided explorer → API client: requests climate and plan
app/components/Explorador.tsx - Guided explorer → Interactive map: uses map
app/components/Explorador.tsx - Guided explorer → Climate view: shows climate
app/components/Explorador.tsx - Guided explorer → Plan module: shows plan
app/components/Explorador.tsx - Plan module → Crop calendar: renders calendar
app/components/modulos/ModuloPlan.tsx - Plan module → Parcel simulation: opens simulation
app/components/modulos/ModuloPlan.tsx - Parcel simulation → Growth-stage logic: derives growth stages
app/components/simulacion/SimulacionParcela.tsx - Parcel simulation → Plan and calendar logic: groups plan periods
app/components/simulacion/SimulacionParcela.tsx - Parcel simulation → Plant illustration: renders plant legend
app/components/simulacion/SimulacionParcela.tsx - Plant illustration → Crop appearance: gets appearance
app/components/simulacion/Planta.tsx - Plant illustration → Growth-stage logic: gets plant size
app/components/simulacion/Planta.tsx - Crop calendar → Plan and calendar logic: builds calendar rows
app/components/CalendarioCultivos.tsx - Plan and calendar logic → Crop catalog: uses crop catalog
app/lib/plan.ts