FluxyChat

Architecture

Platform expansion — packages & integration map

Status: Beta (July 2026)

Status: Beta (July 2026)
Related: vertical-platform-expansion.md


What shipped

CapabilitySDKWorkerPackages used
Capability realtimeonCapabilityEvent, isCapabilityRealtimeEventfanoutRoomInternal + WS capability_eventNative DO fan-out (no new npm)
Customer Memory GraphcreateCustomerMemoryClientCDP /api/cdp/* + KG /rooms/:id/kgReuses existing D1 (0133, 0063)
Moderation LabelscreateModerationLabelsClient, evaluateModerationRulesPOST /moderation/labelsPattern scan + optional Workers AI via ai-moderation.js
Long-horizon agent taskscreateWorkerAgentTaskClient/agents/tasks REST + D1 0157Cloudflare Workflows ready for resume (future)
Digital Twin MCPcreateDigitalTwinMcpRegistryIn-process MCP tool registry (no @modelcontextprotocol/sdk on edge yet)
Digital Twin persistencecreateWorkerDigitalTwinClient/spatial/scenes REST + D1 0158Scenes, entities, agent grants
FluxyGame persistencecreateWorkerFluxyGameClient/games/* REST + D1 0159Lobbies, matches, player profiles
FluxyIoT persistencecreateWorkerFluxyIoTClient/iot/* REST + D1 0160Devices, readings, rules, shadows
Agent Platform persistencecreateWorkerAgentPlatformClient/agents/platform/* + D1 0161Configs, versions, deploys, memories
FluxyStream bridgecreateWorkerFluxyStreamClientexisting /api/live/*Wraps live-streaming Worker routes
Inbox where (server)getInbox(\{ where \})GET /inbox?where=Server-side filter parity with Portal §6
Portal parity (prior pass)setToken, acquireFluxyRoomSession, useInbox where+WSPOST /tokens/anonymouspartysocket@1.3.0 optional transport

AreaPackageWhy
Graph layout (dashboard)ngraph.graph (MIT)Pure JS adjacency for memory graph viz
Policy engine@open-policy-agent/opa-wasm (Apache-2.0)Wire policy-approvals.ts to Worker
MCP server on edge@modelcontextprotocol/sdk (MIT)Remote MCP when twin persistence lands on Worker
Agent schedulescron-parser (MIT)Deferred step resume for autonomous tasks
Validationzod (MIT)HTTP boundary schemas for new routes

Dashboard surfaces

  • /cross-channel — Memory Graph tab + Worker agent task submit
  • /spatial — MCP create scene button on Digital Twin tab
  • Vertical studios — capability events persist + realtime via WS (when room connected)

Honest readiness

Nothing above is labeled production until:

  1. D1 migrations applied in target environments (0157_autonomous_agent_tasks.sql)
  2. KNOWLEDGE_GRAPH_ENABLED=1 for KG extraction routes
  3. Integration tests against live Worker (not just unit mocks)
  4. Compliance gates per vertical (Health/Finance) unchanged

On this page