npm.io
0.1.0-alpha.29 • Published 5d ago

@sanity/workbench

Licence
MIT
Version
0.1.0-alpha.29
Deps
0
Vulns
0
Weekly
0

@sanity/workbench

Workbench component for the Sanity Content Operating System. Provides the domain model, system state machines, and framework-agnostic host entry point for rendering the workbench shell.

Structure

src/
  core/        → Domain types: projects, organisations, applications, canvases, media libraries, config, logging
  system/      → XState v5 machines: OS root, auth, telemetry, system preferences
  runtime/     → OS communication bus: typed in-process message bus (os), shared across the federation boundary
  _internal/   → Host-side render API (renderWorkbench)

Entry points

Import path Purpose
@sanity/workbench OS communication bus (os) — typed message bus shared across the federation boundary
@sanity/workbench/core Shared domain layer — Zod schemas and branded types
@sanity/workbench/system State machines that drive the workbench runtime
@sanity/workbench/_internal Framework-agnostic host entry point

License

MIT