Basic Counter
Gotta start somewhere, right? This example shows how to send click events to the backend to update state. We also snuck in handling URL params.
Basic Counter with PubSub
The counter example, but with PubSub. Open this example in multiple windows to see the state update in real time across all windows.
JS Commands
JS Commands let you update the DOM without making a trip to the server.
Presence
A simple example of presence tracking. Open this example in multiple windows.
Maps
A simple example of using Leaflet.js with PyView, and sending information back and forth between the liveview and the JS library.
Kanban Board
A simple Kanban board example with drag and drop (another hooks example showing integration w/ SortableJS).
Template Includes
This example shows how to include templates in other templates.
Streams Demo
This example demonstrates Phoenix LiveView streams in PyView. Streams efficiently send only changed items over the websocket.
Basic Counter (T-String Version)
Gotta start somewhere, right? This example shows how to send click events to the backend to update state. We also snuck in handling URL params.
Streams Demo (T-String Version)
This example demonstrates streams using Python 3.14+ t-string templates.
Stateless Components Demo
Demonstrates reusable function components that compose together. All events are handled by this parent LiveView.
Stateful Components Demo
Shows multiple independent component instances and parent-child communication.