Go Diff

Open-source Go projects categorized as Diff
Golang Go JSON TUI CLI

Top 21 Go Diff Projects

  1. jd

    JSON diff and patch

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. terraboard

    :earth_africa: :clipboard: A web dashboard to inspect Terraform States

  4. dyff

    /ˈdʏf/ - diff tool for YAML files, and sometimes JSON

    Project mention: Making kubectl diff show what actually changed | dev.to | 2026-10-07

    With Nix: nix run github:dimanovikov/datadiff -- --help. If you already use dyff, it documents the same KUBECTL_EXTERNAL_DIFF setup, and the argument filter applies to it just the same.

  5. diffnav

    A git diff pager based on delta but with a file tree, à la GitHub.

    Project mention: Show HN: Codiff, a local diff review tool | news.ycombinator.com | 2026-05-16
  6. oasdiff

    OpenAPI Diff and Breaking Changes

    Project mention: ContractBridge: Let Local Gemma Repair API Drift Without Trusting It Blindly | dev.to | 2026-10-25

    ContractBridge uses oasdiff to find structural breaking changes, then applies its own limited schema analysis. A diff can show that state became status, but it cannot decide whether PLACED and CONFIRMED mean the same thing to the business.

  7. ttt

    TTT Editor (Terminal Text Tool): A real alternative to VS Code, Zed, and Sublime that runs in your terminal. A TUI that feels like GUI. Single binary, zero config.

    Project mention: The Optimistic Maintainer: Why Fast Merges Beat Endless Review Cycles | dev.to | 2026-11-01

    I've been on that side of the fence. Now, as the maintainer of TTT—a terminal text editor and IDE written in Go—I'm on the other side.

  8. libopenapi

    libopenapi is a fully featured, high performance OpenAPI 3.2, 3.1, 3.0, Overlays and Arazzo parser, library, validator and toolkit for go applications.

    Project mention: Your MCP Server Is Eating Your Context Window. There's a Simpler Way | dev.to | 2026-03-16

    OpenAPI-native, no code generation. The binary embeds the latest Apideck Unified API spec. On startup, it parses the spec with libopenapi and builds commands for every API group, resource, and operation. When the API adds new endpoints, apideck sync pulls the latest spec. No SDK regeneration, no version bumps.

  9. deck

    decK: Configuration management and drift detection for Kong (by Kong)

  10. pgdiff

    Compares the PostgreSQL schema between two databases and generates SQL statements that can be run manually against the second database to make their schemas match.

  11. revdiff

    TUI for reviewing diffs, files, and documents with inline annotations

    Project mention: Our decision on Cursor following its acquisition by SpaceX | news.ycombinator.com | 2026-08-28

    I was looking at CLI-only solutions a while ago and the best thing I found was to use something like revdiff: https://github.com/umputun/revdiff

    For instance, in Claude Code you can have it bring up this TUI overlay after every edit it makes (it literally is an overlay, rather than a separate tab in your terminal) and you can annotate line-by-line anything you want changed or rejected. Then once you exit the overlay those suggestions are automatically piped back into the agent.

    I tried a few of these TUI-based code annotators, and this one is by far the best. It also works for files not under version control.

    I'm currently not using it as I also prefer something more akin to "text editor with agent built in", but I wanted to mention here in case you were curious.

  12. got

    An enjoyable golang test framework. (by ysmood)

  13. go-udiff

    µDiff - a micro Go diffing library

  14. JayDiff

    A JSON diff utility

  15. xferspdy

    Xferspdy provides binary diff and patch library in golang. [Mentioned in Awesome Go, https://github.com/avelino/awesome-go]

  16. cuetils

    CLI and library for diff, patch, and ETL operations on CUE, JSON, and Yaml

  17. srctx

    A library for extracting and analyzing definition/reference graphs from your codebase. Powered by tree-sitter and LSIF/SCIP.

  18. sbomlyze

    Git diff for SBOMs—compare CycloneDX, SPDX, and Syft documents, detect tampering, and gate CI.

    Project mention: SBoM Diff and Analysis | news.ycombinator.com | 2026-02-16
  19. infro-core

    Preview infra diffs on your pull requests

  20. tfscan

    Inspect Terraform resources in a state and plan JSON files

  21. git-file-history

    Browse all changes to a file

  22. godiffyaml

    Human-readable diffs for yamls with multiple documents

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Diff discussion

Log in or Post with

Go Diff related posts

  • Making kubectl diff show what actually changed

    3 projects | dev.to | 7 Oct 2026
  • An OpenAPI diff is a judgement call, not a line diff

    1 project | dev.to | 13 Sep 2026
  • Why API Breaking Changes Still Reach Production Even With CI/CD

    1 project | dev.to | 25 Jun 2026
  • OpenAPI仕様の差分を比較し、CIで破壊的変更をブロックする方法

    2 projects | dev.to | 16 Jun 2026
  • Cómo Comparar Especificaciones OpenAPI y Bloquear Cambios Disruptivos en Integración Continua

    2 projects | dev.to | 16 Jun 2026
  • Show HN: Codiff, a local diff review tool

    7 projects | news.ycombinator.com | 16 May 2026
  • API Versioning Without the Mess

    1 project | dev.to | 20 Apr 2026
  • A note from our sponsor - SaaSHub
    www.saashub.com | 11 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Diff projects in Go? This list will help you:

# Project Stars
1 jd 2,306
2 terraboard 2,011
3 dyff 1,905
4 diffnav 1,626
5 oasdiff 1,456
6 ttt 1,082
7 libopenapi 884
8 deck 506
9 pgdiff 504
10 revdiff 447
11 got 265
12 go-udiff 235
13 JayDiff 111
14 xferspdy 99
15 cuetils 78
16 srctx 61
17 sbomlyze 26
18 infro-core 25
19 tfscan 8
20 git-file-history 6
21 godiffyaml 5

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Go is
the 5th most popular programming language
based on number of references?