🚧

Alpha Release - This project is in early development and APIs may change

ts-contractts-contract
ts-contract logo

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.


Contribute

We welcome new ideas and contributions! Whether you want to report a bug, suggest a feature, or submit a pull request, your input helps make ts-contract better for everyone.


Support the Project

If you find ts-contract useful, consider sponsoring the project on GitHub!