liveview-js-interop

Community

Seamless JS integration for Phoenix LiveView.

Authorhwatkins
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides structured guidance and patterns for adding JavaScript interoperability to Phoenix LiveView apps, enabling safe, patch-resilient client-side behavior.

Core Features & Use Cases

  • phx-click and JS commands that patch-safely manipulate DOM
  • Colocated hooks (LV 1.1+) for component-scoped JS without external files
  • Traditional hooks for reusable logic and third-party libraries
  • LiveSvelte boundary for complex interactive UIs
  • Practical server→client messaging and debounced/pushEvent workflows
  • Guidance on phx-update ignore and patch-survival patterns

Quick Start

Add a simple LiveView hook to your component and push an event to the server on interaction.

Dependency Matrix

Required Modules

None required

Components

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: liveview-js-interop
Download link: https://github.com/hwatkins/my-skills/archive/main.zip#liveview-js-interop

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.