Elixir 首进浏览器,瞄准离线优先
推荐指数 49.0 NO. 020 · 2026.07.23
发布2026/07/22Score66Comments8
为什么值得看
Hologram 框架让 Elixir 代码直接运行在浏览器中,无需 JavaScript 转译。其正在推进内置的 local-first 架构,若成功将成为首个原生支持离线自动同步的全栈框架。
编辑判断
Elixir/Erlang 生态长期被困在服务端,Phoenix LiveView 虽能推送到浏览器但依赖长连接,离线即瘫痪。Hologram 走 WebAssembly 路线让 BEAM 字节码直跑客户端,这是根本不同的架构选择。
对比 LiveView 的"服务端渲染+Diff 推送"和 React/Next.js 的 SSR/CSR 混合模式,Hologram 的赌注在于:local-first 不是功能插件而是运行时内核——CRDT 同步、本地数据库、冲突解决都内建在框架层。目前只有 Electric SQL、PowerSync 等独立库在做这块,尚无全栈框架原生集成。
风险也很明显:作者坦承项目存续取决于未来几个月的企业赞助,且 Elixir 生态本身小众。如果你在评估 LiveView 方案但受困于离线场景,或在做协作工具、PWA 类应用,值得跟踪其 WebAssembly 编译器和 CRDT 实现的进展,但不宜过早押注生产环境。
社区反馈
正面 10 条评论
核心争论:框架选型应看原生能力还是生态资料量,AI时代BEAM/OTP的并发优势被重新重视
I would be really excited to see this moving forward - saying as someone who uses Phoenix regularly (and likes it for the most part) and has used react, vuejs, and so on - even at the stage it's at is already a very promising DX with what looks like a very reasonable roadmap and clear intent. Having
We're in an interesting time where my framework/stack choice is now much less dictated by existing engineer expertise and more about fundamental capabilities in the framework and stack themselves. I ended up building an agent orchestrator in Elixir and Phoenix, not because I love working in Eli
Did you use something like Jido or roll your own out of curiosity?