Wilfred

    Wilfred/difftastic

    a structural diff that understands syntax πŸŸ₯🟩

    26.2K stars
    534 forks
    65 GitHub watchers
    Updated Nov 6, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    2 releases in the last 90 days, the latest 8 days ago, with 368 contributors on GitHub.

    Peaked at #30 in the weekly ranking the week of Mar 22, its best in the past year.

    Use Cases & Benefits

    • Provides a structural diff tool that compares files based on their syntax using tree-sitter parsers.
    • Delivers more accurate diffs by understanding code structure, nesting, and syntax rather than just text differences.
    • Use for reviewing code changes in over 30 programming languages with syntax-aware highlighting.
    • Use for analyzing merge conflicts by parsing conflict markers and showing differences between conflicting versions.
    • Use for syntactic change detection without diffing to quickly check if two files have identical abstract syntax trees.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Difftastic is a structural diff tool that compares files based on their syntax.

    For installation instructions, see Installation in the manual.

    (1) Difftastic understands nesting. It highlights the matching { and }, but understands that foo() hasn't changed despite the leading whitespace.

    (2) Difftastic understands which lines should be aligned. It's aligned bar(1) on the left with bar(2) on the right, even though the textual content isn't identical.

    (3) Difftastic understands that line-wrapping isn't meaningful. "eric" is now on a new line, but it hasn't changed.

    This one minute screencast demonstrates difftastic usage with both standalone files and git.

    Excerpt from the Wilfred/difftastic README on GitHub (MIT license). Β© its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    534+32

    Open issues

    285-4

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    Wilfred/difftastic compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills192.3K+5.2K75β€”
    zed-industries/zed94.7K+2.3K756 days ago
    google/skills23.8K+2.0K75β€”
    NationalSecurityAgency/ghidra99.4K+1.8K7519 days ago
    DuarteSantos8/openGym20.8K+1.7K757 days ago
    Wilfred/difftastic26.2Kβ€”558 days ago
    Category median94.7K+2.0K75β€”

    Discover Repositories

    Search across tracked repositories by name or description