# rehypejs/rehype

HTML processor powered by plugins part of the @unifiedjs collective

Repository: https://github.com/rehypejs/rehype
Canonical: https://ross.abutalabs.com/products/rehype
Homepage: https://unifiedjs.com
Language: JavaScript
License: MIT
License Family: permissive
Topics: ast, javascript, html, rehype, unified
Last push: 2026-06-13T11:25:56+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 87, release rhythm 8, longevity 100
- inputs: {"age_days": 3842, "days_push": 81, "days_rel": 705, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2250, forks 93 (observed 2026-08-28T04:06:30.313420+00:00)

## What it is
rehype is an HTML processor powered by plugins, part of the unified collective, that parses HTML into an AST (hast) so plugins can inspect and transform it before serializing back to HTML. It runs on the server, client, CLIs, and Deno, and anchors a large ecosystem of HTML-processing plugins.

## Use cases
- minify html in a build pipeline
- sanitize or transform html content
- parse html into an ast in javascript
- rewrite html tags programmatically
- process markdown to html with unified
- build custom html transformation plugins

## When to choose
- you need programmatic, plugin-based HTML transformation in JavaScript
- you are already in the unified/remark ecosystem (e.g. markdown-to-HTML pipelines)
- you want to run HTML processing on server, client, or CLI

## When to avoid
- you only need simple regex-free string manipulation without AST overhead
- you need a full browser DOM implementation rather than a lightweight AST
- your stack is not JavaScript/Node-based

## Facets
- artifact type: library
- maturity: active
- function: parser, templating, middleware, plugin-system, serialization
- domain: web-development, frontend, developer-tools, parsers
- platform: browser, cli, cross-platform
- tags: html-processing, ast, unified-ecosystem, html-minification, hast, nodejs, deno

## Member repositories
- rehypejs/rehype (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:30.313420+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-30T02:43:52.716301+00:00, confidence not recorded.
  - readme: https://github.com/rehypejs/rehype (fetched 2026-08-28T04:06:30.313420+00:00, sha 8594dab2e958)
  - homepage: https://unifiedjs.com (fetched 2026-08-29T10:24:09.697663+00:00, sha 0359e5fdf9c6)
  - site_page: https://unifiedjs.com/explore/release (fetched 2026-08-29T10:24:09.700442+00:00, sha 34c5baf82537)
- Data as of 2026-08-30T08:39:29.467469+00:00.
