htmx
phoenix_live_view
Our great sponsors
htmx | phoenix_live_view | |
---|---|---|
486 | 26 | |
12,671 | 5,245 | |
8.4% | 1.2% | |
7.6 | 7.5 | |
1 day ago | 1 day ago | |
JavaScript | Elixir | |
BSD 2-clause "Simplified" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
htmx
-
What is the current ideal choice for server-side rendered web frameworks?
https://pkg.go.dev/html/template on the backend and https://htmx.org/ on the frontend is the productivity dream.
-
It's React, but in Python
https://htmx.org/ Says otherwise, so does https://blog.appsignal.com/2022/07/06/get-started-with-hotwi...
- PHP to Golang
- Ask HN: Why is web development such a daunting task?
- Htmx
-
All Web frontend lisp projects
HTMX works well with any language, any backend and goes a long way. Unpoly too.
-
Is it OK to build full stack web app entirely in Go?
htmx for requests.
Of course it depends on your use case. But consider https://htmx.org/ together with go templates.
- Java notebook for Jupyter
-
htmx VS Swap - a user suggested alternative
2 projects | 19 May 2023
phoenix_live_view
-
Ask HN: What companies are embracing “HTML over the wire”?
"HTML over the wire" generally refers to tech like [0] Liveview, [1] Hotwire, [2] LiveView, [3] Blazor, etc. They aren't about about ditching JS and more about not writing your HTML in JS (and yes, SSR).
- Alpine.js
-
Phoenix 1.7 is View-less
Some of the 1.7 stuff has an alert banner that pops up when the connection is broken. I think that could really help.
However I haven't put that in our app as I have seen other issues of flakey connection reconnect issues, and I would hate to make any of those more visible with a flashing notice.
- https://github.com/phoenixframework/phoenix_live_view/issues...
-
What did I miss?
HEEx template language was created, an extension to EEx
-
How to get started with LiveView?
Also to your point, the latest LiveView release moved some helper utilities around and you need to add "import Phoenix.Component" in places. I could be wrong but I think the latest live code gen still isn't setting up correct imports. More info here: https://github.com/phoenixframework/phoenix_live_view/blob/master/CHANGELOG.md
-
Ask HN: What's is your go to toolset for simple front end development?
If you need any kind of interactivity on the frontend, but are more comfortable with the backend, I would suggest looking at Phoenix LiveView [0] or a similar server-rendered HTML technology for your language of your choice [1].
In short, these solutions take JavaScript out of the mix entirely and basically let you deal with a single logical "app", rather than a separate frontend & backend.
-
Should I stop trying to learn HTML/JavaScript?
It uses JS though, as it is required to open a WS connection and change content without refreshing the page, but that looks like it is abstracted from the user. https://github.com/phoenixframework/phoenix_live_view/tree/master/priv/static
-
Mark Nottingham: Server-Sent Events, WebSockets, and HTTP
> I'm not up to date with the less popular web frameworks. Which frameworks do that?
One of them is https://github.com/phoenixframework/phoenix_live_view which is a component of Phoenix / Elixir.
It will render your initial page over HTTP but then when you transition pages or perform actions using various functions it provides you it will send a diff of what's changed over WebSockets. These actions could be limited to only the 1 user using the site, such as clicking different links in a nav bar to transition between page A and B.
The alternative to this is doing what other frameworks like Rails has done with Hotwire Turbo where they make these types of transitions of actions over HTTP. Turbolinks started to do this back in 2015 or whenever it came out and now more recently with Hotwire Turbo there's ways to only update a tiny area of the page (again over HTTP) but it also optionally supports using WebSockets for when you want to broadcast things to all connected clients, such as updating a counter somewhere or maybe showing a new reply on a blog post, etc..
Laravel has Live Wire and there's also HTMX which is back-end agnostic which all use HTTP for a bulk of their behaviors to send server rendered HTML over the wire.
-
Which technologies can I use to build online chat?
I think Phoenix even has a templating framework for the front-end, called LiveViewer (https://github.com/phoenixframework/phoenix_live_view). And i believe it uses the built-in websockets to communicate changes on front-end to the server.
-
Phoenix LiveView, but event-sourced
The context: I'm building a cryptocurrency exchange application. I don't have the business chops to run an actual exchange, so this is just for fun. The application is built in Elixir, using the Commanded framework for CQRS/ES goodness, and Phoenix LiveView because it's the hot new thing that I wanted to learn.
What are some alternatives?
Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.
react-snap - 👻 Zero-configuration framework-agnostic static prerendering for SPAs
django-unicorn - The magical reactive component framework for Django ✨
Vue.js - This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
hotwire-rails - Use Hotwire in your Ruby on Rails app
Svelte - Cybernetically enhanced web apps
Turbolinks - Turbolinks makes navigating your web application faster
inertia-laravel - The Laravel adapter for Inertia.js.
unpoly - Unobtrusive Javascript Framework for server-side applications
turbo - The speed of a single-page web application without having to write any JavaScript
svelte-query - Performant and powerful remote data synchronization for Svelte