morphdom
Phoenix
morphdom | Phoenix | |
---|---|---|
14 | 123 | |
3,304 | 21,988 | |
1.1% | 1.0% | |
5.3 | 9.6 | |
7 days ago | 6 days ago | |
JavaScript | Elixir | |
MIT 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.
morphdom
-
If Not React, Then What?
All of what I'm talking about is doable through libraries today (or you can write it yourself). But making things available through DOM APIs create a new baseline where the very same tools are made available for anyone, no matter the framework (think: document.querySelector APIs).
Regarding patch, morphdom explains very well the difference between replacing and patching the DOM [1]:
> Replacing an entire DOM tree is fast but loses internal state (e.g., scroll positions, input carets, CSS transitions). Instead, we aim to transform the existing DOM tree to match the new one, minimizing changes and preserving state.
---
1: https://github.com/patrick-steele-idem/morphdom
-
HTML Streaming and DOM Diffing Algorithm
morphdom
-
The Ultimate Search for Rails - Episode 1
And sure enough, it works! So what's going on here? Well, clicking the link invokes our reflex, which gets executed right before our current controller action runs again. It allows us to execute any kind of server-side logic, as well as play with the DOM in various ways, but with ruby code. Then, the DOM gets morphed over the wire.
-
Build a JS Framework with 80 lines of Javascript
It's super simple actually. And that is in large part to (Morphdom)[https://github.com/patrick-steele-idem/morphdom] which I'm using to compare the output of render() to what is already on the DOM. Morphdom will patch the differences.
-
Using hotwired/turbo but patch the DOM vs Replacing
I'm using morphdom to patch our DOM. Its a very simple library that compares two DOM elements and updates only the differences. It is extremely performant and does not even use a Virtual DOM, just the DOM you already have!
-
Turbo 7.2: A guide to Custom Turbo Stream Actions
using HTML-diffing libraries like morphdom to efficiently update elements on the page
-
how do i morph an entire html document dom?
no it actually looks like morphdom is what i'm looking for.
-
ssceng demo: Hacker News Client
It tries to morph into existing DOM (with https://github.com/patrick-steele-idem/morphdom). In case of fail, there is fallback to HTML replacement with outerHTML. All DOM operations after action occurs on component level, not the whole page.
-
Building a Live Search Experience with StimulusReflex and Ruby on Rails
Today, we’re going to build a live search experience once more. This time with StimulusReflex, a “new way to craft modern, reactive web interface with Ruby on Rails”. StimulusReflex relies on WebSockets to pass events from the browser to Rails, and back again, and uses morphdom to make efficient updates on the client-side.
-
Displaying Real-Time Data in Your Web Application Without Hassle: IHP Auto Refresh ✨
Whenever the JavaScript on the browser-side receives new HTML, it will update the current page using a DOM-diff approach (using morphdom). So only DOM nodes that have actually changed between the initial page load and the updated HTML will be updated.
Phoenix
- CVE-2025-29927 – Next.js
-
Building a Simple REST API with Elixir
This guide will walk you through creating a basic REST API using Elixir and Phoenix Framework with thorough comments explaining each piece of code.
-
A RAG for Elixir in Elixir
We clone the Phoenix repository and checkout the commit right before the PR got merged. Then, we ingest the codebase into our RAG system using the UI.
-
Top FP technologies
Stars: 21k One of the most if not the most popular FP frameworks that has won "the most admired web framework" at stackoverflow research for several years in a row. Stack Overflow Developer Survey 2023 Fullstack, Ruby inspired. Connects high load with easy of use. There are big companies using this framework check related block at Phoenix Framework
-
Running Elixir Phoenix on Windows
You've miraculously managed to install elixir, erlang, and friends on your Windows machine and you're ready to try out Phoenix. At some point in your tutorial you will be asked to run this command:
- Realtime PostgreSQL - Escutando o seu banco de dados com Supabase
-
Why we chose Elixir
After some time debating which technologies we should use, we decided to go with Elixir and Phoenix. In short, these tools gave us the productivity, stability, safety, and scalability (the company was planning on opening up the application to the public, with a new API added to the mix, so future performance was a bit of a concern) that seemed appropriate for the company's plans.
-
A RAG for Elixir
For testing purposes we will use our RAG system on a popular open source Elixir package, the Phoenix Framework.
-
(Unofficial) Getting Started with Elixir Phoenix Guide
Hey, this guide is meant to be a recreation of the Getting Started with Rails Guide, but for Elixir Phoenix. I very intentionally poach their words for sections when applicable. All true credit goes to the writer of that Rails guide. Thank you for creating such an awesome guide.
-
Why, after 6 years, I'm over GraphQL
> I seem to recall Meta/Facebook engineers on HN having said they have a tool that allows engineers to author SQL or ORM-like queries on the frontend and close to where the data is used, but a compiler or post-processor turns that into an endpoint.
I don't know about on-HackerNews but there's a discussion about their "all of Facebook optimizing compiler" infrastructure from when they did the site redesign in 2020: https://engineering.fb.com/2020/05/08/web/facebook-redesign/...
> perhaps not coincidentally, React introduced "server actions" as a mechanism that is very similar to [the above]
Yep - there's also the Scala framework LiftWeb (https://www.liftweb.net/), the Elixir framework Phoenix (https://www.phoenixframework.org/) and of course the system we're using right now (Arc) that do similar things. Scaling these kinds of UUID-addressed-closures is harder (because the client sessions have to be sticky unless you can serialize closures and send them across the network between servers).
What are some alternatives?
turbo - The speed of a single-page web application without having to write any JavaScript
sugar - Modular web framework for Elixir
turbo - Build system optimized for JavaScript and TypeScript, written in Rust [Moved to: https://github.com/vercel/turborepo]
Django - The Web framework for perfectionists with deadlines.
solid - A declarative, efficient, and flexible JavaScript library for building user interfaces. [Moved to: https://github.com/solidui/solid]
trot - An Elixir web micro-framework.