api-response-contract-guard
Asserts live HTTP responses against schema contracts, halting CI/QA test suites on payload drift.
| Size | Folder | Inside |
|---|---|---|
| 934 B | examples/ | 4 examples |
| 5.4 kB | bin/ | 1 script |
| 2 kB | src/ | 1 source file |
| 496 B | tests/ | 1 test file |
| 5.3 kB | (root) | 4 docs · 1 asset |
| Size | Path |
|---|---|
| 2.1 kB | LICENSE |
| 457 B | QUICKSTART.md |
| 1.8 kB | README.md |
| 326 B | SECURITY.md |
| 6 B | VERSION · binary |
| 5.4 kB | bin/api-response-guard.js |
| 400 B | examples/contract.json |
| 67 B | examples/response.json |
| 400 B | examples/v1.json |
| 67 B | examples/v2.json |
| 607 B | package.json |
| 2 kB | src/detector.js |
| 496 B | tests/test_detector.js |
Already bought this?
View your purchasesREADME
api-response-contract-guard
Asserts live HTTP responses or fixture payloads against JSON Schema contracts, halting test suites on payload drift.
What Can Break?
Backend deployments that omit critical JSON keys, return unexpected null values, or send mismatched data types to clients.
What Does This Tool Check?
Live response JSON payloads vs contract schema, required presence, type assertions, and nullability.
What Does It NOT Check?
Server SSL certificates or HTTP proxy caching headers.
How Fast Can I Run It?
Under 5 seconds. Zero external dependencies. Pure Node.js standard library.
# Clone and run
git clone git@github.com:genesiscode2026/api-response-contract-guard.git
cd api-response-contract-guard
# Execute 60-second demo
./bin/api-response-guard.js --help
./bin/api-response-guard.js --contract examples/contract.json --response examples/response.json
What Do I Get?
- Deterministic CLI Exit Codes: Returns code
0on backward-compatible contracts; returns code1on breaking drift. - Machine-Readable JSON: Pass
--jsonto integrate directly into GitHub Actions, GitLab CI, or pre-commit hooks. - Human-Readable Diffs: Clear, actionable error reports with exact field pointers.
Commercial Distribution
- Catalog ID:
P48 - Price Band: standard micro-tool ($15)
- List Price: $15 USD
- License: GENESIS Commercial Source License v1.0
- Seller:
genesiscode2026 - Official Storefront: Genesis Code on Getly
Security scan report
Scanned by X402 Git, OSV (opens in a new tab) and Socket (opens in a new tab) — passed on all three. Findings from X402 Git and Socket are listed below.
- secrets
- none found
- X402 Git
- size limits
- within caps
- X402 Git
- known malware
- no dependency manifests to check
- OSV
- known vulnerabilities
- no dependency manifests to check
- OSV
- dependency behaviour
- nothing on a direct dependency · 1 in transitive packages
- Socket
- instruction smuggling
- none found
- X402 Git
- what it can do
- listed below
- X402 Git
What this can do
- Tools
- none
- Runs
- bin/api-response-guard.js
- Talks to
- nothing
- Reads
- no environment variables
- At install
- nothing runs
- Links to
- img.shields.io
- www.getly.store
Findings (2)
- LOWSocket SBOM Resolver — Socket SBOM Resolver (transitive) — no lockfile, so installs are not reproducible
- LOWbin/api-response-guard.js — Ships the script bin/api-response-guard.js
Releases 1
- v1.0.02026-09-17
Commercial release v1.0.0 for api-response-contract-guard