SSR / API

foldkit-ssr/binder

foldkit-ssr/binder (Phase 6, Bouts 6.5–6.7): answers declared presses before the Foldkit runtime loads, writes DOM anchors as text/attributes/ hidden/order, and hands over its updated Model and queued Messages to SSR.hydrate once the runtime wakes.

Namespaces

Functions

applyAnchorsWrite evaluated binding values to anchored elements under root (text only, never HTML).
canAnswerLocallyWhether every path transition writes is covered by at least one bound anchor's reads.
startStart the delegated binder on a server-drawn page.

Values

ANCHOR_ATTRIBUTEAttribute written on every anchored element by the server.
BINDER_KEY_ATTRIBUTEAttribute naming a child element's key inside an Order-bound container.
BINDER_MESSAGE_ATTRIBUTEAttribute naming the Message tag an element dispatches.
BINDER_PAYLOAD_ATTRIBUTEAttribute carrying the JSON-encoded payload for data-fk-msg (optional; defaults to {}).
BINDER_TOUCHED_ATTRIBUTEThe attribute written on controls the pre-boot binder updated (holding a space-separated list of mutated attribute names, or empty for field state).

Interfaces

BinderEnvelope
BinderHandle
BinderManifest
BinderOptions
BinderTransition
BinderTransitionLikeAny declared Transition over Model, regardless of its Input, Emit, or Supplied types.
Bindings

Types