Five Layers.
One Coherent Stack.

Privacy is architectural. Every component from edge to cloud is designed with privacy-first principles, ensuring data protection at every step of the spatial intelligence pipeline.

Layer 01
Sensing
Physical sensors capture spatial reality. WorldMesh integrates diverse hardware: USB webcams, IP cameras (RTSP), LiDAR, and radar systems. The worldmesh-edge runtime processes all streams with consistent inference.
YOLOv8n inference at the edge for real-time object detection across all sensor types.
USB Cameras RTSP Streams LiDAR Radar
Layer 02
Privacy
GPU-accelerated face detection, blurring, and PII redaction run at the edge before any data leaves the device. Cryptographic attestation ensures data governance compliance.
Zero trust: raw video never leaves edge. Only structured spatial events with PIIs scrubbed flow to cloud.
Face Anonymization PII Redaction GPU Accelerated OpenCV
Layer 03
Protocol
spatial_event_v0.json is the canonical schema for all events. MQTT and NATS transport guarantee reliability. Object taxonomy is optimized for LLM reasoning—two tiers: space-level and object-level metadata.
Versioned schemas support controlled evolution and backward-compatible integrations.
JSON Schema MQTT/NATS Versioned Schema
Layer 04
Relay
FastAPI cloud relay with TimescaleDB for time-series storage and WebSocket API for real-time subscriptions. Space-level access control ensures multi-tenant isolation and fine-grained permissions.
Stateless relay architecture scales horizontally. Works with AWS, GCP, Azure, or self-hosted Kubernetes.
FastAPI TimescaleDB WebSocket AWS/GCP
Layer 05
Agents
Provider-agnostic LLM adapters. Works with Claude, OpenAI GPT-4o, OpenClaw, Ollama, and any OpenAI-compatible endpoint. LangChain integration for agentic workflows and function calling.
Your spatial events feed directly into agent reasoning loops. Adapters handle model-specific formatting automatically.
Claude GPT-4o OpenClaw Ollama LangChain
Data Flow Pipeline
Capture
Raw Streams
USB, RTSP, LiDAR, Radar
→
Detect
YOLOv8n
94ms inference
→
Anonymize
Privacy Layer
Face redaction
→
Filter
Schema Validation
structured events
→
Transport
MQTT/NATS
pub/sub mesh
→
Store
TimescaleDB
time-series
→
Consume
AI Agents
Claude, GPT-4o, OpenClaw
Core Event Schema
{ "version": "0.2.0", "timestamp": 1704067200000, "space_id": "warehouse-01", "space_metadata": { "location": "Oakland, CA", "category": "industrial" }, "objects": [ { "class": "person", "confidence": 0.96, "position": { "x": 142, "y": 218 }, "anonymized": true } ] } }

Technology Stack

🎯
Inference Engine
YOLOv8n
Lightweight object detection optimized for edge hardware. Accurate in <94ms on commodity Raspberry Pi.
📡
Message Transport
NATS
Cloud-native pub/sub. Scales to millions of events/sec. Perfect for distributed spatial mesh.
📊
Time-Series Storage
TimescaleDB
PostgreSQL-native time-series database. Optimized for high-throughput event ingestion and historical queries.
⚡
Cloud Relay
FastAPI + WebSocket
Async-first Python framework. Real-time bidirectional communication to agents and clients.
🔐
Privacy Layer
OpenCV Face Anonymization
GPU-accelerated face detection and blurring. Runs at edge before serialization—no PII escapes.
🧠
Agent Framework
LangChain
Orchestrate multi-step reasoning. Integrates Claude, GPT-4o, Ollama seamlessly.

Design Principles

🔒
Privacy is Architectural
Not an afterthought. Every layer from sensors to agents respects data minimization. Encryption and anonymization are non-negotiable.
📋
Schema-First
Contracts defined upfront. spatial_event_v0.json is the source of truth. Versioning allows graceful evolution.
🔌
Provider-Agnostic
Swap LLM providers without code changes. Adapters for Claude, OpenAI, Ollama. Your data belongs to you.
🤖
Agents Are the Consumer
The entire stack exists to feed spatial intelligence to LLMs. Events are optimized for agent reasoning, not human UIs.
⚡
Edge Stays Fast
Real-time inference on commodity hardware. Cloud relay handles aggregation and storage. No "smart" decisions in the cloud that block edge processing.

Start Building

Deploy WorldMesh edge nodes, compose agents, and launch spatial intelligence applications in minutes.