bartblast
Time for Hologram <> JavaScript Interop - What Would You Like to See?
It’s time to implement JavaScript interop for Hologram!
Eventually, there will be Hologram wrappers for most APIs, but sometimes we’ll need escape hatches - especially when working with legacy apps or integrating 3rd party libraries. Things like:
- Integrating charting libraries (Chart.js, D3, etc.)
- Using JavaScript-only APIs (Web APIs, browser-specific features)
- Calling into existing JavaScript codebases
- Leveraging the vast npm ecosystem
How would you envision a Hologram <> JavaScript interop API/DSL?
Some questions to spark discussion:
- Should it be declarative or imperative?
- How should data be marshaled between Elixir and JavaScript?
- What would the ideal developer experience look like?
- Are there specific JavaScript libraries you’re eager to use?
- How should errors be handled across the boundary?
I have some ideas brewing, but I don’t want to bias the discussion by sharing them upfront. I’m genuinely curious about your use cases and what would make the most sense from a developer ergonomics perspective.
Looking forward to hearing your thoughts!
Most Liked
bartblast
olivermt
If I want to use google maps I am not looking to avoid javascript, I want to use javascript in the most practical manner possible.
Hologram is about isomorphic solution to 80-90% of your app, then for the rest where I can use pre-built stuff that is supported by a profitable business I just want a very ergonomic way to do javascript.
I do not think Bart spending time re-implementing Javascript in elixir is a good use of his time for that ![]()
bartblast
I’d prefer to avoid basing architectural decisions on polls though
Not that I don’t like polls, but I’m trying to provoke a deeper discussion here and am more interested in understanding the deeper trade-offs for Hologram’s specific context.
I’m honestly on the fence here and looking for someone to convince me why one of these approaches is genuinely better than the others. I don’t really care if something is familiar - what I care about is the best DX in general. Sure, familiarity might be part of DX, but there are many other factors like ease of use and ease of maintenance.
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









