Selection of utilities

diffyml – compares YAML documents by their structure

diffyml is a command-line utility that compares YAML documents by their structure rather than by raw line changes.

It’s designed for configuration files, Kubernetes manifests, CI workflows, and repositories where a conventional text diff can make semantic changes hard to follow. The tool parses YAML content, reports meaningful field-level differences, and can compare local files, remote HTTP/HTTPS files, or whole directories.

It includes Kubernetes-aware matching, configurable output formats, Git integration, CI annotations, path filtering, custom colours, and optional masking of sensitive values. diffyml can also be used as a Go library for applications that need structural YAML comparison.

This is free and open source software.

Key Features

  • Compares YAML files structurally instead of producing a simple line-based text diff.
  • Matches Kubernetes resources by apiVersion, kind, and name, with support for rename detection.
  • Offers multiple output formats including detailed, compact, brief, JSON, GitHub, GitLab, and Gitea.
  • Compares local files, remote HTTP/HTTPS files, and directories.
  • Integrates with Git as an external diff tool for YAML-focused reviews.
  • Supports path filtering, regular expression filters, and project-level configuration files.
  • Masks Kubernetes Secrets and other sensitive values on request.
  • Provides optional natural-language summaries using the Anthropic API.
  • Cross-platform support – runs under Linux and macOS.

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
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
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
diff2html-cliGenerate HTML diffs
dirdiffCompute the differences between two directories
csv-diffDiffing CSV and JSON files
csvdiffFast diff tool for comparing CSV files
sesdiffGenerates a shortest edit script

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted