As an open-source project, phoenixframework/phoenix_live_view has picked up 6.8k stars on GitHub (Elixir). Rich, real-time user experiences with server-rendered HTML
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
If you have an older existing Phoenix app and you wish to add LiveView,
see the previous installation guide.
Feature highlights
LiveView brings a unified experience to building web applications. You no longer
have to split work between client and server, across different toolings, layers, and
abstractions. Instead, LiveView enriches the server with a declarative and powerful
model while keeping your code closer to your data (and ultimately your source of truth):
Declarative rendering: Render HTML on the server over WebSockets with a declarative model, including an optional LongPolling fallback.
Rich templating language: Enjoy HEEx: a templating language that supports function components, slots, HTML validation, verified routes, and more.
Diffs over the wire: Instead of sending "HTML over the wire", LiveView knows exactly which parts of your templates change, sending minimal diffs over the wire after the initial render, reducing latency and bandwidth usage. The client leverages this information and optimizes the browser with 5-10x faster updates, compared to solutions that replace whole HTML fragments.
Live form validation: LiveView supports real-time form validation out of the box. Create rich user interfaces with features like uploads, nested inputs, and specialized recovery.
File uploads: Real-time file uploads with progress indicators and image previews. Process your uploads on the fly or submit them to your desired cloud service.
Rich integration API: Use the rich integration API to interact with the client, with phx-click, phx-focus, phx-blur, phx-submit, and phx-hook included for cases where you have to write JavaScript.
Optimistic updates and transitions: Perform optimistic updates and transitions with JavaScript commands via Phoenix.LiveView.JS.
Loose coupling: Reuse more code via stateful components with loosely-coupled templates, state, and event handling — a must for enterprise application development.
Live navigation: Enriched links and redirects are just more ways LiveView keeps your app light and performant. Clients load the minimum amount of content needed as users navigate around your app without any compromise in user experience.
Latency simulator: Emulate how slow clients will interact with your application with the latency simulator.
Robust test suite: Write tests with confidence alongside Phoenix LiveView built-in testing tools. No more running a whole browser alongside your tests.
Learning
Check our comprehensive docs to get started.
The Phoenix framework documentation also keeps a list of community resources, including books, videos, and other materials, and some include LiveView too.
Also follow these announcements from the Phoenix team on LiveView for more examples and rationale:
LiveBeats: Building a Social Music App With Phoenix LiveView
Build a real-time Twitter clone with LiveView
Build a real-time Twitch clone with LiveView and Elixir WebRTC
Initial announcement
Component systems
When you create a new Phoenix project, it comes with a minimal component system to power Phoenix generators.
In case you want to enrich your developer experience, there are several component systems provided by the
community at different stages of development:
Bloom: The opinionated, open-source extension to Phoenix Core Components
Doggo: Headless UI components for Phoenix
Petal Components: Phoenix + Live View HEEX Components
PrimerLive: An implementation of GitHub's Primer Design System using Phoenix LiveView
SaladUI: Phoenix Liveview component library inspired by shadcn UI
Mishka Chelekom: Phoenix + LiveView UI kit and HEEx components
Fluxon UI: Elegant and accessible UI components for Phoenix LiveView
LiveDebugger
LiveDebugger is a debugging tool built specifically for Phoenix LiveView applications. It provides a real-time view into your LiveView processes, making it easier to understand the component hierarchy, inspect assigns, trace lifecycle callbacks, and troubleshoot issues more efficiently.
To get started, follow the setup instructions in the LiveDebugger repository.
What makes LiveView unique?
LiveView is server-centric. You no longer have to worry about managing
both client and server to keep things in sync. LiveView automatically
updates the client as changes happen on the server.
LiveView is first rendered statically as part of regular HTTP requests,
which provides quick times for "First Meaningful Paint", in addition to
helping search and indexing engines.
Then LiveView uses a persistent connection between client and server.
This allows LiveView applications to react faster to user events, as
there is less work to be done and less data to be sent compared to
stateless requests that have to authenticate, decode, load, and encode
data on every request.
When LiveView was first announced, many developers from different
backgrounds got inspired by the potential unlocked by LiveView to
build rich, real-time user experiences. We believe LiveView is built
on top of a solid foundation that makes LiveView hard to replicate
anywhere else:
LiveView is built on top of the Elixir programming language and
functional programming, which provides a great model for reasoning
about your code and how your LiveView changes over time.
By building on top of a scalable platform,
LiveView scales well vertically (from small to large instances)
and horizontally (by adding more instances). This allows you to
continue shipping features when more and more users join your
application, instead of dealing with performance issues.
LiveView applications are distributed and real-time. A LiveView
app can push events to users as those events happen anywhere in
the system. Do you want to notify a user that their best friend
just connected? This is easily done without a single line of
custom JavaScript and with no extra external dependencies
(no extra databases, no Redis, no extra message queues, etc.).
LiveView performs change tracking: whenever you change a value on
the server, LiveView will send to the client only the values that
changed, drastically reducing the latency and the amount of data
sent over the wire. This is achievable thanks to Elixir's
immutability and its ability to treat code as data.
Browser Support
All current Chrome, Safari, Firefox, and MS Edge are supported.
IE11 support is available with the following polyfills:
Please see the Phoenix Code of Conduct and Contributing guides.
Running the Elixir tests:
$ mix deps.get
$ mix test
Running all JavaScript tests:
$ mix deps.get
$ npm ci
$ npm test
Running the JavaScript unit tests:
$ mix deps.get
$ npm ci
$ npm run js:test
# to automatically run tests for files that have been changed
$ npm run js:test.watch
Running the JavaScript end-to-end tests:
$ mix deps.get
$ npm ci
$ npm run e2e:test
Checking test coverage:
$ npm run cover
$ npm run cover:report
Format the files:
$ mix format
$ npm run js:format
JS contributions are very welcome, but please do not include an updated priv/static/phoenix_live_view.js in pull requests. The maintainers will update it as part of the release process.
How many stars does phoenixframework/phoenix_live_view have?
phoenixframework/phoenix_live_view has 6.8k GitHub stars — refresh the page for the live number, or check github.com/phoenixframework/phoenix_live_view. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is phoenixframework/phoenix_live_view open source?
Yes — phoenixframework/phoenix_live_view ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/phoenixframework/phoenix_live_view.
What is phoenixframework/phoenix_live_view?
phoenixframework/phoenix_live_view (phoenixframework/phoenix_live_view) is a Elixir project on GitHub. From the project's own README: Rich, real-time user experiences with server-rendered HTML
Where can I see phoenixframework/phoenix_live_view in action?
The project maintains a homepage at https://hex.pm/packages/phoenix_live_view. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about phoenixframework/phoenix_live_view?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/phoenixframework/phoenix_live_view is the definitive source.
Read full README in the tab above.
Is phoenix_live_view worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of phoenix_live_view.