Fast and lightweight DOM diffing/patching (no virtual DOM needed) (by patrick-steele-idem)

Morphdom Alternatives

Similar projects and alternatives to morphdom

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better morphdom alternative or higher similarity.

morphdom reviews and mentions

Posts with mentions or reviews of morphdom. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-16.
  • The Ultimate Search for Rails - Episode 1
    8 projects | | 16 Jan 2023
    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
    2 projects | | 21 Dec 2022
    It's super simple actually. And that is in large part to (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
    3 projects | | 23 Nov 2022
    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
    4 projects | | 9 Oct 2022
    using HTML-diffing libraries like morphdom to efficiently update elements on the page
  • ssceng demo: Hacker News Client
    2 projects | /r/golang | 6 Oct 2021
    It tries to morph into existing DOM (with 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
    3 projects | | 28 Aug 2021
    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.
  • Why Virtual DOM is considered faster that directly updating the real DOM.
    3 projects | /r/reactjs | 10 Apr 2021
    Updating the DOM is not slow. In fact, there are libraries and frameworks that emphatically reject the virtual dom approach. morphdom is one such example of a DOM modification library. Svelte's author Rich Harris has been proclaiming for a while that virtual dom is an overhead (see e.g. this article). Google's lit-html and lit-element do much of what react does without the virtual dom.
  • HTML over-the-wire is the future of Web Development
    11 projects | | 4 Apr 2021
    Sockpuppet is a new way to craft modern, reactive web interfaces with Django. It extends the capabilities of both Django and Stimulus by intercepting user interactions and passing them to Django over real-time websockets. These interactions are processed by Reflex actions that change application state. The current page is quickly re-rendered and the changes are sent to the client. The page is then updated using a fast and lightweight DOM diffing/patching library called morphdom to reflect the new application state. This entire round-trip allows us to update the UI in 20-30ms without flicker or expensive page loads.
  • StimulusReflex, or LiveView for Rails
    3 projects | | 15 Jan 2021
    in one word: morphdom (

    also, StimulusReflex predates Hotwire for 1 year and is already pretty hardened :-)

  • A note from our sponsor - Onboard AI | 29 Nov 2023
    Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at Learn more →


Basic morphdom repo stats
22 days ago

patrick-steele-idem/morphdom is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of morphdom is JavaScript.

Learn any GitHub repo in 59 seconds
Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at