A TypeScript backend dev's most trusted gadget against the dastardly silent assassins known only as REST API Contract Drift.
Code Salmon is a CLI tool that scans TypeScript projects for REST API calls. Once identified, it fires those calls to create a baseline JSON snapshot for future comparisons—your bulletproof vest against silent API drift.
External APIs evolve. When they do, your application might silently break. Code Salmon stops that by:
.ts files for fetch() calls.env file exists with relevant API keystsconfig.jsonnpm install codesalmonTo generate your initial baseline:
scanSalmonTo check for contract drift later:
swimSalmon*Pro Tip: For meaningful contract drift, wait days or weeks between scans to observe real API changes.*
When you run swimSalmon, the CLI outputs a detailed report highlighting any changes to API responses.