{"repo":"gustavovalverde/h2m-parser","free":true,"listed":false,"github":"https://github.com/gustavovalverde/h2m-parser","clone":"git clone https://github.com/gustavovalverde/h2m-parser.git","description":"Fast HTML to Markdown converter with Mozilla Readability extraction, streaming renderer, and LLM-ready output. 4x times faster than famous alternatives","language":"TypeScript","stars":12,"topics":["converter","fastest","gtm","html","html-to-markdown","llm","llm-txt","llms","markdown","parser"],"license":"MIT","category":"ai-agents","readme_excerpt":"h2m-parser LLM-friendly HTML → Markdown parser with Readability extraction, a streaming renderer, and opinionated post-processing. Why h2m-parser? - Article aware – runs Mozilla Readability atop Linkedom for fast, script-free DOM extraction. - Deterministic Markdown – single-pass htmlparser2 renderer with stable spacing, link styling, figures, and GFM-friendly tables. - Built for pipelines – YAML front matter, optional chunking, content hashing, and NDJSON transform helpers. - Customisable – per-tag translators, ignore/block lists, regex replacements, and telemetry hooks. - DX-first – TypeScript types, Biome lint/format, Vitest coverage, tsup dual outputs, Changesets releases. Requirements - Node.js 20.11 or newer. Installation Quick Start Minimal conversion End-to-end pipeline with Readability CLI Pipeline overview 1. Extract – normalise HTML with Linkedom + Readability (configurable figure retention, URL resolution, tracking-parameter stripping, data URI policy). 2. Convert – stream nodes through the htmlparser2-based renderer (custom translators, footnotes, reference links, table handling). 3. Post-process – add optional front matter, hash, chunking, and attach telemetry for observability. Configuration highlights Benchmarks Performance Runtime ranking (lower is better): 1. mdream — 1.571ms 2. h2m-parser — 1.793ms 3. Turndown — 7.181ms 4. node-html-markdown — 132.565ms 📊 Benchmark Results (click to expand) Benchmark Methodology - Dataset: 95 files (5 synthetic + 90 real H","default_branch":null,"files":null,"tree":[],"storefront":"/r/gustavovalverde","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gustavovalverde/h2m-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}