Orbis is a disaster-intelligence platform that combines a 3D globe workspace, live disaster event feeds, satellite imagery, and an AI agent into a single analyst interface. Analysts can select events from a global feed, inspect NASA GIBS satellite imagery on a Cesium globe, and query a vision-language model for grounded scene analysis — including interactive bounding-box overlays rendered directly in the browser.
orbis/
├── backend/ # Python / FastAPI — VLM analysis service
└── frontend/ # Next.js — agent UI, globe workspace, API routes
A lightweight FastAPI service that wraps a locally-running vision-language model and exposes a single structured analysis endpoint.
Key responsibilities:
- Accept a scene description (event metadata + optional satellite image URL)
- Route to a local VLM via the OpenAI-compatible API (LM Studio or Ollama)
- Return a structured
AnalysisRunwith observations, grounding bounding boxes (in both image-space and geographic coordinates), confidence scores, and follow-up questions
Stack: Python 3.11, FastAPI, Pydantic v2, OpenAI SDK, Uvicorn
See backend/README.md for full setup instructions.
A Next.js 16 application with two primary workspaces.
The main analyst interface, built around a DisasterEvent → SceneCandidate → AnalysisRun pipeline.
frontend/app/agent/
├── components/
│ ├── agent-view.tsx # Top-level orchestrator: event state, scene state, context builder
│ ├── agent-chat.tsx # AI chat panel — sends analysisContext with each request
│ ├── artifact-panel.tsx # Side panel for structured analysis outputs
│ ├── bounding-box-overlay.tsx # SVG overlay that draws grounding result bounding boxes
│ ├── satellite-image-viewer.tsx # Satellite image + bounding-box overlay composite
│ ├── sidebar/
│ │ ├── agent-sidebar.tsx # Navigation sidebar
│ │ └── sidebar-history.tsx # Conversation history
│ ├── tool-displays/
│ │ └── static/
│ │ └── analyze-scene-result.tsx # Renders AnalysisRun; shows image viewer for grounding mode
│ └── workspace/
│ └── cesium-globe.tsx # CesiumJS 3D globe with event markers and imagery layers
├── lib/
│ ├── disasters/
│ │ ├── events.ts # Fetch + normalize live events (NASA EONET, USGS, Copernicus EMS, ReliefWeb)
│ │ ├── scenes.ts # Resolve events/coordinates → SceneCandidate + ImageryAsset
│ │ ├── analysis.ts # VLM + heuristic analysis runners; augments results with imageUrl
│ │ ├── log.ts # In-memory analysis run log
│ │ └── cache.ts # Event/scene cache
│ └── ai/
│ ├── system-prompt.ts # Agent system prompt
│ ├── models.ts # Available model definitions
│ └── providers/ # AI SDK provider wrappers
└── store/
└── agent-store.ts # Zustand store for agent UI state
Disaster event sources:
| Source | Role |
|---|---|
| NASA EONET | Broad multi-hazard global event coverage |
| USGS | Earthquake freshness and magnitude data |
| Copernicus EMS | Curated activation metadata for major events |
| ReliefWeb | Incident reporting context |
Imagery: NASA GIBS browse tiles, served as WMS URLs and passed to the VLM for vision-grounded analysis.
When a grounding-mode analysis runs, the model returns normalised image-space bounding boxes (xMin, yMin, xMax, yMax in [0, 1]). The frontend renders these directly onto the satellite thumbnail without any image-composition backend step:
BoundingBoxOverlay— an SVG withviewBox="0 0 100 100"andpreserveAspectRatio="none"stretched pixel-for-pixel over the image;vectorEffect="non-scaling-stroke"keeps line widths consistent at any display size; boxes are colour-coded emerald/amber/red by confidenceSatelliteImageViewer— wraps the image and overlay in arelativecontainer; tracks hover state and renders a floating label tooltip anchored to the top-left corner of the hovered boxAnalyzeSceneResult— shows the viewer above the existing region list wheneveranalysisMode === "grounding"and aimageUrlis present in the result; degrades gracefully when no imagery was used
The imageUrl is resolved entirely on the frontend from the scene's imageryAssets and attached to the AnalysisRun before it reaches the tool display — no extra backend round-trip.
A simpler general-purpose AI chat interface with conversation history and model selection.
frontend/app/chat/
├── components/ # Chat UI, message rendering, model selector
├── hooks/ # API key management, chat history, user state
└── types.ts
| Route | Description |
|---|---|
/api/agent |
Streams agent responses using Vercel AI SDK tool calls |
/api/chat |
General chat completions |
/api/history |
Conversation persistence |
/api/disasters/events |
List normalized live/recent disaster events |
/api/disasters/events/[id] |
Fetch a specific event with resolved scene and reports |
/api/disasters/scenes/resolve |
Resolve an event or coordinates into a scene AOI |
/api/disasters/imagery/search |
Return imagery assets for the active scene |
/api/disasters/analysis/run |
Run heuristic scene analysis |
Supabase-backed authentication with sign-in and register pages under /(auth).
Landing page under /(marketing).
bash / zsh (macOS, Linux, WSL)
cd backend
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # configure LLM_BASE_URL and LLM_MODEL
uvicorn app.main:app --reload --port 8000PowerShell (Windows)
cd backend
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
Copy-Item .env.example .env # configure LLM_BASE_URL and LLM_MODEL
uvicorn app.main:app --reload --port 8000Requires LM Studio or Ollama running locally with a vision-capable model loaded.
bash / zsh
cd frontend
npm install
cp env.example .env.local # fill in Supabase keys and provider API keys
npm run devPowerShell
cd frontend
npm install
Copy-Item env.example .env.local # fill in Supabase keys and provider API keys
npm run devOpen http://localhost:3000.
- The backend VLM service is the only component that requires a local GPU/LLM setup. The frontend can run without it (analysis features will degrade gracefully to heuristic mode).
- Analysis mode is designed as a seam: the current heuristic runner and VLM call can be replaced by a trained model without changing the UI or API contract.
- Bounding-box rendering is purely client-side: normalised coordinates from
GroundingResultmap directly to SVG viewBox units — no server-side image composition needed. - Persistence is currently in-memory. Events and analysis logs are cached per process; durable storage is a planned upgrade.
- The Cesium globe uses CesiumJS with a custom asset-copy script (
scripts/link-cesium-assets.mjs) that runs beforenext devandnext build.