How wickedapp/openclaw-office works
OpenClaw Office is a companion dashboard for observing OpenClaw agents. The main user workflow is gateway activity entering the workflow API, being recorded and streamed to the dashboard, then rendered as office animations, activity, and statistics. Separate branches cover gateway/agent setup and optional AI scene generation. The README documents capabilities whose implementation is not fully sampled; relationships below are limited to cited source references or README statements.
Main entry points: page.js Dashboard page · openclaw-ws.js Gateway connection · openclaw/route.js OpenClaw API · workflow/route.js Workflow API
Components 30
Dashboard & Views
- Dashboard page
app/page.js - Office visualization
components/IsometricOffice.js - Request pipeline
components/RequestPipeline.js - Activity log
components/ActivityLog.js - Team dashboard
components/TeamDashboard.js - Stats cards
components/StatsCards.js - Cost dashboard
components/CostDashboard.js - Security dashboard
components/SecurityDashboard.js - Database dashboard
components/DatabaseDashboard.js
Workflow Runtime
- Workflow API
app/api/workflow/route.js - Workflow stream API
app/api/workflow/stream/route.js - Workflow stream hook
lib/useWorkflowStream.js - Task routing
lib/workflow.js - Event bus
lib/event-bus.js - SQLite store
lib/db.js
Gateway & Integrations
- OpenClaw API
app/api/openclaw/route.js - Gateway connection
lib/openclaw-ws.js - Agent sync API
app/api/agents/sync/route.js - Agent discovery
lib/agent-sync.js - Telegram notifications
lib/telegram.js - Runtime configuration
lib/config.js
Setup & Scene Generation
- Setup wizard
cli/commands/init.js - CLI gateway client
cli/lib/gateway.js - Office image generation
cli/lib/image-gen.js - Desk position detection
cli/lib/position-detect.js - Scene prompts
cli/lib/prompts.js
Other components
- Office user
- OpenClaw gateway
- Gemini image service
- Claude Vision
Connections 34
- Office user → Dashboard page: views
README.md - Dashboard page → Office visualization: renders
app/page.js - Dashboard page → Request pipeline: renders
app/page.js - Dashboard page → Activity log: renders
app/page.js - Dashboard page → Team dashboard: renders
app/page.js - Dashboard page → Stats cards: renders
app/page.js - Dashboard page → Cost dashboard: renders
app/page.js - Dashboard page → Security dashboard: renders
app/page.js - Dashboard page → Database dashboard: renders
app/page.js - Dashboard page → Workflow API: posts stages
- Request pipeline → Workflow stream hook: reads stream
components/RequestPipeline.js - Workflow stream hook → Workflow stream API: opens SSE
README.md - Workflow API → Task routing: routes tasks
app/api/workflow/route.js - Workflow API → SQLite store: reads and writes
app/api/workflow/route.js - Workflow API → Telegram notifications: notifies
app/api/workflow/route.js - Workflow stream API → Event bus: streams events
app/api/workflow/stream/route.js - Workflow stream API → SQLite store: loads snapshots
app/api/workflow/stream/route.js - OpenClaw API → SQLite store: records requests
app/api/openclaw/route.js - OpenClaw API → Gateway connection: reads status
app/api/openclaw/route.js - OpenClaw API → Telegram notifications: notifies
app/api/openclaw/route.js - OpenClaw API → Event bus: emits updates
app/api/openclaw/route.js - Gateway connection → Event bus: publishes events
lib/openclaw-ws.js - Gateway connection → SQLite store: records activity
lib/openclaw-ws.js - Gateway connection → Task routing: uses routing
lib/openclaw-ws.js - Gateway connection → Runtime configuration: loads settings
lib/openclaw-ws.js - OpenClaw gateway → Gateway connection: connects
README.md - Agent sync API → Agent discovery: delegates sync
app/api/agents/sync/route.js - Setup wizard → CLI gateway client: discovers agents
cli/commands/init.js - Setup wizard → Office image generation: generates scene
cli/commands/init.js - Setup wizard → Desk position detection: detects desks
cli/commands/init.js - Office image generation → Scene prompts: builds prompts
cli/lib/image-gen.js - Desk position detection → Scene prompts: uses templates
cli/lib/position-detect.js - Office image generation → Gemini image service: generates image
README.md - Desk position detection → Claude Vision: detects positions
README.md