npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pb33f/openapi-changes

v0.2.7

Published

The world's sexiest and most detailed OpenAPI diff/changelog tool

Readme

logo

discord GitHub downloads npm Docker Pulls

OpenAPI Changes

The world's most powerful and complete OpenAPI diff tool.

openapi-changes lets you inspect what changed in an OpenAPI specification between two files, between git revisions of the same file, across local git history, or directly from a GitHub-hosted file URL.

It can render the same semantic change model as:

  • an interactive terminal UI
  • a terminal summary
  • a machine-readable JSON report
  • a markdown report
  • a self-contained offline HTML report

It works well for local exploration, CI/CD checks, release notes, and API review workflows.

How is it the 'most powerful and complete?'?

openapi-changes gives you the power to view all changes between two OpenAPI contracts, and over time in every which way you can possibly think of. Graphs, trees, lists, diffs, JSON, mark down.

Has no network dependencies at all. Runs 100% offline, including the HTML report.


Install with Homebrew

brew install pb33f/taps/openapi-changes

Install with npm or yarn

npm i -g @pb33f/openapi-changes

If you prefer yarn:

yarn global add @pb33f/openapi-changes

Install with cURL

curl -fsSL https://pb33f.io/openapi-changes/install.sh | sh

Install or run with Docker

docker pull pb33f/openapi-changes

Docker images are available for both linux/amd64 and linux/arm64.

The published image configures Git to trust mounted repositories, so local git-history commands work without requiring extra safe.directory setup inside the container.

To run a command, mount the current working directory into the container:

docker run --rm -v $PWD:/work:rw pb33f/openapi-changes summary . sample-specs/petstorev3.json

To run the interactive console through Docker, allocate a TTY with -it:

docker run --rm -it -v $PWD:/work:rw pb33f/openapi-changes console . path/to/openapi.yaml

Verify the install

Print the installed version:

openapi-changes version

Summary view

A full terminal UI

Comes in multiple themes! PB33F (Dark), Roger Mode (Light) and Tektronix (Retro Dark)

Powerful HTML report with no rival.

A self-contained, offline HTML report with interactive timeline, change explorer graph, diff views, and more.

Timeline overview with change history chart

Interactive explorer graph

Change report breakdown

Side by side, focused, unified or inline diffing

Roger mode (monochrome light theme)

Tektronix mode (green monochrome)


Comparing git revisions

Compare a file at different git revisions without checking out branches:

openapi-changes summary HEAD~1:openapi.yaml ./openapi.yaml
openapi-changes html-report main:api/openapi.yaml feature-branch:api/openapi.yaml

The revision:path syntax works with any git ref -- branches, tags, HEAD~N, commit SHAs. The path is relative to the repository root. This works with all commands and supports multi-file specs with $ref references resolved from the same revision.


Documentation

Quick Start Guide 🚀

Full docs: https://pb33f.io/openapi-changes/


Build from source

openapi-changes currently requires Go 1.25.0.

git clone https://github.com/pb33f/openapi-changes.git
cd openapi-changes
go build -o bin/openapi-changes .

Or use make:

make

Command overview

The current command surface is:

  • console for the interactive terminal UI
  • summary for fast terminal and CI output
  • report for machine-readable JSON
  • markdown-report for shareable markdown output
  • html-report for the interactive offline browser report
  • completion for shell completion scripts
  • version for raw build version output

Run openapi-changes --help or openapi-changes <command> --help for the live CLI surface.

Terminal themes

The terminal-facing commands support multiple presentation modes:

  • --no-color for the light Roger monochrome theme
  • --roger-mode as an alias for --no-color
  • --tektronix for the green monochrome terminal theme

See the command arguments docs for the full shared flag set.


Custom breaking rules configuration

openapi-changes supports configurable breaking-change rules via changes-rules.yaml.

Use an explicit config file

openapi-changes summary -c my-rules.yaml old.yaml new.yaml

Or let it auto-discover the default config file

openapi-changes summary old.yaml new.yaml

Default lookup locations:

  1. ./changes-rules.yaml
  2. ~/.config/changes-rules.yaml

Example

pathItem:
  get:
    removed: false
  post:
    removed: false
  put:
    removed: false
  delete:
    removed: false

schema:
  enum:
    removed: false

parameter:
  required:
    modified: false

Each rule supports:

  • added
  • modified
  • removed

For the full rules reference and more examples, see the configuration docs.


See the full docs at https://pb33f.io/openapi-changes/