@sanity/workbench
v0.1.0-alpha.40
Published
Workbench component for the Sanity Content Operating System
Readme
@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
