rtfpessoa/diff2html
Pretty diff to html javascript library (diff2html) observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 81
- Release rhythm 31
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4386
- days_rel: 244
- days_push: 117
- n_releases_24m: 1
Adoption not part of the score
3398 stars · 301 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
diff2html is a JavaScript/TypeScript library that parses git or unified diff output and generates pretty, GitHub-style HTML diffs with line-by-line and side-by-side views, syntax highlighting, and line similarity matching. It ships as an npm library, a browser bundle, and a companion CLI (diff2html-cli) for viewing diffs in the terminal-to-browser workflow.
Use cases
- render git diffs as pretty html in a web app
- display side-by-side code changes in code review tooling
- view unified diff files with syntax highlighting in the browser
- show diff output from a git client or git gui
- preview build or snapshot diffs in ci tools
- convert diff text to colorized html from node.js
When to choose
- you need to visualize git or unified diffs as HTML in a browser or Node.js app
- you want GitHub-like diff rendering with syntax highlighting out of the box
- you need both line-by-line and side-by-side diff views
- you're building a code review, git client, or diff-sharing tool in JavaScript
When to avoid
- you need to compute or generate diffs from scratch rather than render existing diff text
- you need server-side rendering in a non-JavaScript stack
- you need a full diff/merge editor with interactive editing of changes
- you work with very large diffs where memory usage is a concern
Facets
library · maturity active
parser templating developer-tools developer-tools version-control web-development frontend browser cli cross-platform diff-viewer unified-diff git-diff syntax-highlighting code-review html-generation typescript nodejs
2 sources
- readme: https://github.com/rtfpessoa/diff2html · fetched 2026-08-28 · a5bfd85be26f
- homepage: https://diff2html.xyz · fetched 2026-08-29 · 846f70fc1787
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rtfpessoa/diff2html | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="rtfpessoa/diff2html")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem