# bigskysoftware/idiomorph

A DOM-merging algorithm

Repository: https://github.com/bigskysoftware/idiomorph
Canonical: https://ross.abutalabs.com/products/idiomorph
Language: HTML
License: NOASSERTION
License Family: other
Last push: 2026-08-26T12:19:25+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 38, longevity 100
- inputs: {"age_days": 1470, "days_push": 7, "days_rel": 338, "gap_med": 36.0, "n_releases_24m": 5}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1133, forks 57 (observed 2026-08-28T04:03:42.838531+00:00)

## What it is
Idiomorph is a small, dependency-free JavaScript library for morphing one DOM tree into another while preserving element state like focus. It uses id sets to match elements structurally, improving on id-only morphing approaches used by morphdom and nanomorph.

## Use cases
- morph dom trees in place without losing focus or state
- update page content incrementally in a hotwire/turbo app
- preserve dom elements during html swaps in htmx
- diff and patch html fragments client-side
- smooth dom transitions when server renders new html

## When to choose
- you need dom morphing that matches elements based on child structure, not just ids
- you want a tiny, dependency-free library usable via script tag or ESM
- you use Turbo 8 or htmx and want official-grade morphing support

## When to avoid
- you need a full virtual-dom or reactive rendering framework
- your updates are simple full-element replacements where morphing is unnecessary

## Facets
- artifact type: library
- maturity: active
- function: ui-components, frontend-framework
- domain: web-development, frontend
- platform: browser
- tags: dom-morphing, dom-diffing, htmx-ecosystem, dependency-free, turbo, nodejs

## Member repositories
- bigskysoftware/idiomorph (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:42.838531+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:37:24.917132+00:00, confidence not recorded.
  - readme: https://github.com/bigskysoftware/idiomorph (fetched 2026-08-28T04:03:42.838531+00:00, sha bf7ccd8f6799)
- Data as of 2026-08-30T08:39:29.467469+00:00.
