Spaces:
Sleeping
Sleeping
Rush Agents Rush Frontend
Next.js UI for the fire-suppression simulation.
What It Shows
- Model selection from the backend's live Hugging Face model list
- Map-based agent positions and fire placement
- Water sources, coalition links, and leader markers
- Live event chat with model-generated radio-style messages
- End-of-game result banner with top performer info
Run Locally
cd frontend
npm install
npm run dev
Then open http://localhost:3000.
Environment Variables
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
Main Files
app/page.tsx- app shell and simulation flowcomponents/MapCanvas.tsx- 2D map rendering and agent visualscomponents/ChatFeed.tsx- event/chat panelcomponents/ModelSelector.tsx- model pickerlib/api.ts- backend requestslib/websocket.ts- simulation WebSocket client
Notes
- The frontend expects the backend to be running before placing a fire.
- If the browser shows
Failed to fetch, verifyhttp://localhost:8000/wakefirst. - The model picker reads
GET /available-modelsfrom the backend and sends those model ids back into the simulation. - The old volcano terminology has been removed from the current gameplay flow.