phlex-reactive

Reactive Phlex components for Rails

Livewire-style actions and live cross-tab updates — without writing Stimulus controllers or hand-picking Turbo Stream targets. Every demo below runs live.

clickan actioninputa form changebroadcastanother tabone componentrender → #idsigned identity, not state

Signed identity, not state

The DOM carries a MessageVerifier-signed { c, gid } — never raw state. Tampering fails verification.

Default-deny actions

Only methods you declare with action :name run. Undeclared → 403. You authorize inside the action.

One re-render unit

A click, a form change, and a background broadcast all resolve to “render this component into that id.”

pgbus-optional transport

Broadcasts route through Turbo Streams — Action Cable OR pgbus over Postgres SSE. No hard dependency.

Live demos

Documentation

Guide

Examples