# afnanenayet/diffsitter

A tree-sitter based AST difftool to get meaningful semantic diffs

Repository: https://github.com/afnanenayet/diffsitter
Canonical: https://ross.abutalabs.com/products/diffsitter
Language: Rust
License: MIT
License Family: permissive
Topics: diff, ast, rust, tree-sitter, parser
Last push: 2026-08-26T05:33:59+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 2257, "days_push": 7, "days_rel": 493, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2395, forks 53 (observed 2026-08-28T04:06:43.526758+00:00)

## What it is
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
- artifact type: cli-tool
- maturity: experimental
- function: parser, developer-tools, cli
- domain: developer-tools, version-control
- platform: windows, cli, rust
- tags: diff, ast, tree-sitter, semantic-diff, code-review, command-line, linux, macos

## Member repositories
- afnanenayet/diffsitter (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:43.526758+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:34:22.694111+00:00, confidence not recorded.
  - readme: https://github.com/afnanenayet/diffsitter (fetched 2026-08-28T04:06:43.526758+00:00, sha 03aa36591ff2)
  - registry_crates: https://crates.io/api/v1/crates/diffsitter (fetched 2026-08-29T10:14:50.086112+00:00, sha 7e6cbb12da0c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
