tRPC vs REST vs GraphQL — TypeScript API Architecture (2025)
tRPC is the right choice for full-stack TypeScript projects where the frontend and backend are in the same codebase or organisation — end-to-end type safety without an OpenAPI schema, zero code generation, and exceptional developer experience. REST with OpenAPI remains the standard for UK external APIs (FCA COBS disclosure, NHS FHIR R4, GDS Service Standard). GraphQL for complex internal data aggregation. The decision depends entirely on who consumes the API. TypeScript API architecture choice affects UK regulatory compliance (REST for external FCA/NHS/GDS APIs) and developer productivity (tRPC for internal full-stack TypeScript).
| Factor | tRPC | REST + OpenAPI 3.0 | GraphQL |
|---|---|---|---|
| FCA COBS API disclosure | Not applicable (internal only) | ✅ OpenAPI satisfies FCA COBS | Schema available but non-standard |
| NHS FHIR R4 | Not applicable | ✅ FHIR IS a REST standard | Not FHIR-compatible |
| GDS Service Standard API | Not applicable | ✅ GDS mandates REST + OpenAPI | Not standard in GDS |
| External API consumers (partners) | Not applicable — internal only | ✅ Standard external API | Developer experience varies |
| Full-stack TypeScript (same codebase) | ✅ Best — zero schema, full type safety | Schema required — more boilerplate | Type generation required |
| Developer experience (same org) | ✅ Best — autocomplete, refactoring | Good — OpenAPI generation | Good — code generation required |
| Type safety without codegen | ✅ Native — zero codegen | Requires OpenAPI codegen | Requires GraphQL codegen |
| UK GDPR data minimisation | Good — procedure-based queries | ✅ Explicit — OpenAPI documents all fields | ✅ Query exactly needed fields |
| ClickMasters use | Internal full-stack TypeScript apps | ✅ All external UK regulated APIs | Complex multi-source internal APIs |
Book a Free Consultation Honest advice. → clickmasterssoftwaredevelopmentcompany.co.uk/contact/
More Technology Comparisons
tRPC vs REST vs GraphQL — UK TypeScript Full-Stack APIs (2026)
REST with OpenAPI 3.0 remains the UK standard for external APIs (FCA COBS, NHS FHIR R4, GDS Service
tRPC vs REST vs GraphQL -- UK API Design (2026)
REST + OpenAPI 3.0 is the UK standard for external APIs -- NHS FHIR R4, FCA Open Banking, GDS, HMRC
GraphQL vs REST API for UK Software Development — Honest Comparison (2025)
REST is the right default for most UK API development: simpler, easier to cache, better tooling for
GraphQL vs REST vs gRPC — Which API for UK Software? (2025)
REST (with OpenAPI 3.0) is the right default for most UK APIs: widest tooling support, easiest to co
Get Unbiased Technology Advice
Our architects are certified across all major platforms. We recommend what's actually right for your business — no commission, no bias.
Book Free Consultation