Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
Collaboration
Shared collaboration runtime used by the web app and non-browser workers.
@macro-inc/collaboration/collab/*contains the Loro manager, sync engine, awareness, snapshots, and write-ahead log.@macro-inc/collaboration/sync-service/*contains the sync-service wire protocol and transport. Callers provide the environment-specific URL/token.@macro-inc/collaboration/websocketcontains the typed WebSocket runtime; deeper utilities are available throughwebsocket/*subpaths. UsewithAutoConnect(false)for session-owned sockets: construction and wake signals stay idle untilreconnect().close()stops retries; a subsequent reconnect resolves fresh credentials, discarding URLs from before the close, including closes duringUrlResolvedcallbacks. Before a native socket exists,readyStatereports CLOSED or CONNECTING,bufferedAmountis 0, andextensionsis empty.
Browser authentication, sync HTTP endpoints, and document history UI remain in
apps/web because they depend on app state and browser policy.
Document load callers may pass parentSpan to the Loro manager and sync engine.
Seed and catch-up phases then retain their caller's trace across asynchronous
work. These components own their child phases and never end the supplied span.
Omitting context preserves independent instrumentation for non-view callers.