8000 GitHub - OrbisVL/orbis: 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. · GitHub
[go: up one dir, main page]

Skip to content
8000
OrbisVLPublic

About

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.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

64 Commits

Folders and files

Repository files navigation

Orbis

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.

Repository structure

orbis/
├── backend/        # Python / FastAPI — VLM analysis service
└── frontend/       # Next.js — agent UI, globe workspace, API routes

Backend (/backend)

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 AnalysisRun with 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.


Frontend (/frontend)

A Next.js 16 application with two primary workspaces.

Agent workspace (/agent)

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.

Bounding-box visualization

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 with viewBox="0 0 100 100" and preserveAspectRatio="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 confidence
  • SatelliteImageViewer — wraps the image and overlay in a relative container; tracks hover state and renders a floating label tooltip anchored to the top-left corner of the hovered box
  • AnalyzeSceneResult — shows the viewer above the existing region list whenever analysisMode === "grounding" and a imageUrl is 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.

Chat workspace (/chat)

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

API routes (/app/api)

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

Auth

Supabase-backed authentication with sign-in and register pages under /(auth).

Marketing

Landing page under /(marketing).


Getting started

1. Start the backend

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 8000

PowerShell (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 8000

Requires LM Studio or Ollama running locally with a vision-capable model loaded.

2. Start the frontend

bash / zsh

cd frontend
npm install
cp env.example .env.local   # fill in Supabase keys and provider API keys
npm run dev

PowerShell

cd frontend
npm install
Copy-Item env.example .env.local   # fill in Supabase keys and provider API keys
npm run dev

Open http://localhost:3000.


Architecture notes

  • 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 GroundingResult map 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 before next dev and next build.

Hosted App

https://orbisvl.vercel.app/agent

About

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.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0