Selection of utilities

diffyml – structural YAML diff tool

diffyml compares YAML documents according to their structure rather than their physical line layout. It is aimed at configuration data, Kubernetes manifests and CI workflows where changes to ordering or formatting can make an ordinary textual diff unnecessarily noisy.

It can compare individual files, remote documents and directory trees, and includes specialised handling for Kubernetes resources. The command is also suitable for automated environments through machine-readable output, exit codes and CI-specific annotations.

This is free and open source software.

Key Features

  • Compares YAML semantically rather than treating it as unstructured text.
  • Matches Kubernetes resources using API version, kind and resource name or generated name.
  • Detects renamed Kubernetes resources using content similarity.
  • Can ignore API-version changes when comparing resources that have migrated between Kubernetes APIs.
  • Compares complete directory trees as well as individual files.
  • Supports local files and YAML obtained directly from HTTP or HTTPS URLs.
  • Provides detailed, compact and brief human-readable views together with JSON output.
  • Produces native annotation formats for GitHub, GitLab and Gitea CI systems.
  • Integrates with Git through GIT_EXTERNAL_DIFF and can be scoped to YAML files through attributes.
  • Provides exact and regular-expression path filtering.
  • Offers inverse comparisons for focusing on unchanged or complementary parts of a comparison.
  • Highlights the changed portion inside scalar values such as image tags, addresses and ports.
  • Can mask Kubernetes Secrets and arbitrary sensitive paths across its output formats.
  • Inspects embedded X.509 certificates when comparing relevant values.
  • Supports project-level configuration files and custom terminal colours.
  • Can optionally generate natural-language summaries through the Anthropic API.

Website: github.com/szhekpisov/diffyml
Support:
Developer: Sergei Zhekpisov
License: MIT License

diffyml
Click image for full size

diffyml is written in Go. Learn Go with our recommended free books and free tutorials.


Related Software

Terminal-Based Diff Tools
difftasticStructural diff tool that compares files based on their syntax
hunkTerminal diff viewer with syntax highlighting and side-by-side views
diff-so-fancyAttractive diffs with diff-highlight and more
deltaViewer for git and diff output
icdiffAn improved colored diff
diffoscopeIn-depth comparison of files, archives, and directories
colordiffWrapper for diff with pretty syntax highlighting
diffsitterSemantic diff tool
objdiffLocal diffing tool for decompilation project
ydiffTool to view colored, incremental diff in a version controlled workspace
diffrWord-by-word diff highlighting utility
dyffdiff tool for YAML files
WdiffWordwise implementation of diff
dwdiffdiff program that operates at the word level
diffymlCompares YAML documents by their structure
oyoStep-through diff viewer
diff2html-cliGenerate HTML diffs
biodiffTerminal-based binary diff viewer
dirdiffCompute the differences between two directories
csvdiffFast diff tool for comparing CSV files
VBinDiffVisual binary diff
riffWrapper around diff
csv-diffDiffing CSV and JSON files
xmldiffCompare XML documents
PatdiffFile diff using the Patience Diff algorithm
dead-ringerBinary diff utility
sesdiffGenerates a shortest edit script
semdiffSemantic diff tool written in Rust

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted