{"repo":"udamir/api-diff-viewer","free":true,"listed":false,"github":"https://github.com/udamir/api-diff-viewer","clone":"git clone https://github.com/udamir/api-diff-viewer.git","description":"CodeMirror-based diff viewer for JSON-based API documents. Supports OpenAPI 3.x, AsyncAPI 2.x, and JsonSchema specifications.","language":"TypeScript","stars":46,"topics":["diff","openapi","swagger","api","compare","jsonschema","side-by-side","codemirror"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"api-diff-viewer CodeMirror-based diff viewer for JSON-based API documents. Supports OpenAPI 3.x , AsyncAPI 2.x , and JsonSchema specifications. Features - Side-by-side & inline views — dual-editor or unified diff display - YAML & JSON output — render diffs in either format - Word-level diff highlighting — word or character granularity, or disable entirely - Change classification — breaking, non-breaking, annotation, unclassified with color-coded gutter indicators - Change filtering — show only specific classification types - Code folding — collapse/expand API structure blocks with change count badges - Array-level diffs — per-item change tracking for parameters, enum values, tags, etc. - Dark mode — built-in light and dark themes with CSS variable overrides - WebWorker support — non-blocking merge computation for large specs - Event system — lifecycle events for loading, ready, errors, and state changes - Zero framework dependency — pure DOM + CodeMirror, works with any framework or vanilla JS Installation Quick Start API Reference createDiffViewer(container, before, after, options?) Creates and returns a DiffViewer instance. Parameter Type Description ----------- ------------------- -------------------------------------------------- container HTMLElement DOM element to mount into before object \\ string The \"before\" API spec (object or JSON/YAML string) after object \\ string The \"after\" API spec (object or JSON/YAML string) options DiffViewerOptions Configuration (see below) ","default_branch":null,"files":null,"tree":[],"storefront":"/r/udamir","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/udamir/api-diff-viewer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}