Graphtage CLI
Graphtage compares JSON, YAML and other tree-shaped data structurally, separating value changes from formatting differences.
Install
Other ways to install
Access and checks
How we reviewExtended access. The tool runs code or makes network calls and only reads external data.
- The CLI parses local files; external-diff integration changes Git’s diff display.
This is third-party code. Review the repository files before installing.
What it does
Graphtage compares structured files as data trees, matching object and list elements to show insertions, deletions and replacements. This helps inspect configuration changes obscured by line-oriented diffs. Inputs may use different formats, and output formatting is selectable. A separate driver integrates with Git. Agents can report meaningful changes without relying on source-line order.
Who it is for. Configuration and API-data maintainers reviewing changes in large JSON or YAML files.
Good fit when
- Reformatting or line reordering obscures value changes.
- Two data versions use different serialization formats.
- Git needs a structured-file diff driver.
- Review requires a concise list of tree edits.
Not a fit when
- You need byte-for-byte equality including whitespace and key order.
- The input format is unsupported and cannot be parsed explicitly.
- Every nonzero exit must mean a tool failure.
Example request
Compare this JSON and YAML with Graphtage and list value changes without rewriting inputs.Limitations
Python 3.10 or later is required; check the interpreter used to install the package. File extensions determine type by default, so specify formats explicitly for unusual filenames. Output sorts object keys alphabetically and does not preserve their original placement. Exit code 1 indicates differences, while 2 indicates a parsing or diff-computation error; CI must distinguish these outcomes rather than treating every nonzero status identically.
How to disable. Remove Git external-diff configuration if installed, then uninstall the package. Input files need no changes.
FAQ
Can I compare JSON to YAML?
Yes. Both use a shared tree representation; specify input formats when needed.
Why did key order change?
Output sorts object keys alphabetically. Review values separately from original ordering.
What does exit 1 mean?
The data differs. Exit 2 is an error; reflect the distinction in CI.
How do I parse JSON in a txt file?
Use `--from-json` for the first input file or `--to-json` for the second. These flags select JSON regardless of the filename extension.
What is installed for Git?
`graphtage-git-diff`. Configure selected file types and test a small example.
Is Graphtage safe to install?
Extended access. The tool runs code or makes network calls and only reads external data.
Discussion
No questions or reviews yet.
README in short
Output can be condensed or limited to edits. Supported formats also include JSON5, XML, TOML and others.