Kit Reference
Exports:
mountForm(container, options)unmountForm(mounted)createJsonTransport(options)createGraphqlTransport(options)createSseTransport(options)createWebSocketSessionTransport(options)createGrpcUnaryTransport(options)createGrpcStreamTransport(options)createGrpcSessionTransport(options)createGrpcTransport(options)createRoutingTransport(options)createWeightedRoutingTransport(options)createFanoutTransport(options)createQuorumFanoutTransport(options)createFallbackTransport(options)createLoadBalancedTransport(options)createHedgedTransport(options)createPipelineTransport(options)createRacingTransport(options)pipe(transport, ...middleware)assertTransportCapabilities(transport, requirement, context)withAuth(options)withRetry(options)withTimeout(ms)withCircuitBreaker(options)withRateLimit(options)withDedup(options)withCache(options)withRequestTransform(fn)withResponseTransform(fn)withLogging(options)withTracing(options)withMetrics(options)defaultKitDesignSystemdefaultKitLabels
Types:
MountFormOptionsMountedFormJsonTransportOptionsJsonTransportMethodRoutingTransportOptionsWeightedRoutingTransportOptionsFanoutTransportOptionsFanoutTransportResultQuorumFanoutTransportOptionsFallbackTransportOptionsFallbackTransportFailureLoadBalancingTransportOptionsPipelineTransportOptionsRacingTransportOptionsHedgedTransportOptionsAuthOptionsCapabilityRequirementRetryOptionsCircuitBreakerOptionsRateLimitOptionsRateLimitLeaseRequestDedupOptionsCacheOptionsTransportCollectionTransportCacheStoreSharedRateLimiterCircuitBreakerSharedStateTransportHealthStateKitLabelsKitDesignSystemSnapshot
MountFormOptions requires schema and one transport.
Compose routing, fan-out, fallback, auth, retries, streaming, and transforms inside transport.
Built-in middleware and orchestration read normalized transport.capabilities, enforce capability requirements, and pass scoped policy context to cache, limiter, circuit-breaker, and health backends.
It also forwards engine-level knobs such as inactiveFieldPolicy, hookFailurePolicy, listenerErrorPolicy, and onListenerError.
It also accepts containerStrategy: "replace" when MLForm should temporarily replace existing host content and restore it on unmount().