tRPC is a TypeScript framework for building end-to-end typesafe APIs without code generation or schemas. It leverages TypeScript's type inference to provide full static typesafety and autocompletion between client and server, with zero runtime dependencies. tRPC v11 supports queries, mutations, and subscriptions via HTTP GET/POST and WebSocket adapters.
URL: apis.yml
tRPC servers expose typed procedures as HTTP endpoints:
- Queries — HTTP GET, read-only, support batching and caching
- Mutations — HTTP POST, write operations with side effects
- Subscriptions — WebSocket or SSE for real-time updates
HTTP Protocol Details:
GET /{procedure}?input=...— Invoke a query with JSON-encoded inputPOST /{procedure}— Invoke a mutation with JSON bodyPOST /batch— Execute multiple procedures in one request- Authentication: Bearer token for protected procedures
Server Adapters: Standalone, Express, Fastify, Next.js, AWS Lambda, Fetch/Edge
- Documentation: trpc.io/docs
- GitHub: github.com/trpc/trpc
- NPM: @trpc/server
| Type | File |
|---|---|
| OpenAPI Spec | openapi/trpc-openapi.yml |
| Spectral Rules | rules/trpc-rules.yml |
| Naftiko Capabilities | capabilities/typesafe-api-integration.yaml |
| Shared Capability | capabilities/shared/trpc-api.yaml |
| Procedure JSON Schema | json-schema/trpc-procedure-schema.json |
| Error JSON Schema | json-schema/trpc-error-schema.json |
| Router Structure | json-structure/trpc-router-structure.json |
| JSON-LD Context | json-ld/trpc-context.jsonld |
| Examples | examples/ |
| Vocabulary | vocabulary/trpc-vocabulary.yml |
Workflow capability for integrating with tRPC-based backends. Enables AI agents and automation workflows to call tRPC servers via standard HTTP without requiring TypeScript clients.
- REST port: 8080
- MCP port: 9090
- Tools: 4 tools (query-procedure, mutation-procedure, batch-procedures, health-check)
- API Framework
- BFF
- End-to-End Type Safety
- RPC
- TypeScript
- Created: 2026-03-27
- Modified: 2026-05-03
FN: Kin Lane
Email: kin@apievangelist.com