Inside your page, Spacefront holds the shell and the canvas; each block on the canvas is hydrated from IDs to a full record, then rendered by your component. Your page mounts <Spacefront>. For every visitor message, AMS streams back text and blocks. Blocks land on the canvas, where hydrators turn their entity IDs into full records and your components render them. Everything around the canvas is the shell.

Blocks

A block is a piece of UI the agent can place on the canvas. You write all three parts, in your repository:
Each .describe() is read by the agent. resolved(Schema, hydrator, { min, max }) marks a prop that holds entity IDs; max: 1 makes it a single record.

Register them

Hand both maps to <Spacefront>, the page’s root:
route.tsx
  • catalog maps each block type to its declaration; renderers maps the same types to components.
  • renderers also needs agentText and turn: they draw the agent’s text and the visitor’s message.
  • forty publish sends the declarations and manifests (the paths in forty.config.json) so the agent can use them. Components never leave your codebase.

Hydrators

A prop declared with resolved() arrives as entity IDs. The hydrator for that entity type, provided by your data source’s connector, fetches the current record in the page before your component renders. Components always receive full, fresh data.

Canvas and shell

The canvas (<SpacefrontCanvas>) renders the blocks. The shell is everything else: the message input, the conversation and agent activity. Build it from the SDK hooks, or use the UI Components.