# developit/htm

Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.

Repository: https://github.com/developit/htm
Canonical: https://ross.abutalabs.com/products/htm
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: jsx, babel, babel-plugin, tagged-template, virtual-dom
Last push: 2024-02-01T21:36:52+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2956, "days_push": 944, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9044, forks 181 (observed 2026-08-28T04:10:28.104302+00:00)

## What it is
HTM (Hyperscript Tagged Markup) is a tiny JavaScript library that provides JSX-like syntax using standard tagged template literals, requiring no transpiler. It binds to any hyperscript-style h() function, with off-the-shelf bindings for React and Preact and a Babel plugin that compiles it away for production.

## Use cases
- write JSX-like components without a build step
- use React or Preact directly in the browser
- reduce bundle size by compiling template syntax away
- prototype UI components with no tooling
- use JSX-style syntax in environments without transpilers

## When to choose
- you want JSX ergonomics without a build pipeline
- you use Preact or React and want a tiny syntax layer
- you need to run component code directly in modern browsers
- bundle size is critical

## When to avoid
- you already have a full JSX/Babel toolchain
- you need full JSX ecosystem tooling and type checking
- you use a framework without a hyperscript-style createElement

## Facets
- artifact type: library
- maturity: stable
- function: templating, frontend-framework, ui-components
- domain: web-development, frontend
- platform: browser
- tags: jsx-alternative, tagged-templates, hyperscript, virtual-dom, preact, react, babel-plugin, no-transpiler, nodejs, javascript

## Member repositories
- developit/htm (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:28.104302+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:24:04.034510+00:00, confidence not recorded.
  - readme: https://github.com/developit/htm (fetched 2026-08-28T04:10:28.104302+00:00, sha f923f2138af1)
  - registry_npm: https://registry.npmjs.org/htm (fetched 2026-08-29T08:24:21.612589+00:00, sha baf221bb8f93)
- Data as of 2026-08-30T08:39:29.467469+00:00.
