Inspiration
Complex system architectures, microservices, and multi-layered workflows are inherently spatial, yet engineers remain constrained to flat, cluttered 2D monitors. At the same time, many early XR productivity apps induce arm and neck fatigue by forcing users to stand or reach across wide room-scale spaces.
I wanted to build a spatial workspace that passes the "Airplane Seat Test"—allowing developers to brainstorm, expand, and export complex technical architectures comfortably while seated, using natural hand-pinch micro-interactions inside Meta Quest passthrough and VR.
What it does
Nexus.AI is a hands-first, seated WebXR spatial thought processor powered by generative AI:
- Generative Spatial Synthesis: Converts natural language prompts into interactive 3D glassmorphic concept graphs connected by neural synapse threads.
- Hands-Free Voice Dictation: Integrated Web Speech API lets headset users speak an architectural idea and automatically spawn 3D nodes without needing a virtual keyboard.
- Zero-Strain Seated Ergonomics: Every generated node is dynamically clamped within a comfortable chest-to-eye-level forward semi-circular arc ($X \in [-0.75, 0.75]$, $Y \in [0.88, 1.52]$, $Z \in [-0.98, -0.72]$).
- 3D Deep-Dive Sub-Node Expansion: Pinch or click any primary node to inspect its frosted-glass detail card, and toggle
[ + DEEP-DIVE SUB-NODES ]to spawn 3 satellite micro-modules around it in real time (or collapse them cleanly to prevent visual clutter). - One-Click Production Export: Export any spatial mind-map directly as a Mermaid.js flowchart (copied to clipboard) or download a structured JSON specification for immediate engineering documentation.
How we built it
- Frontend & 3D Rendering: Built with React, Vite, Three.js, React Three Fiber (
@react-three/fiber), and@react-three/dreifor physical glassmorphic materials, spatial typography, and 3D synapse lines. - WebXR Runtime: Powered by
@react-three/xr(v6+) usingcreateXRStorewith concurrent hand-tracking pinch raycasting and controller fallback, tested via the Meta Immersive Web Emulator. - Spatial Intelligence Engine: Integrated Google Gemini REST API (
gemini-1.5-flash) with strict JSON schema prompting, paired with a resilient client-side procedural architecture generator for zero-latency offline or fallback reliability. - Deployment: Hosted on Vercel over HTTPS to meet WebXR secure context requirements.
Challenges we ran into
- Preventing Spatial Clutter & Recursive Overlap: Allowing users to expand sub-nodes infinitely caused overlapping 3D geometry in a seated field of view. I solved this by restricting deep-dive satellite expansion exclusively to primary nodes and adding a clean toggle (
+ DEEP-DIVE/- COLLAPSE) alongside deterministic radial offset math. - WebXR API Latency & Resilience: Network timeouts inside an active XR session can break user immersion. I engineered a direct REST fetch pipeline with clean error handling and a domain-aware procedural fallback engine so spatial synthesis always responds instantaneously.
- Ergonomic Reach Clamping: Early prototypes spawned nodes too wide or too high. Tuning the 3D coordinate bounds around seated eye-height eliminated neck strain and made every node reachable with minimal wrist movement.
Accomplishments that we're proud of
- Achieving a true hands-first seated UX that feels natural in both mixed-reality passthrough and full VR without requiring room-scale movement.
- Bridging the gap between spatial brainstorming and real-world developer workflows through instant Mermaid.js and JSON exports.
What we learned
Designing for XR productivity is fundamentally different from 3D gaming—ergonomic restraint (limiting reach envelopes, reducing visual noise, and prioritizing voice/pinch micro-interactions) matters far more than flashy room-scale effects.
What's next for Nexus.AI
- Multi-User Spatial Co-Architecting: Adding WebRTC / WebSockets so distributed engineering teams can pinch, rearrange, and annotate the same 3D architecture graph together in shared passthrough space.
- Direct GitHub Repo Ingestion: Allowing developers to paste a GitHub repository URL and automatically visualize its live microservice dependency tree in 3D.
Built With
- gemini-api
- javascript
- react
- react-three-fiber
- three.js
- vercel
- vite
- web-speech-api
- webxr