If you haven’t tried Hologram yet, what’s stopped you?
Here’s why I’m asking. Building a framework turns out to be two jobs, the framework itself and getting people to use it, and for years I barely touched the second one. Now I’m doing both, and a big part of that second job is learning what Hologram looks like from the outside, which isn’t something I can work out from where I sit. So I’m asking.
Pick up to 3.
LiveView already covers what I build
No time or no fitting project yet
Not sure it’s mature enough yet
No processes or OTP on the client yet (GenServers, supervisors)
Hard to add to an existing Phoenix app
Not enough docs, guides or examples
A feature I need is missing (see the second poll)
Something else (tell me below)
0voters
The second poll is for everyone, whatever you picked above. Which of these would make the biggest difference to you? Up to 3 again.
Auth (built-in)
Devtools and debugging
Forms abstraction (validation, errors, changesets)
Internationalization
Local-first / offline support
Mobile and desktop apps
Performance (rendering speed, bundle size)
Stable v1.0 release
Testing tools (component and end-to-end tests)
UI component library
Something else (tell me below)
0voters
If it’s something else, reply below, one line is enough. Feel free to be blunt, the polite version tends to leave out the part I need. If you’d rather keep it private, send me a message, and either way I’ll post what came out of it.
For me a blocker has always been the “use hologram completely or not at all”. Yes you can have hologram sit right besides LV or whatever else, but afaik there’s nothing more granular to compose existing code one might have with hologram. I’d much rather try to integrate hologram into my existing (mostly LV) pages as like islands compared to being required to buy into all of the new abstractions of hologram from the large (layouts) to the very small. I feel like I’m much more interested and excited about the pieces hologram uses over the framework created on top.
You probably don’t want to hear this. I am skeptical with any volunteer run, compile to js language in general. The recent history is littered by such projects, now either abandoned or dormant:
To be clear, I have tried all of the above and liked them, and have made toy projects with them. But then again, the toy projects I made with them could have been made with vanilla js, and for projects beyond the reach of vanilla js, I am still reluctant to use them, due to uncertainty of long term maintainership of the project. You have chosen to compete in a very big arena, in a game that no one has won before.
PS: All of the projects I cited here are frontend only, not the smooth backend/frontend integration that Hologram promised. So Hologram is aiming higher. There are both upsides and downsides with this fact. If you succeed, you can escape this arena. OTOH, the bar of success is also higher.
Most of the things I feel are missing are already on the short term list, I’m giving context mostly.
Testing: This one gives me a lot of pause before building anything substantive.
Persistent server-side state that get’s cleaned up when the client disconnects ala LiveView. Sometimes you just want that to do something on the server with long-lived state, e.g. partial recompilation of a Typst template to render a preview in response to template editing.
Form abstraction: I want to be confident the framework is handling security concerns like CSRF etc, and have an idiomatic path for validation/user feedback.
Uploads: It’s tricky, would be good to have an idiomatic pattern.
Better coverage of primitives like drag n drop, touch support, dynamic raw HTML, etc.
No requirement of node/NPM, vendored JS deps
A previous sticking point has been the compilation performance, especially on large apps. That has gotten a lot better, so that’s great.
With the small amount of testing I’ve done, runtime performance is good enough that it’s not a concern yet, and I know optimizations are on the roadmap so I’m not too worried about it.
Thanks! What would the island look like in practice for you - a Hologram component inside a LiveView template, or something else? And which pieces do you have in mind?
Yeah for example. For the pieces: E.g. the whole compile to JS portion is really interesting, but probably not really usable outside of hologram. With me being hesitant to buy into the hologram framework being able to compile some random elixir code to js I could e.g. build my own client side to a server side running e.g. over LVs existing socket connection / event handling.
The projects on your list all share one failure mode, they were languages, so when the maintainer stopped, everything you’d written was in something nobody maintained, business logic included. Hologram puts much less of your code at stake. Your code is Elixir, the same modules you’d write for the server, and Hologram compiles it to run in the browser and gives you the framework around it, pages, components, routing, server calls. If it stopped, the UI layer would be tied to it the way it’s tied to LiveView or React today, and the rest keeps running on the BEAM. That’s framework risk, not language risk. If it reads as a transpiler, that’s partly on me, I called it transpilation myself at the start, and back then it was. The aim has been a client runtime at parity with the BEAM, and the process model is the next piece of that. And it’s sponsored work, Curiosum and a few others pay for it, and I’m on it full time. Different arena than the one you described IMO.
Some of them are dialects of established languages, just like Hologram. Some of them were dialects of established languages, until at a point got overwhelmed by the requests from the crowd to be more compatible with the JS ecosystem and conventions. I hope the same will not happen for hologram.
Agree that framework risk is smaller than language risk. What would be even smaller is library risk; like part of Hologram can be used as a library without committing to the full hologram way of doing things.
Persistent server-side state: added to the roadmap as “Server-Side Client State”
Forms/CSRF: a form submit in Hologram goes to the server through a command, and every command carries a CSRF token automatically. Form helpers will most probably come together with the data layer in v0.13
Better coverage of primitives like drag n drop, dynamic raw HTML: both are coming in v0.13
No requirement of node/NPM, vendored JS deps: this is coming in v0.13 too, lodash is the last one left
I have chosen “no time” and “missing feature”. The feature I’d need for the project I don’t have the time to implement was umbrella support. I know it’s solved by now, but it wasn’t back when I had time.
I hope to find some time again for this before Christmas.
For those that voted for “Stable v1.0 release”, what does that mean to you? What do you want to see or what assurances are you expecting?
I feel like most people were using LiveView well before it hit 1.0 in 2024, ~5 years after its initial release. And there are many important hex packages still sub 1.0.
I chose that as a proxy for “strong community adoption”. For example, I moved to liveview when I see Surface emerged. If someone outside the core team put in significant effort, the stuff must be good. BTW: surface-ui.org fails to load with bad certificate. What is happening?
Make YouTube videos featuring the “how-to” stuff. Make a bunch of simple one feature tuts, then others doing multiple features. And then make a tut that shows how Hologram makes constructing a complicated UI easier/better.
Take LiveSvelte for example. It might not be well known or used widely either, but there are some (4 ) great videos about it on Youtube. A couple make the application easy to understand, and the other is a strong endorsement by Dockyard’s BeaconCMS team. LiveSvelte is not pushing much content on Youtube, but at least the basics are there.
I know that the early React vs Angular wars are long gone, but I’d argue that part of their success was that they flooded Youtube with “how-to” videos. Blog tuts exploded featuring counters, input fields, page transitions, todo lists, instagram clones and all that stuff. But what it did is let devs SEE what it does AND how to WIRE it up WITHOUT having to get buried in the docs just trying to figure out how to write JSX.
In the words of some smarter marketer, “Vision is Decision.” I see a whole lot of docs, but I’m not seeing any apps, tuts or blog posts showing how to make stuff with Hologram.
I have a very simple reason, but it is difficult to solve. I know how to do it with other solutions (or how to describe it to AI). I know what’s easy and what’s hard.
Thanks, noted, and I agree that seeing it beats reading about it. Short videos are planned, at least one per docs page, so each feature is shown next to where you read about it, and longer courses after that.
I recently tried to integrate it into my app as I think it’s an interesting project and could work well in some of my use cases.
I hit a few things that stopped me.
Firstly, I use a visual regression testing tool with liveview which allows me to be confident about how my apps look for users, but for hologram it seemed that this would only be possible using playwright to run the app. I then did some work to see how easy it would be to adapt to use the same approach as liveview and found that it would be possible, but then I saw that the project doesn’t accept PR’s only a process using issues to flag something and discuss.
At that point I gave up. I can’t see myself using a tool that I’m explicitly told I can’t contribute to.
“Can’t contribute” isn’t quite it, it’s “not code, for now”. With a spec and my own process, code is cheap, AI does most of the typing against a design I hold in my head. Reviewing code that came out of someone else’s process costs me more than that, and outside code tends to be wrong a month later, because nobody outside can know where a given part of the system is heading. I could document that, but at this stage it changes often enough that writing it down would cost more than it saves. The policy came from experience, by the way. The PRs I got arrived as finished code before any discussion, so the design conversation ended up happening over a diff, which is the slowest place to have it. SQLite and Lua don’t take pull requests either, and Clojure only takes patches through its own process. What does move Hologram is what you already did: find a problem, work out why, write it up. That turns into a spec in the issue, gets built, and gets your name in the release notes. And on the testing itself, if nobody tells me a LiveView tool doesn’t work with Hologram, it stays that way. So if you’re up for it, file that one, the analysis you did is most of the issue already, and I’d be glad to have you back. Full reasoning: Contributing - Hologram