CrisisLens turns fragmented humanitarian risk, population, and funding data into country-level priorities that response teams can explore, question, and simulate from one workspace.
CrisisLens is a crisis-risk dashboard on a 3D globe that shows which countries need humanitarian help most and where funding falls short. It won the Databricks Challenge at Hacklytics 2026.
Try the live demo (no sign-up)
You need Node.js 20+ and pnpm 10+.
git clone https://github.com/azizu06/CrisisLensV2.git && cd CrisisLensV2
pnpm install
pnpm dev # open http://localhost:3000/dashboard
pnpm run test:unit # run the unit testsThe committed data snapshot runs the globe and scenario tools with no credentials. See Run locally to connect Databricks.
| 1. Explore | 2. Investigate | 3. Simulate |
|---|---|---|
| Rotate or search the 3D globe and switch between severity, people-in-need, funding-gap, coverage, and Overlooked Crisis Index layers. | Open a country brief, compare rankings and visual evidence, or ask Databricks Genie a natural-language question without leaving the map. | Change funding allocations and inspect quarterly forecasts, leaderboard movement, country impacts, and map arcs before acting. |
| Capability | Recruiter-level summary | Engineering behind it |
|---|---|---|
| Global risk map | Makes 164 country records explorable through a responsive, selectable 3D globe. | react-globe.gl, Three.js, raycasting, animated camera transitions, and five metric layers. |
| Country intelligence | Brings population, need, funding, severity, and project context into one country brief. | Typed Next.js route handlers backed by committed, normalized JSON snapshots containing 5,988 project records. |
| Natural-language analysis | Converts analyst questions into ranked country findings and map highlights. | Databricks Genie conversations, server-side session continuity, normalized result parsing, retry guidance, and SQL Warehouse data. |
| Scenario planning | Shows how proposed funding changes affect priorities across future quarters. | Deterministic simulation logic, ML context, impact scoring, comparison charts, and geographic relationship arcs. |
| Hands-free navigation | Lets a presenter select and explore countries through voice or camera-based hand controls. | Browser Speech Recognition, MediaPipe vision tasks, confidence-gated country selection, and shared globe commands. |
| Dual workspaces | Separates strategy questions from deeper model and simulation analysis. | Isolated Genie and ML modes with dedicated panels, state, visualizations, and API contracts. |
flowchart LR
subgraph Sources[Data and model sources]
CSV[Humanitarian and funding CSVs]
ML[Python ensemble models]
DBX[(Databricks SQL Warehouse)]
GENIE[Databricks Genie]
end
subgraph Pipeline[Versioned data pipeline]
SCORE[Country scoring artifacts]
BUILD[Aggregation and normalization]
JSON[(Country, project, and snapshot JSON)]
end
subgraph App[Next.js application]
API[Typed App Router APIs]
SIM[Scenario simulation engine]
SESSION[Genie session store]
UI[React command center]
GLOBE[Three.js globe]
end
CSV --> BUILD
ML --> SCORE --> BUILD
BUILD --> JSON --> API
DBX --> API
GENIE <--> SESSION <--> API
API --> UI
SIM --> UI
UI <--> GLOBE
USER[Analyst] --> UI
VOICE[Voice and hand controls] --> GLOBE
sequenceDiagram
actor Analyst
participant Globe as 3D Globe
participant Dashboard as Next.js Dashboard
participant Data as Local Data and APIs
participant Genie as Databricks Genie
Analyst->>Globe: Select or search for a country
Globe->>Dashboard: Emit normalized ISO3 code
Dashboard->>Data: Load country metrics and project context
Data-->>Dashboard: Return brief, rankings, and visual rows
Dashboard-->>Analyst: Render country evidence in context
alt Strategy question
Analyst->>Dashboard: Ask a natural-language question
Dashboard->>Genie: Continue the server-side conversation
Genie-->>Dashboard: Return narrative and result rows
Dashboard->>Globe: Highlight relevant countries
else Funding scenario
Analyst->>Dashboard: Adjust country allocations
Dashboard->>Data: Run quarterly simulation
Data-->>Dashboard: Return impacts, rank changes, and arcs
Dashboard-->>Analyst: Compare the projected outcome
end
First place, Databricks Challenge at Hacklytics 2026, selected from a 234-project field.
The project combined a working geospatial interface, Databricks-backed natural-language analysis, country-level scoring, and scenario planning into a single hackathon product.
- Geography stays visible. The globe remains the primary workspace while briefs, rankings, charts, and queries update around the selected country.
- External systems sit behind adapters. Databricks, Genie, and computer-vision integrations use typed seams so UI code does not depend on provider response shapes.
- Generated data is committed. A local clone can open the full dashboard without private challenge datasets or cloud credentials.
- ISO3 is the shared key. Search, voice commands, CV output, API routes, simulations, and globe selection converge on one country identifier.
- Complex logic is testable outside the canvas. Metrics, simulation, query parsing, globe picking, and visualization transforms live in deterministic helpers covered by Vitest.
| Layer | Technologies |
|---|---|
| Web | Next.js 14, React 18, TypeScript, Tailwind CSS, Framer Motion |
| Geospatial | Three.js, react-globe.gl, D3 Geo, TopoJSON |
| Intelligence | Databricks SQL Warehouse, Databricks Genie, AI model endpoints |
| Modeling | Python, pandas, NumPy, scikit-learn, LightGBM, XGBoost |
| Interaction | MediaPipe Tasks Vision, Web Speech API |
| Quality | Vitest, Playwright, ESLint, strict TypeScript |
| Delivery | pnpm workspaces, Docker, GitHub Actions |
- Node.js 20+
- pnpm 10+
git clone https://github.com/azizu06/CrisisLensV2.git
cd CrisisLensV2
pnpm install
pnpm devOpen http://localhost:3000 for the landing page or http://localhost:3000/dashboard for the command center. The committed data snapshot supports the local globe, country metrics, project context, ML mode, and scenario tools without additional credentials.
Create apps/web/.env.local to enable live Genie and Databricks-backed routes:
DATABRICKS_HOST=https://your-workspace.cloud.databricks.com
DATABRICKS_TOKEN=your-token
DATABRICKS_WAREHOUSE_ID=your-warehouse-id
GENIE_SPACE_ID=your-genie-space-id
CRISIS_TABLE_FQN=workspace.schema.crisislens_master
AI_MODEL=databricks-llama-4-maverickOptional overrides:
| Variable | Purpose |
|---|---|
DATABRICKS_AI_ENDPOINT |
Selects a serving endpoint when it differs from AI_MODEL. |
DATABRICKS_AI_CHAT_PATH |
Overrides the default AI Gateway chat path. |
NEXT_PUBLIC_GLOBE_WS_URL |
Streams anomaly or country-highlight events into the globe. |
The normalized JSON artifacts are already committed. If you have the raw challenge CSV exports in apps/web/data, rebuild them with:
pnpm run generate:datapnpm run test:unit # deterministic domain and visualization logic
pnpm run test # ESLint and strict TypeScript checks
pnpm run build # production Next.js build
pnpm run test:e2e # browser flows and API contractsSixteen Vitest and Playwright files cover the dashboard, landing experience, API contracts, country metrics, Genie summaries, simulation behavior, globe picking, arcs, and CV-to-globe coordination.
apps/
├── ml/ # model training code and retained scoring artifacts
└── web/
├── app/ # routes, pages, and server APIs
├── components/ # landing, globe, dashboard, and command-center UI
├── lib/ # metrics, simulations, integrations, and domain types
├── public/data/ # normalized country and project snapshots
├── scripts/ # reproducible data aggregation
└── tests/ # Vitest and Playwright suites
docs/ # technical context and architecture notes
- Databricks tokens and workspace identifiers are read only by server-side modules; never expose credentials through a
NEXT_PUBLIC_variable. - Genie conversation identifiers are stored in HTTP-only cookies with secure transport enabled in production.
- API integrations normalize provider responses before sending data to the client.
- The public repository contains generated challenge artifacts and model outputs, not Databricks credentials.
- Camera and microphone controls require an explicit user action in the browser and remain off by default.
