How crokomedia/virtual-office works
Virtual Office is a SaaS-style dashboard for monitoring AIOS agents and their activity, with project discovery, project switching, licensing, and team metrics. The main runtime path is AIOS events through the backend’s Socket.IO server to the frontend store and office views. Project discovery follows a separate UI-to-service-to-backend path. The graph includes documented enterprise capabilities, but their implementation details are not all visible in the sampled source; edges reflect only shown calls or README-documented behavior.
Main entry points: OfficeView.tsx Office Grid · index.ts Socket.IO Backend · AgentWorkspace.tsx Agent Workspace · ProjectScanner.tsx Project Discovery UI
Components 25
Live Monitoring
- AIOS Connector
backend/src/aios-connector.ts - Socket.IO Backend
backend/src/index.ts - WebSocket Client
frontend/src/services/websocket.ts - App Connection
frontend/src/App.tsx - Realtime State
frontend/src/store/websocket.ts - Office Grid
frontend/src/components/OfficeView.tsx - Agent Workspace
frontend/src/components/AgentWorkspace.tsx - Activity Feed
frontend/src/components/ActivityFeed.tsx - Agent Details
frontend/src/components/AgentDetailPanel.tsx
Project Management
- Settings
frontend/src/components/Settings.tsx - Project Discovery UI
frontend/src/components/ProjectScanner.tsx - Project API Client
frontend/src/services/projectService.ts - Project Scanner
backend/src/project-scanner.ts - Project State
frontend/src/store/projects.ts - Project Switcher
frontend/src/components/ProjectSwitcher.tsx
Enterprise Features
- Team Metrics View
frontend/src/components/TeamView.tsx - Team Aggregation
frontend/src/services/teamService.ts - License Manager
frontend/src/components/LicenseManager.tsx - License State
frontend/src/store/license.ts - License Validation
frontend/src/services/licenseService.ts - Feature Gate
frontend/src/components/FeatureGate.tsx - Export, Filters, Branding
frontend/src/components
Shared Contracts
- Shared Event Types
shared/src/types/websocket.ts
Other components
- AIOS Workspace
- Project User
Connections 26
- AIOS Workspace → AIOS Connector: emits events
- AIOS Connector → Socket.IO Backend: forwards events
backend/src/index.ts - Socket.IO Backend → WebSocket Client: broadcasts events
- App Connection → WebSocket Client: connects
frontend/src/App.tsx - App Connection → Realtime State: updates state
frontend/src/App.tsx - Office Grid → Agent Workspace: renders
frontend/src/components/OfficeView.tsx - Office Grid → Agent Details: renders
frontend/src/components/OfficeView.tsx - Agent Workspace → Activity Feed: renders
frontend/src/components/AgentWorkspace.tsx - Agent Workspace → Realtime State: reads state
frontend/src/components/AgentWorkspace.tsx - Office Grid → Realtime State: reads state
frontend/src/components/OfficeView.tsx - Settings → Project Discovery UI: renders
frontend/src/components/Settings.tsx - Project Discovery UI → Project API Client: calls
frontend/src/components/ProjectScanner.tsx - Project API Client → Socket.IO Backend: posts scan requests
frontend/src/services/projectService.ts - Socket.IO Backend → Project Scanner: scans and validates
backend/src/index.ts - Project Discovery UI → Project State: updates projects
frontend/src/components/ProjectScanner.tsx - Settings → Project State: manages projects
frontend/src/components/Settings.tsx - Office Grid → Project Switcher: renders
frontend/src/components/OfficeView.tsx - Project Switcher → Project State: reads state
frontend/src/components/ProjectSwitcher.tsx - Team Metrics View → Team Aggregation: requests metrics
frontend/src/services/teamService.ts - Team Metrics View → Feature Gate: gates access
frontend/src/components/TeamView.tsx - Team Aggregation → Shared Event Types: returns metrics
- License Manager → License State: updates license
frontend/src/components/LicenseManager.tsx - License State → License Validation: validates key
frontend/src/store/license.ts - Feature Gate → License State: checks features
frontend/src/components/FeatureGate.tsx - Feature Gate → Export, Filters, Branding: gates capabilities
frontend/src/components/FeatureGate.tsx - Export, Filters, Branding → Shared Event Types: uses shared types