
ts-contract
An opinionated schema-first TypeScript contract library for defining type-safe HTTP and WebSocket APIs.
- Small core. Zero integrations.
- Schema-first.
- Excellent TypeScript inference.
- Composable primitives.
- Integrate it your way.
- Supports @standard-schema/spec
Minimal by design. No framework integrations.
Every integration adds surface area, complexity, and long-term maintenance burden. ts-contract stays focused on a small, durable core with first-class TypeScript inference and composable primitives that make it easy to integrate with any stack.