A hackathon demo that combines Browser Use agents (topography, land rules, community intel) with a React + Mapbox map. Users enter a location and preferences; parallel cloud browsers research the area while the UI shows live sessions, then merges agent-suggested sites with a map, routing, and nearby facilities.
- Built the FastAPI backend orchestrating concurrent Browser Use agents across multiple data sources (topography, land rules, community intel)
- Implemented parallel task execution with timeout handling, polling, and result aggregation
- Integrated Gemini API for structured synthesis of multi-agent outputs into a unified report
- Designed and exposed REST API endpoints supporting real-time frontend updates and map-based visualization
| Layer | Tech |
|---|---|
| Frontend | React 19, Vite 8, Tailwind 4, Mapbox GL, Lucide |
| Backend | FastAPI, Browser Use SDK, optional Gemini post-processing |
API base path: /api (see interactive docs at http://127.0.0.1:8000/docs when the server is running).
- Python 3.11+ (3.14 works with the current
requirements.txt) - Node.js 20+ and npm
- Browser Use API key — required for live agents (cloud.browser-use.com)
- Mapbox — a public token is used in the frontend for maps and geocoding (see
frontend/src/lib/mapbox.js; replace with your own token for production)
Create a .env in any of these locations (later files override earlier ones):
- Repository root:
DiamondHacks/.env backend/.envbackend/app/.env
Minimum:
BROWSER_USE_API_KEY=bu_your_key_hereOptional keys and tuning (timeouts, Gemini, model names) are documented in backend/app/.env.example.
Frontend: By default the UI calls http://localhost:8000. To point at another API (e.g. deployed backend), set:
# frontend/.env.local
VITE_API_URL=https://your-api.example.comTerminal 1 — backend
cd backend
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reload --host 127.0.0.1 --port 8000Terminal 2 — frontend
cd frontend
npm install
npm run devOpen http://localhost:5173. Ensure the backend is up first if you need agents and topo polling.
Production build (frontend):
cd frontend && npm run build && npm run previewbackend/app/ # FastAPI app, routers (browser-agents, topo), agents, schemas
frontend/src/ # React UI, Mapbox, polling and camping demo data
See DEMO.md for a short rehearsal script and backup plan.
See CONTRIBUTING.md for branch and lint expectations.