# snabbdom/snabbdom

A virtual DOM library with focus on simplicity, modularity, powerful features and performance.

Repository: https://github.com/snabbdom/snabbdom
Canonical: https://ross.abutalabs.com/products/snabbdom
Language: TypeScript
License: MIT
License Family: permissive
Topics: virtual-dom-library, snabbdom, hacktoberfest
Last push: 2026-06-17T11:11:26+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 57, longevity 100
- inputs: {"age_days": 4134, "days_push": 77, "days_rel": 77, "gap_med": 259, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12397, forks 1112 (observed 2026-08-28T04:10:52.599066+00:00)

## What it is
Snabbdom is a virtual DOM library for JavaScript/TypeScript with a tiny (~200 SLOC) modular core and extensible module system. It provides fast diffing and patching of virtual nodes with hooks, SVG support, event listeners, and animation modules.

## Use cases
- build a custom frontend framework with a fast virtual DOM
- efficiently patch the DOM from application state changes
- add reactive view rendering to an existing app without a full framework
- implement a component library with fine-grained DOM update control
- integrate virtual DOM rendering with an FRP or state management library
- render SVG elements declaratively

## When to choose
- you want a minimal, performant virtual DOM core you can build on
- you need modular extensibility via hooks and custom modules
- bundle size and patch performance are critical
- you're building your own framework or rendering layer

## When to avoid
- you want a batteries-included framework with routing, state, and components out of the box
- you prefer declarative templates/JSX tooling maintained for you
- your team needs a large ecosystem and community tooling

## Facets
- artifact type: library
- maturity: stable
- function: frontend-framework, ui-components, templating
- domain: web-development, frontend
- platform: browser, cross-platform
- tags: virtual-dom, vdom, diffing, patching, typescript, modular, nodejs

## Member repositories
- snabbdom/snabbdom (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:52.599066+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-29T17:14:07.014245+00:00, confidence not recorded.
  - readme: https://github.com/snabbdom/snabbdom (fetched 2026-08-28T04:10:52.599066+00:00, sha a1dd1f2c7d03)
  - registry_npm: https://registry.npmjs.org/snabbdom (fetched 2026-08-29T08:11:22.455419+00:00, sha c72dd6f6c619)
- Data as of 2026-08-30T08:39:29.467469+00:00.
