Guides
Solve a Task
Guides provide focused, task-oriented steps for common Scalive development and operations work. For an ordered introduction to the framework, start with Learn. Each guide declares its prerequisites so you can also enter directly from search or the API reference.
Phoenix LiveView concepts in Scalive maps Phoenix concepts to Scalive's Scala-first API without assuming complete parity.
Interfaces And Input
HTML and event bindings builds typed trees, sets attributes, binds messages, keys repeated content, and composes portal and focus-management helpers.
Typed forms and validation decodes rooted browser input into domain values with recovery and path-specific feedback.
Ordinary HTTP forms and redirects combines checked actions, bounded CSRF-protected decoding, trigger-action handoff, and HTTP-to-Live flash.
File uploads validates bounded files and chooses in-memory, hosted-writer, or external destination ownership.
Routing And Application Structure
Routes, parameters, and navigation decodes typed URL state and chooses checked patch, navigation, replace, and redirect behavior.
Layouts, live sessions, and mount aspects composes document shells, route groups, and typed pre-mount policy.
Authentication and sessions combines ordinary HTTP login and reset with opaque sessions and protected LiveView mounts.
Nested LiveViews embeds an independently mounted child with explicit socket, navigation, crash, and sticky-lifecycle ownership.
State, Services, And Components
Services and dependency injection constructor-injects application capabilities while keeping socket state connection-local.
Stateful components and communication isolates local state, maps typed outputs, and owns component-local features.
Streams and collection updates separates durable collection state from targeted, bounded DOM operations.
Async And Lifecycle
Asynchronous work and subscriptions owns finite tasks and long-lived message streams with typed keys and lifecycle cleanup.
Lifecycle hooks applies ordered static or dynamic policy to root and component lifecycle stages.
Lifecycle feedback and page state owns flash, document titles, connection feedback, and post-render observation.
Browser Integration
Browser commands, events, and hooks composes client effects and implements validated, registered JavaScript hooks.
Testing And Troubleshooting
Testing LiveViews covers public disconnected and connected server-side tests, then identifies behavior that requires a real browser.
Troubleshooting diagnoses startup, asset, socket, CSRF, crash, and reconnect failures.
Assets And Operations
Client setup and static assets bundles the Phoenix client, serves tracked digested assets, and reacts to static changes and connection parameters.
Configuration defines the current framework and application-owned configuration contract.
Deployment runs the current application behind TLS and a WebSocket-capable edge without inventing unsupported packaging or clustering.