API Reference DemoDirector v#0.1.1

Copy Markdown View Source

Modules

Direct AI-driven product demos for Phoenix apps, right from your Tidewave Web tab.

HEEx components for the DemoDirector overlay.

Discovers and parses metadata from saved demo scripts.

HEEx-template helpers for tagging elements as demo-targetable.

Server-side entry point for pushing playback JS to every connected overlay.

Phoenix channel that relays playback JS from the server to every connected overlay.

Phoenix socket that the overlay JS connects to in order to receive playback messages from mix demo_director.play.

Renders a tiny HTML listing of every saved demo and serves each demo's emitted JS at <mount>/demos/<name>.js.

Receives a POST containing JavaScript and broadcasts it on the demo_director:playback PubSub topic so connected overlays can eval it.

Mounted at the package's mount path by DemoDirector.Router.demo_director/1. Routes

Router macro for mounting DemoDirector's static assets and registering the mount path so the overlay component can construct asset URLs.

Mix Tasks

Installs demo_director into a Phoenix application.

Prints a URL you can open (or click in your terminal) that plays a saved DemoDirector demo against the running dev server.