PROBLEM
Current pain point
Frontend and backend drift over time
Teams duplicate DTOs, clients, and endpoint assumptions in multiple layers.
contract-kit
Single-source contract workflow to generate typed clients, backend-safe wiring, and compatibility checks before release.
PROBLEM
Current pain point
Teams duplicate DTOs, clients, and endpoint assumptions in multiple layers.
SOLUTION
Recommended approach
Define endpoints once and generate artifacts to keep your stack aligned.
STATUS
Current project stage
Current release includes CLI init, generate, and compatibility check flow.
CLI
Commands to initialize projects, generate artifacts, and check breaking changes.
CORE
Strict schema validation and deterministic endpoint summary generation.
ROADMAP
Angular generator and backend plugin layers under active development.
From contract to release-safe integration in four practical steps.
Create endpoint definitions in contracts/*.contract.json with request and response shapes.
Produce deterministic models and helper outputs from the contract source.
Connect generated outputs in Angular clients and backend handlers to keep both sides aligned.
Run contract diff checks to detect breaking API changes early in CI.
Single source of truth: this file defines one endpoint and its typed response.
{
"service": "users",
"endpoints": [{
"path": "/users/:id",
"method": "GET",
"response": { "200": { "id": "string", "email": "string" } }
}]
}Core commands
Define one contract file. Run one command. Get typed Angular client, NestJS controller, and Zod schemas — all from a single source of truth.