SC-020 · Developer Utilities

DiffDock

Semantic diffs for JSON, YAML and TOML that ignore key order and show real changes

DiffDock is planned as a semantic diff tool for structured configuration. It compares parsed meaning rather than lines of text, so reordered keys and reformatting disappear and meaningful changes stand out.

  1. 01Concept
  2. 02Planned
  3. 03In Development
  4. 04Beta
  5. 05Live

This product is not yet available. The documentation below describes the planned product and may change as we build it.

01Purpose

Line-based diffs were built for source code. Applied to configuration, they become noisy: a formatter reorders keys, a YAML file switches quoting style, or a JSON file is regenerated with different indentation, and hundreds of lines appear changed when the real difference is a single timeout value. Reviewers either spend their attention on noise or start skimming, which is exactly when a real change slips through.

DiffDock is designed to compare what configuration means. Both files are parsed into a data tree, normalized, and compared by path. The result lists additions, removals and value changes with their full path, groups related changes together, and can flag edits to keys a team has marked as high-impact. Because comparison happens on the parsed tree, a JSON file can even be compared with a YAML file that describes the same structure.

02Who it is for

  • Platform and DevOps engineers — review infrastructure and deployment configuration without formatting noise.
  • Code reviewers — spend pull request attention on changes that alter behavior.
  • Release managers — produce a readable summary of configuration differences between two releases.
  • Developers working with feature flags — confirm exactly which flags differ between environments.
  • Support engineers — compare a customer configuration export against a known-good baseline.

03Planned features

  • Order-insensitive comparison — Object keys are matched by name, never by position, so reordering produces no diff at all.
  • Cross-format support — Compare JSON, YAML and TOML in any combination after parsing to a common tree.
  • Array matching strategies — Treat arrays as ordered lists, as sets, or as lists of objects matched by an identifying key such as name or id.
  • Type-aware changes — Distinguish a value change from a type change, such as the string "8080" becoming the number 8080.
  • Watched paths — Mark paths such as replica counts or database hosts as high-impact so their changes are listed first.
  • Ignore rules — Exclude paths that are expected to differ, such as timestamps or generated build IDs.
  • Readable reports — Output as an interactive tree, a plain-text summary for pull requests, or machine-readable JSON.

04Use cases

Reviewing a reformatted file

A teammate runs a formatter over a large YAML deployment file and changes one memory limit in the same commit. The line diff shows over two hundred changed lines. DiffDock shows one entry: the memory limit path, with its old and new value.

Comparing staging and production

A release manager compares staging and production configuration for a service, with ignore rules for hostnames that are expected to differ. The remaining list shows three feature flags enabled only in staging, which go straight into the release notes.

Checking a support export

A customer sends a configuration export in JSON. Support compares it with the default configuration, stored in YAML, and immediately sees the four settings the customer has customized.

05How it is intended to work

  1. Provide two inputs — Paste, upload, or reference two files or two revisions in a repository.
  2. Choose matching rules — Set array strategies and identifying keys where needed.
  3. Apply ignore and watch lists — Load the saved rule set for the project.
  4. Review the diff — Expand the tree to see changes by path, with watched paths at the top.
  5. Share — Copy the text summary into a pull request or export the JSON report.
  6. Automate — Run the same comparison in CI with the planned command-line tool.

06Technical overview

Planned architecture

Each input is parsed by a format-specific parser into a normalized tree that preserves value types, then compared with a recursive structural diff that emits a list of operations keyed by path. Array matching is pluggable per path. One core library is planned to power the web interface, the CLI and a possible CI step, so results are identical wherever the comparison runs.

Data and integrations

  • Planned formats: JSON, YAML and TOML, with INI and properties files under consideration.
  • Possible Git integration to compare two commits or branches directly.
  • A planned CI step that posts a summary comment on pull requests.
  • Report output in JSON for consumption by other tools.

Security and privacy

  • Configuration often contains credentials, so DiffDock is designed to run comparisons in the browser or CLI where possible, without uploading file contents.
  • Values at paths that match common secret names can be masked in reports by default.
  • Saved rule sets store paths and settings only, never file contents.

07Documentation

Getting started (planned)

Try a first comparison with default settings. If arrays produce confusing results, set an identifying key for them; that single setting is expected to remove most remaining noise.

Key concepts

  • Path — The location of a value in the tree, such as services.api.replicas.
  • Array strategy — How two arrays are matched: ordered, as a set, or by an identifying key.
  • Watched path — A path whose changes are always listed first.
  • Ignore rule — A path or path pattern excluded from comparison.

Limitations and considerations

  • Comments and formatting are ignored by design, so a change that only edits a comment will not appear.
  • YAML anchors and custom tags are resolved before comparison, which can hide how a value was originally written.
  • DiffDock compares structure, not runtime behavior. It cannot tell whether a change is safe to deploy.
  • Templated files must be rendered before they can be compared meaningfully.

08Roadmap

  1. Phase 1Planned

    Core diff library

    JSON and YAML parsing to a typed tree and path-based structural comparison.

  2. Phase 2Planned

    TOML, arrays and ignore rules

    TOML support, configurable array strategies and saved ignore rules.

  3. Phase 3Planned

    Web tree view and watched paths

    Interactive diff tree, watched-path highlighting and text summaries.

  4. Phase 4Planned

    CLI, Git and CI

    Command-line comparisons, commit-to-commit diffs and pull request summaries.

09Questions

Is DiffDock available yet?

No. DiffDock is planned and has not been released. This page describes the intended design.

Why not just sort keys and use a normal diff?

Sorting handles object keys, but not arrays of objects, type changes or comparisons across formats. DiffDock is designed to handle all of these on the parsed tree.

Can it compare templated files such as Helm charts?

Templates need to be rendered first. DiffDock would then compare the rendered output.

Will my configuration files be uploaded?

The design favors running comparisons locally in the browser or CLI, so file contents do not need to leave your machine.

10Available today

Until DiffDock is released, these independent tools cover similar ground. They are made by other companies and are not affiliated with Seacrab AI.