elixir-liveview
CommunityReal-time LiveView patterns for UI.
Authorhwatkins
Version1.0.0
Installs0
System Documentation
What problem does it solve?
LiveView development often faces challenges around structuring the lifecycle, keeping renders efficient, and implementing scalable real-time updates. This guide provides a concise set of patterns and best practices to build responsive, interactive LiveView features with robust state management, streaming updates, and safe event handling.
Core Features & Use Cases
- Lifecycle optimization: minimal mount, use handle_params for URL-driven state, and avoid blocking operations.
- Streams & real-time updates: use streams for lists and incremental updates, with phx-update="stream" and proper DOM IDs.
- Events, PubSub, and forms: validate input server-side, manage PubSub subscriptions, and build robust forms with to_form and validations.
- Performance & components: use temporary assigns, debouncing, and offload long-running tasks to async operations.
Quick Start
Apply these LiveView patterns to your existing Phoenix app to start building and debugging real-time interfaces immediately.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: elixir-liveview Download link: https://github.com/hwatkins/my-skills/archive/main.zip#elixir-liveview Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.