Use Cases
Step-by-step guides for real workflows. Each guide includes CLI commands, code examples, and a web-based alternative.
Convert Any API Response to a Zod Schema
Pipe your API response through typemorph-cli zod and get a Zod v4 schema with real type inference — email, uuid, url, datetime, and int vs float are detected automatically from the actual values.
30 seconds
Detect API Schema Drift Without an OpenAPI Spec
typemorph check saves a schema baseline from a live API response and exits 1 when it detects breaking changes — removed fields, type changes — on the next run. No OpenAPI spec required.
5 minutes
Add API Schema Drift Detection to GitHub Actions
Add a curl | npx typemorph-cli check step to your GitHub Actions workflow. It exits 1 on breaking changes and writes a summary to $GITHUB_STEP_SUMMARY — no OpenAPI spec, no extra services.
5 minutes
Compare Staging vs Production API Schemas
npx typemorph-cli envdiff --a https://staging.api.com/users/1 --b https://prod.api.com/users/1 fetches both endpoints, infers their schemas, and shows field-level breaking changes. No spec files.
1 minute
Generate MCP Tool Definitions from JSON
npx typemorph-cli mcp-tool schema.json --root SearchProducts outputs a complete MCP tool definition with inputSchema as a JSON Schema object — ready to register in your MCP server.
1 minute