posthtml/posthtml
PostHTML is a tool to transform HTML/XML with JS plugins observed · 2026-08-28
Health v2 · maintenance only
47/100
- Activity 45
- Release rhythm 20
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4088
- days_rel: 323
- days_push: 330
- n_releases_24m: 1
Adoption not part of the score
2959 stars · 112 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
PostHTML is a small JavaScript library for transforming HTML/XML via a plugin ecosystem. It provides an HTML parser, a node tree API, and a stringifier, with all transformations performed by plain JS plugin functions.
Use cases
- transform html with javascript plugins
- parse html into a node tree and manipulate it
- convert custom elements to standard html tags
- process html templates in a build pipeline
- transform html to svg markup
- post-process generated html files
When to choose
- you need programmatic HTML/XML transformation in Node.js
- you want a lightweight, plugin-based HTML processor similar to PostCSS for CSS
- you are integrating HTML transforms into a Gulp, webpack, or CLI build step
When to avoid
- you need a full DOM implementation with CSS selectors and events
- you are scraping or parsing untrusted real-world web pages where a robust DOM library like cheerio fits better
- you need a complete static site generator or templating engine out of the box
Facets
library · maturity stable
parser templating middleware web-development frontend parsers developer-tools html-parser xml-parser postprocessor plugin-system html-transformer build-pipeline nodejs javascript
2 sources
- readme: https://github.com/posthtml/posthtml · fetched 2026-08-28 · c2d30b45561d
- registry_npm: https://registry.npmjs.org/posthtml · fetched 2026-08-29 · 173ebd7a01e5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| posthtml/posthtml | main | 47 |
For agents
markdown · JSON · MCP: product_card(name="posthtml/posthtml")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem