{"adoption": {"forks": 301, "observed_at": "2026-08-28T04:08:02.651733+00:00", "stars": 3398}, "canonical_url": "https://ross.abutalabs.com/products/diff2html", "card": {"archived": false, "artifact_type": "library", "description": "Pretty diff to html javascript library (diff2html)", "domain": ["developer-tools", "version-control", "web-development", "frontend"], "enriched": true, "function": ["parser", "templating", "developer-tools"], "health_score": 85, "homepage": "https://diff2html.xyz", "language": "TypeScript", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["rtfpessoa/diff2html"], "name": "rtfpessoa/diff2html", "platform": ["browser", "cli", "cross-platform"], "pushed_at": "2026-05-08T22:05:30+00:00", "repo": "rtfpessoa/diff2html", "stars": 3398, "tags": ["diff-viewer", "unified-diff", "git-diff", "syntax-highlighting", "code-review", "html-generation", "typescript", "nodejs"], "topics": ["diff", "parser", "pretty", "git", "html", "syntax-highlighting", "diff2html", "unified-diffs", "colorized", "typescript", "javascript", "hacktoberfest"], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/diff2html", "repo": "rtfpessoa/diff2html", "role": "main", "score": 67}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:08:02.651733+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:38:47.598308+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a5bfd85be26fd48031597ed2ec649f733625a7f4c822524884f7f713b16e9665", "fetched_at": "2026-08-28T04:08:02.651733+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rtfpessoa/diff2html"}, {"content_hash": "846f70fc178754202bf4df122ca53e1690fb04907e7e09ab232af0973c2a2806", "fetched_at": "2026-08-29T09:32:55.458181+00:00", "kind": "homepage", "missing": false, "url": "https://diff2html.xyz"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:08:02.651733+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:38:47.598308+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a5bfd85be26fd48031597ed2ec649f733625a7f4c822524884f7f713b16e9665", "fetched_at": "2026-08-28T04:08:02.651733+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rtfpessoa/diff2html"}, {"content_hash": "846f70fc178754202bf4df122ca53e1690fb04907e7e09ab232af0973c2a2806", "fetched_at": "2026-08-29T09:32:55.458181+00:00", "kind": "homepage", "missing": false, "url": "https://diff2html.xyz"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:38:47.598308+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a5bfd85be26fd48031597ed2ec649f733625a7f4c822524884f7f713b16e9665", "fetched_at": "2026-08-28T04:08:02.651733+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rtfpessoa/diff2html"}, {"content_hash": "846f70fc178754202bf4df122ca53e1690fb04907e7e09ab232af0973c2a2806", "fetched_at": "2026-08-29T09:32:55.458181+00:00", "kind": "homepage", "missing": false, "url": "https://diff2html.xyz"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:08:02.651733+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:08:02.651733+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:08:02.651733+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:38:47.598308+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a5bfd85be26fd48031597ed2ec649f733625a7f4c822524884f7f713b16e9665", "fetched_at": "2026-08-28T04:08:02.651733+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rtfpessoa/diff2html"}, {"content_hash": "846f70fc178754202bf4df122ca53e1690fb04907e7e09ab232af0973c2a2806", "fetched_at": "2026-08-29T09:32:55.458181+00:00", "kind": "homepage", "missing": false, "url": "https://diff2html.xyz"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:08:02.651733+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:08:02.651733+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:38:47.598308+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a5bfd85be26fd48031597ed2ec649f733625a7f4c822524884f7f713b16e9665", "fetched_at": "2026-08-28T04:08:02.651733+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rtfpessoa/diff2html"}, {"content_hash": "846f70fc178754202bf4df122ca53e1690fb04907e7e09ab232af0973c2a2806", "fetched_at": "2026-08-29T09:32:55.458181+00:00", "kind": "homepage", "missing": false, "url": "https://diff2html.xyz"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:08:02.651733+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:08:02.651733+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:08:02.651733+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:38:47.598308+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a5bfd85be26fd48031597ed2ec649f733625a7f4c822524884f7f713b16e9665", "fetched_at": "2026-08-28T04:08:02.651733+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rtfpessoa/diff2html"}, {"content_hash": "846f70fc178754202bf4df122ca53e1690fb04907e7e09ab232af0973c2a2806", "fetched_at": "2026-08-29T09:32:55.458181+00:00", "kind": "homepage", "missing": false, "url": "https://diff2html.xyz"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:08:02.651733+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:08:02.651733+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:38:47.598308+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a5bfd85be26fd48031597ed2ec649f733625a7f4c822524884f7f713b16e9665", "fetched_at": "2026-08-28T04:08:02.651733+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rtfpessoa/diff2html"}, {"content_hash": "846f70fc178754202bf4df122ca53e1690fb04907e7e09ab232af0973c2a2806", "fetched_at": "2026-08-29T09:32:55.458181+00:00", "kind": "homepage", "missing": false, "url": "https://diff2html.xyz"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:38:47.598308+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a5bfd85be26fd48031597ed2ec649f733625a7f4c822524884f7f713b16e9665", "fetched_at": "2026-08-28T04:08:02.651733+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rtfpessoa/diff2html"}, {"content_hash": "846f70fc178754202bf4df122ca53e1690fb04907e7e09ab232af0973c2a2806", "fetched_at": "2026-08-29T09:32:55.458181+00:00", "kind": "homepage", "missing": false, "url": "https://diff2html.xyz"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:38:47.598308+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a5bfd85be26fd48031597ed2ec649f733625a7f4c822524884f7f713b16e9665", "fetched_at": "2026-08-28T04:08:02.651733+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rtfpessoa/diff2html"}, {"content_hash": "846f70fc178754202bf4df122ca53e1690fb04907e7e09ab232af0973c2a2806", "fetched_at": "2026-08-29T09:32:55.458181+00:00", "kind": "homepage", "missing": false, "url": "https://diff2html.xyz"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:38:47.598308+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "a5bfd85be26fd48031597ed2ec649f733625a7f4c822524884f7f713b16e9665", "fetched_at": "2026-08-28T04:08:02.651733+00:00", "kind": "readme", "missing": false, "url": "https://github.com/rtfpessoa/diff2html"}, {"content_hash": "846f70fc178754202bf4df122ca53e1690fb04907e7e09ab232af0973c2a2806", "fetched_at": "2026-08-29T09:32:55.458181+00:00", "kind": "homepage", "missing": false, "url": "https://diff2html.xyz"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 81, "longevity": 100, "rhythm": 31}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4386, "days_push": 117, "days_rel": 244, "gap_med": null, "n_releases_24m": 1}, "score": 67, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}