tRPC
Closest in spirit, different reach
- What overlaps
- Both give you end-to-end types without code generation, and both remove the hand-written client.
- What differs
- In tRPC the contract is the router type itself — it exists only in TypeScript. In stitchkit the contract is plain data, so the same declaration can also be walked to produce MCP tools, agent tools and a CLI. tRPC also speaks its own RPC-style protocol; stitchkit emits ordinary REST routes.
- Choose it when
- Pick tRPC when the API has exactly one consumer — your own TypeScript frontend — and you never need to expose it to assistants or scripts.