Stack Gems
Menu
← Catalog

Difftastic

MIT structural/AST diff that understands syntax

Rust / Terminal · OSS/MIT · 26k

Reviewed 2026-09-13 · last push 2026-10-16 · repo checked 2026-10-19

What's Good

MIT. Wilfred/difftastic (`difft`). tree-sitter structural compare: ignore formatting-only churn, match delimiters, real line numbers. Git-configurable as an external diff. Homepage difftastic.wilfred.me.uk; source github.com/Wilfred/difftastic.

The Catch

Vs delta (syntax-highlight *pager* for git diffs): difftastic is a *structural AST diff*, not a pretty pager over unified diff. Unsupported or huge files fall back to line-oriented. Language coverage is wide but not infinite — unknown formats lose the AST trick.

Verdict

MIT structural diff. Free forever; use when the AST changed, not just the whitespace.

Embed

Maintainer? Add the badge to your README. It is free, links to this review, and there is no paid version.

Reviewed on Stack Gems

Markdown

[![Reviewed on Stack Gems](https://stackgems.com/badge/difftastic.svg)](https://stackgems.com/gems/difftastic)

HTML

<a href="https://stackgems.com/gems/difftastic"><img src="https://stackgems.com/badge/difftastic.svg" alt="Difftastic reviewed on Stack Gems" height="20"></a>

Related

Rust →