awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
rtfpessoa avatar

rtfpessoa/diff2html

0
View on GitHub↗
3,321 stars·297 forks·TypeScript·mit·19 viewsdiff2html.xyz↗

Diff2html

diff2html is a Git diff visualization library that transforms unified diff text into structured HTML. It serves as a renderer for visualizing code changes in web browsers, providing components to inject stylized diff visualizations and collapsible file lists directly into web page elements.

The library enables both side-by-side and line-by-line code comparisons. It includes a syntax highlighting diff viewer that applies language-specific color coding to source code based on file extensions or manual mappings.

To maintain alignment during reviews, the project implements synchronized scrolling to lock the vertical positions of side-by-side diff panes. It utilizes a template-driven approach to generate consistent markup and an abstract object model to parse raw diff data for structural manipulation.

Features

  • Git Diff Viewers - Transforms git or unified diff text into structured HTML for human review of code changes.
  • Diff Data Parsers - Converts raw text-based diffs into an abstract object model to enable structural manipulation and rendering.
  • Programmatic Diff Parsers - Provides a utility to parse raw unified diff text into a structured object model for programmatic analysis.
  • Side-by-Side Diff Viewers - Renders file differences in the browser using side-by-side layouts and synchronized scrolling.
  • Code Diff Visualizers - Applies syntax highlighting to code within diffs using file extensions or manual language mappings.
  • Diff UI Components - Injects stylized diff visualizations into web pages with collapsible file lists and sticky headers.
  • Diff DOM Injectors - Injects stylized diff visualizations and collapsible file lists directly into web page elements.
  • Code-to-HTML Rendering - Transforms unified diff text into styled HTML structures for visual representation in web browsers.
  • Scroll Synchronization - Synchronizes the scrolling of side-by-side diff panes to keep corresponding lines aligned.
  • Synchronized Scroll Containers - Locks the vertical scroll positions of side-by-side diff panes to keep corresponding code lines aligned.
  • Diff - Applies language-specific color coding to source code within rendered difference blocks.
  • Unified Diff Reviewers - Provides a unified diff review interface for humans to easily examine code changes via HTML.
  • File Extension Language Mappings - Determines syntax highlighting rules by matching file extensions against a predefined language map.
  • Developer Tooling UI Components - Provides UI components specifically designed for developer-facing version control and diff tooling.
  • Diff Change Styling - Implements CSS-based styling to visually differentiate added and deleted lines in the diff view.
  • DOM-Based Rendering - Generates a structured HTML hierarchy that mirrors diff data for direct injection into the browser DOM.
  • HTML Templating Engines - Uses a template-driven approach to generate consistent HTML markup for different diff viewing modes.
  • File Processing - Git diff parser and HTML beautifier.
  • File Utilities - Git diff parser and HTML generator.

Star history

Star history chart for rtfpessoa/diff2htmlStar history chart for rtfpessoa/diff2html

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Diff2html

These projects share indexed features with Diff2html. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • sinelaw/freshsinelaw avatar

    sinelaw/fresh

    5,914View on GitHub↗

    Zed is a terminal-based code editor built in Rust that provides a full-featured editing experience with familiar keybindings, mouse support, and multiple cursors. It runs entirely in the terminal while offering capabilities typically found in graphical editors, including split panes, a command palette, and integrated language server protocol support for real-time diagnostics, completions, go-to-definition, and code actions across multiple languages. The editor distinguishes itself through a plugin system that runs sandboxed TypeScript plugins in a QuickJS runtime, with an asynchronous bridge

    Rustideterminal-basedtext-editor
    View on GitHub↗5,914
  • banga/git-split-diffsbanga avatar

    banga/git-split-diffs

    2,737View on GitHub↗

    Git-split-diffs is a command-line utility that renders version control changes as side-by-side, syntax-highlighted diffs directly within the terminal. It functions as a visualization engine that processes raw output from version control systems to improve the readability of code changes during terminal-based reviews. The tool distinguishes itself through a responsive layout engine that automatically toggles between dual-pane and unified views based on the available terminal width. It incorporates a regex-based tokenization system to apply language-specific syntax highlighting and supports use

    TypeScriptdiffsdifftoolgit
    View on GitHub↗2,737
  • dandavison/deltadandavison avatar

    dandavison/delta

    31,136View on GitHub↗

    Delta is a command-line pager that enhances the readability of terminal output by applying syntax highlighting and structured formatting to text streams. It functions as a specialized interface for version control systems, transforming standard output into color-coded, human-readable views. The tool distinguishes itself through its ability to render side-by-side diff comparisons and visualize merge conflicts with clear, semantic highlighting. It dynamically calculates column widths and text alignment to fit complex file comparisons within the constraints of a terminal window, while allowing u

    Rustcolor-themesdeltadiff
    View on GitHub↗31,136
  • neogitorg/neogitNeogitOrg avatar

    NeogitOrg/neogit

    5,442View on GitHub↗

    Neogit is a visual Git version control client designed for managing repositories through staging, committing, pushing, and merging. It provides a suite of tools for inspecting code differences, visualizing commit history via a graphical branch tree, and automating event-based workflows. The project features a workflow automation system that triggers custom logic and notifications based on repository events, such as branch creation or pushes. It also includes utilities for generating direct deep-links to commits, pull requests, and file structures on remote version control hosting providers.

    Luagitluaneovim
    View on GitHub↗5,442
Compare all 30 related projects→

Frequently asked questions

What does rtfpessoa/diff2html do?

diff2html is a Git diff visualization library that transforms unified diff text into structured HTML. It serves as a renderer for visualizing code changes in web browsers, providing components to inject stylized diff visualizations and collapsible file lists directly into web page elements.

What are the main features of rtfpessoa/diff2html?

The main features of rtfpessoa/diff2html are: Git Diff Viewers, Diff Data Parsers, Programmatic Diff Parsers, Side-by-Side Diff Viewers, Code Diff Visualizers, Diff UI Components, Diff DOM Injectors, Code-to-HTML Rendering.

Which projects share features with rtfpessoa/diff2html?

Projects with overlapping indexed features include: sinelaw/fresh — Zed is a terminal-based code editor built in Rust that provides a full-featured editing experience with familiar… banga/git-split-diffs — Git-split-diffs is a command-line utility that renders version control changes as side-by-side, syntax-highlighted… dandavison/delta — Delta is a command-line pager that enhances the readability of terminal output by applying syntax highlighting and… neogitorg/neogit — Neogit is a visual Git version control client designed for managing repositories through staging, committing, pushing,… pujiaxin33/jxcategoryview — JXCategoryView is a set of iOS user interface components for creating scrollable tab menus and paging containers. It… sourcegit-scm/sourcegit — SourceGit is a cross-platform desktop Git GUI client and version control tool compatible with Windows, macOS, and…