How kishore2006-kumar/orb---ambient-intelligence works
ORB Hub is a FastAPI service for pairing and managing devices, issuing safety-checked commands, and receiving device updates; it includes Android, virtual, iOS-stub, and Windows-agent drivers. A separate Windows agent executes hub-dispatched actions. The graph follows the documented/source-indexed runtime links; unsampled API and agent details are kept at subsystem level, and the README provides no additional capability description.
Main entry points: main.py Hub App · commands.py Command Execution · registry.py Driver Registry · devices.py Device API
Components 25
Hub API
- Hub App
hub/main.py - Device API
hub/api/devices.py - Command API
hub/api/commands.py - WebSocket API
hub/api/ws.py - Token Security
hub/security.py
Device Workflows
- Device Management
hub/services/devices.py - Device Pairing
hub/services/pairing.py - Command Execution
hub/services/commands.py - Safety Validation
hub/services/safety.py
Drivers And Messaging
- Driver Registry
hub/drivers/registry.py - Android ADB
hub/drivers/adb.py - Virtual Driver
hub/drivers/virtual.py - iOS Stub
hub/drivers/ios_stub.py - Windows Driver
hub/drivers/windows_agent.py - Message Bus
hub/bus/base.py - MQTT Bus
hub/bus/mqtt_bus.py - Memory Bus
hub/bus/memory_bus.py
Persistence And Events
- Domain Records
hub/db/models.py - Relational Database
hub/db/session.py - Device Events
hub/services/events.py
Windows Agent
- Windows Agent
agent_windows/main.py - Agent Actions
agent_windows/actions.py - Agent Client
agent_windows/client.py
Other components
- API Client
- Managed Device
Connections 28
- API Client → Hub App: sends requests
- Hub App → Device API: mounts routes
hub/main.py - Hub App → Command API: mounts routes
hub/main.py - Hub App → WebSocket API: mounts routes
hub/main.py - Device API → Token Security: checks token
- Command API → Token Security: checks token
- Device API → Device Management: manages devices
hub/api/devices.py - Device API → Device Pairing: starts pairing
hub/api/devices.py - Command API → Command Execution: submits commands
hub/api/commands.py - Command Execution → Safety Validation: validates actions
hub/services/commands.py - Command Execution → Driver Registry: gets driver
hub/services/commands.py - Device Management → Android ADB: connects devices
hub/services/devices.py - Driver Registry → Android ADB: registers driver
hub/drivers/registry.py - Driver Registry → Virtual Driver: registers driver
hub/drivers/registry.py - Driver Registry → iOS Stub: registers driver
hub/drivers/registry.py - Driver Registry → Windows Driver: registers driver
hub/drivers/registry.py - Windows Driver → Message Bus: publishes commands
hub/drivers/windows_agent.py - MQTT Bus → Message Bus: implements interface
hub/bus/mqtt_bus.py - Memory Bus → Message Bus: implements interface
hub/bus/memory_bus.py - Command Execution → Device Events: writes state events
hub/services/commands.py - Hub App → Relational Database: creates tables
hub/main.py - Command Execution → Domain Records: reads and updates
hub/services/commands.py - Device Management → Domain Records: creates device records
hub/services/devices.py - Device Events → Domain Records: stores event records
hub/services/events.py - Windows Agent → Agent Actions: dispatches actions
agent_windows/main.py - Windows Agent → Agent Client: uses client
agent_windows/main.py - Windows Agent → Managed Device: controls device
- WebSocket API → API Client: streams updates