{"repo":"genesiscode2026/api-response-contract-guard","private":true,"description":"Asserts live HTTP responses or fixture payloads against JSON Schema contracts.","default_branch":"main","stars":0,"forks":0,"pushed_at":"2026-09-17T21:12:31Z","languages":{"JavaScript":7920},"files":13,"tree":["LICENSE","QUICKSTART.md","README.md","SECURITY.md","VERSION","bin/api-response-guard.js","examples/contract.json","examples/response.json","examples/v1.json","examples/v2.json","package.json","src/detector.js","tests/test_detector.js"],"sizes":{"LICENSE":2099,"QUICKSTART.md":457,"README.md":1844,"SECURITY.md":326,"VERSION":6,"bin/api-response-guard.js":5446,"examples/contract.json":400,"examples/response.json":67,"examples/v1.json":400,"examples/v2.json":67,"package.json":607,"src/detector.js":1978,"tests/test_detector.js":496},"readme":"# api-response-contract-guard\n\n> **Asserts live HTTP responses or fixture payloads against JSON Schema contracts, halting test suites on payload drift.**\n\n[![Version](https://img.shields.io/badge/version-1.0.0-blue.svg)](VERSION)\n[![License: MIT](https://img.shields.io/badge/License-Commercial-blue.svg)](LICENSE)\n[![Zero Dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](package.json)\n\n---\n\n## What Can Break?\n\nBackend deployments that omit critical JSON keys, return unexpected null values, or send mismatched data types to clients.\n\n## What Does This Tool Check?\n\nLive response JSON payloads vs contract schema, required presence, type assertions, and nullability.\n\n## What Does It NOT Check?\n\nServer SSL certificates or HTTP proxy caching headers.\n\n## How Fast Can I Run It?\n\nUnder 5 seconds. Zero external dependencies. Pure Node.js standard library.\n\n```bash\n# Clone and run\ngit clone git@github.com:genesiscode2026/api-response-contract-guard.git\ncd api-response-contract-guard\n\n# Execute 60-second demo\n./bin/api-response-guard.js --help\n./bin/api-response-guard.js --contract examples/contract.json --response examples/response.json\n```\n\n---\n\n## What Do I Get?\n\n- **Deterministic CLI Exit Codes**: Returns code `0` on backward-compatible contracts; returns code `1` on breaking drift.\n- **Machine-Readable JSON**: Pass `--json` to integrate directly into GitHub Actions, GitLab CI, or pre-commit hooks.\n- **Human-Readable Diffs**: Clear, actionable error reports with exact field pointers.\n\n---\n\n## Commercial Distribution\n\n- **Catalog ID**: `P48`\n- **Price Band**: standard micro-tool ($15)\n- **List Price**: $15 USD\n- **License**: GENESIS Commercial Source License v1.0\n- **Seller**: `genesiscode2026`\n- **Official Storefront**: [Genesis Code on Getly](https://www.getly.store/store/genesis-code-mu5x0au2)\n","price_usd":"15.00","clone_checkout":"https://api.checkout402.com/c/chk_vnqt0unMLQ9QAGvh","rehearse_checkout":"https://api.checkout402.com/c/chk_vnqt0unMLQ9QAGvh/test","preview":"/r/genesiscode2026/api-response-contract-guard/f/<path> serves file CONTENTS for the seller's preview paths; other paths answer with the price","how_to_buy":"pay clone_checkout with x402 (pay402 does it in one call); the goods arrive as payload_base64, a tar.gz of the full repo. Rehearse first at rehearse_checkout: same flow, simulated money.","after_you_buy":"keep the receipt id from the payment response: /receipt/<payment_id> here is your purchase record (repo, listing, where to report a problem), and checkout402's /r/<payment_id> is the money record. Tell your human both URLs."}