afnanenayet/diffsitter
A tree-sitter based AST difftool to get meaningful semantic diffs observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 99
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2257
- days_rel: 493
- days_push: 7
- n_releases_24m: 1
Adoption not part of the score
2395 stars · 53 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
diffsitter is a Rust CLI diff tool that computes diffs on the abstract syntax tree of source files using tree-sitter parsers, producing semantically meaningful output that ignores formatting differences like spacing. It supports languages such as Rust, Python, Go, Java, C++, TypeScript, and others covered by tree-sitter.
Use cases
- compare two source files ignoring whitespace and formatting changes
- get semantic diffs for code reviews instead of noisy text diffs
- diff refactored code where functions were reformatted
- filter which AST nodes are considered in a diff via config
- diff code in languages supported by tree-sitter
When to choose
- you want diffs based on code structure rather than raw text
- formatting-only changes are polluting your diffs
- your language is among the supported tree-sitter grammars
When to avoid
- you need a production-ready, battle-tested diff tool
- your language is not supported by tree-sitter
- you need diffing of non-source files like plain text or data files
Facets
cli-tool · maturity experimental
parser developer-tools cli developer-tools version-control windows cli rust diff ast tree-sitter semantic-diff code-review command-line linux macos
2 sources
- readme: https://github.com/afnanenayet/diffsitter · fetched 2026-08-28 · 03aa36591ff2
- registry_crates: https://crates.io/api/v1/crates/diffsitter · fetched 2026-08-29 · 7e6cbb12da0c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| afnanenayet/diffsitter | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="afnanenayet/diffsitter")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem