Rich, real-time user experiences with server-rendered HTML
open sourceMITfree
Phoenix LiveView builds rich, real-time user interfaces with server-rendered HTML in Elixir, and ships by default in new Phoenix applications. Pages render on the server and stay connected over WebSockets (with a long-polling fallback); after the first render LiveView sends only minimal diffs of the parts of a template that changed. It includes the HEEx templating language (function components, slots, HTML validation, verified routes), real-time form validation, file uploads with progress and previews, live navigation, stateful components, optimistic updates and transitions through JavaScript commands, client hooks for the JavaScript you still need, a latency simulator, and testing tools that need no browser.
Problems it solves
- build an interactive web app in Elixir without writing a JavaScript front end
- push real-time UI updates from the server to the browser
- validate forms live as the user types without client-side code
- test interactive pages without running a browser
Features
- server-rendered HTML over WebSockets
- minimal diffs after first render
- HEEx templates with function components
- live form validation
- file uploads with progress
- live navigation
- JS commands for optimistic updates
- testing without a browser
Alternatives
The same job
These do what Phoenix LiveView does.
