Diff OpenAPI specs, catch OWASP risks & price your AI/MCP tool tax.
Deterministic OpenAPI 2.0, 3.0 & 3.1 breaking-change diff (21 rules + SemVer gate), OWASP API Top 10 auditor, SARIF 2.1.0 generator, and MCP tool-definition token calculator — running entirely in your browser tab.
Interactive OpenAPI Diff, Security & AI Token Workbench
Compare Base vs. Target specs or audit a single Swagger/OpenAPI YAML or JSON file locally with drag-and-drop support.
21 Breaking Rules, OWASP API Top 10 & Cross-Version Normalization
Built for deterministic CI gates without external $ref SSRF, YAML bombs, or false positives across Swagger 2.0, OpenAPI 3.0, and OpenAPI 3.1.
21 Breaking + 2 Security Rules
Catches removed endpoints, operationId drift, parameter/body tightening, covariant 2xx response mismatches, OR-auth & OAuth2 scope regressions, and HTTPS→HTTP downgrades.
4-Pillar OWASP & Schema Score
Scores 0–100 across Contract Completeness (30), OWASP API Security (30), Schema Rigor against mass assignment & unbounded arrays (20), and AI/MCP Readiness (20).
Zero-Upload & Bomb Hardened
Blocks YAML alias bombs (maxAliasCount=100), cyclic anchors, deep nesting (>80), and HTML payloads. External $refs are isolated and never fetched over the network.
| Rule Family | IDs | Checks Covered |
|---|---|---|
| Operations & Params | OAD-BRK-001..009 |
Removed routes, operationId drift, new required/moved/removed params, contravariant input types, enum narrowing, unified 2.0/3.0/3.1 numeric & string bounds. |
| Request & 2xx Responses | OAD-BRK-010..019 |
Required body, dropped media types, added required fields, removed 2xx codes/fields, covariant output types (number→integer safe), response nullability & enum expansion. |
| Auth & Security Regressions | OAD-BRK-020..021 · OAD-SEC-001..002 |
Universal OR-auth & OAuth2 scope preservation, removed/changed security schemes, auth removal/optionality regression, HTTPS→HTTP server downgrade. |
| OWASP, Schema & AI Readiness | OAD-OWASP-* · OAD-SCH-* · OAD-AI-* |
Unauthenticated writes, query API keys, Basic-over-HTTP, legacy implicit/password OAuth2, missing 429 headers, missing additionalProperties: false, bloated HTML descriptions & >40 tools. |
MIT-Licensed Node CLI & GitHub Action
Run the exact same deterministic engine in local pre-commit hooks, PR comments, and GitHub Code Scanning SARIF pipelines.
# Diff two specs with strict policy & SARIF 2.1.0 output npx github:Gong-shijie/specdiff diff v1.yaml v2.yaml \ --policy strict --format markdown --sarif-file specdiff.sarif # Single-spec OWASP & AI/MCP token audit npx github:Gong-shijie/specdiff audit openapi.json --format json
- uses: Gong-shijie/specdiff@v1
with:
base-spec: api/openapi-v1.yaml
target-spec: api/openapi-v2.yaml
policy: balanced
sarif-file: specdiff.sarif
- uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: specdiff.sarif
Open-Core Free Forever. Cloud & Done-For-You When You Scale.
Use the browser workbench, CLI, and GitHub Action free under the MIT license — or offload bulk scheduled monitoring and remediation PRs.
Web + CLI + GitHub Action
- 100% browser-side diff & OWASP workbench
- Swagger 2.0, OAS 3.0 & OAS 3.1 normalization
- Node CLI with Markdown, JSON & SARIF 2.1.0
- Composite GitHub Action PR & SemVer gate
Apify Scheduled Spec Monitor
- Monitor live OpenAPI URLs on cron schedules
- Batch diff & audit up to 100 specs per run
- SSRF-hardened DNS/IP/redirect protection
- Compact mode for Apify MCP & AI agents
$49 API & MCP Optimization PR
- Fix OWASP API Top 10 & schema rigor gaps
- Strip bloated HTML & cut MCP tool token tax
- Wire SpecDiff + SARIF CI gate in your repo
- Zero risk: pay only when you merge the PR
Pair SpecDiff with MCPDiet to cut IDE mcp.json context bloat by 70–90%, detect leaked API keys & Unicode tool poisoning, and explore our 100-server benchmark.