Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub

API

Browse Scalive's supported public API by package or use Filter symbols in the API browser. Symbols inherited or exported through import scalive.* appear under that public import path.

Packages

  • scalive contains the core LiveView, component, HTML, form, routing, upload, and runtime APIs.

  • scalive.codecs contains codecs used at browser and route boundaries.

  • scalive.testing contains disconnected rendering, page queries, and typed form test utilities.

Find a symbol

Use the API browser to explore packages and nested owners. Global documentation search (Ctrl K) searches API declarations and members alongside guides and examples.

Core abstraction

Start with LiveView, the typed boundary for mounting state, handling messages, and rendering HTML.

Forms

Start structured browser input with FormRoot and combine fields into a FormDefinition. The definition owns its Form values and typed FormEvent messages. See the typed forms guide for the complete path, then use the profile, repeated rows, and save workflow examples in order.

Advanced entry points include PhoenixNestedParamsAdapter for indexed compatibility payloads, FormWorkflow for coordinated persistence, and HttpFormDecoder for bounded CSRF-validated POST bodies.

Lifecycle capabilities include ConnectedResources for non-message acquisition and finalization during connected mount. The lifecycle-owned work guide compares it with managed async tasks and subscriptions.

Route-wide operational capabilities include LifecycleObserver and the LifecycleMetrics adapter. The lifecycle observability guide defines their coverage and fixed metric contract.