Full reference for all exports from @vryo/client, @vryo/core, and @vryo/server.
@vryo/core
Pure types and Zod schemas. Safe to import anywhere — server, client, Edge.
CanvasState
Prop
Type
Default
Description
revision*
number
—
Monotonically incrementing integer. Bumped on every patch.
widgets*
Record<string, Widget>
—
Flat map from widget ID to widget object.
AgentPatch
Prop
Type
Default
Description
agentId*
string
—
Identifier for the agent that produced this patch.
baseRevision*
number
—
Canvas revision the patch was computed against.
rationale
string
—
Human-readable explanation of the patch.
upsert
WidgetInput[]
—
Widgets to create or update.
remove
string[]
—
Widget IDs to delete.
Widget Types
6 widget types, each validated by Zod schemas: chart (13 chart types), table, note, kpi, gauge, filter. See the Widget Reference for full property documentation.
@vryo/client
VryoProvider
The top-level React component. Renders a tldraw canvas with all VRYO shape utils registered.
Prop
Type
Default
Description
style
React.CSSProperties
—
Container styles. Typically set width + height.
className
string
—
Container class name.
initialState
CanvasState
—
Initial widget layout. Defaults to an empty canvas.