šŸŽ‰ Hologram - An Isomorphic Elixir Web Framework is Here!

Hey Elixir community! :wave:

First, I owe you all an apology. Thereā€™s a running joke among my friends that Hologram is like nuclear fusion or fully autonomous Tesla cars - always ā€œcoming very soonā„¢ā€ :sweat_smile:. While Iā€™ve been telling many of you earlier dates, life had other plans.

I want to be transparent with you - the past two years have been incredibly challenging for me health-wise. I went through three surgeries, and from January to July, I was bedridden and unable to walk. It completely turned my life and work upside down. But Iā€™m back now, stronger than ever, and ready to finally share Hologram with you!

Whatā€™s Hologram?

Hologram is an isomorphic web framework that runs as your frontend layer in Elixir projects. While it requires Phoenix to run, you can use it with other backend solutions like Ash (HASH stack, anyone? :wink:). What makes it special? Iā€™ve rebuilt it from the ground up with the ambitious goal of supporting 100% of Elixir syntax eventually.

Current Requirements

  • Elixir 1.13.4 - 1.17.3
  • OTP 22.3 - 27.1

(Other versions might work too, but they havenā€™t been tested yet)

Letā€™s Talk About the Current State

I want to be upfront about some current limitations and quirks:

  1. While we donā€™t have 100% Elixir syntax coverage yet, whatā€™s implemented lets you fully experience Hologramā€™s programming model.
  2. Live reloading is a bit moody right now - if you run into issues, try restarting the server or deleting the _build directory.
  3. Bundle sizes are currently larger than theyā€™ll eventually be. The transpiled code is intentionally verbose for easier debugging.
  4. Compilation is taking its time because everything recompiles on any change. We had incremental compilation before, but I temporarily removed it for better debugging.
  5. Rendering is currently slower than planned due to full page rerenders on component state changes and a temporary bitstring implementation (yes, weā€™re using integer arrays for bits right now :sweat_smile:).

Whatā€™s Next?

Iā€™m working on Hologram full-time for the next couple of months, focusing on:

  • Addressing all the limitations mentioned above
  • Implementing cookies and session support
  • Porting the remaining Erlang functions to JS
  • Adding tons of optimizations

I believe weā€™ll be production-ready in a few months. Iā€™ve spent the past months sharpening the saw, and now Iā€™m all in!

How Can You Help?

The best help right now would be:

  • Play with Hologram and report any bugs you find
  • Share your feedback and experiences
  • Stay tuned for coding tasks if youā€™d like to contribute directly

Got questions? Create a topic in our Hologram Forum - Iā€™m there daily, and your questions will help shape the documentation!

New Website! :art:

Check out the new Hologram website! (Desktop users, you might want to disable f.lux or similar tools for an hour to get the full experience :wink:)

Special Thanks :heart:

A massive thank you to everyone who reached out, showed interest, and cheered me on during this journey. And the most special thanks goes to Emilia :purple_heart: - without you, I donā€™t know how I would have made it through those bedridden months. Youā€™re amazing!

Spread the Word!

If youā€™re excited about Hologram, please share this announcement with your network! Letā€™s get more eyes on this project and build something amazing together.

Letā€™s make web development in Elixir even more awesome! :rocket:


P.S. Remember, this is just the beginning. The current quirks will be resolved soon, and I canā€™t wait to see what youā€™ll build with Hologram!


GitHub repo: GitHub - bartblast/hologram: Full stack isomorphic Elixir web framework

Website: https://hologram.page/

62 Likes

Congrats on the launch Bart! :partying_face:

Itā€™s great to see the Elixir ecosystem expanding, and in a way where new tools like Hologram are designed to work with stalwarts like Phoenix :smiley:

Btw a quick easy way to link to the Hologram forum is elixirforum.com/hologram :023:

Iā€™m also sorry to hear youā€™ve been poorly, I wish you a continued speedy recovery and you and Hologram all the very best for 2025!

6 Likes

I got a hobby project in Ash, I will try it on there. Will post impressions. From the looks of it looks promising! :call_me_hand:

3 Likes

7 posts were split to a new topic: Hologram - Funding & Sponsorship Discussion

This is exciting stuff! In particular Iā€™m excited about the ability to write Elixir on the full stack :slight_smile:

2 Likes

Sounds good! Let me know in case you need help! More documentation and guides are in progress!

3 Likes

needs an igniter installer :wink:

EDIT: me shortly:

mix igniter.new hash --with phx.new --install ash,hologram

With an igniter installer that sets up hologram you could have a one liner setup :partying_face:

Excited to tinker.

5 Likes

nice! :star_struck:

3 Likes

Setup was easy, seems pretty clear how one might leverage Ash inside of commands :slight_smile:

No notes really :smile: Wish I had a bit more time to tinker, but I donā€™t see any challenges to folks using Ash with Hologram as it stands now.

At some point I think a super power might be declarative modeling data sources for pages, and how commands affect that data. Iā€™ve got some ideas for a ā€œdata pipelineā€ concept that might slot well into Hologram some day :smile:

11 Likes

Congrats Bart! Hologram looks awesome. Looking forward to seeing where you take it. Also great to hear that youā€™re doing better health wise.

A few initial thoughts:

  1. Curious how the actions and commands work for a real world scenario. Looks like those areas are wip in the docs so looking forward to reading more when theyā€™re ready.

  2. A couple of simple app examples (e.g. todo app or basic chat) would also be really helpful to see recommended ways of structuring an app.

  3. It looks like all state hangs off a component. Is it possible to have a global store that any component could access?

  4. Would also be great to see how you might approach working with browser based APIs, e.g. localStorage and indexedDB and if itā€™s possible to use an npm package like idb.

2 Likes

Congratulations Bart. I wish you all the success (and good health).
I would tinker with hologram and canā€™t wait to use it in future projects.

2 Likes

Wow, this effort is insane! Congrats on the release.

At first glance, the JavaScript transpiler would be a great standalone product as well. :exploding_head:

2 Likes

Congrats on the release Bart!
This is exciting and looks promising from the initial impression.

2 Likes

Is it possible to use Phoenix LiveView components within Hologram components, or vice versa? And if it isnā€™t, is that functionality planned for the future

1 Like