tRPC vs REST vs GraphQL — UK TypeScript Full-Stack APIs (2026)

Updated: February 20269 min read
🇬🇧 UK💷 GBP📊 Comparison🔒 UK GDPR⚖️ UK Law

REST with OpenAPI 3.0 remains the UK standard for external APIs (FCA COBS, NHS FHIR R4, GDS Service Standard all mandate REST + OpenAPI). tRPC is ClickMasters' default for internal TypeScript full-stack APIs (Next.js App Router + Node.js backend) — end-to-end type safety without schema duplication, zero code generation. GraphQL is right for BFF (Backend For Frontend) aggregation layers where multiple clients need different data shapes. UK API design choice must balance regulated sector compliance requirements (REST mandatory for FCA/NHS/GDS external APIs) with developer productivity (tRPC wins internally).

FactorREST + OpenAPI 3.0tRPCGraphQL
FCA COBS / NHS FHIR R4 / GDS✅ Required — OpenAPI 3.0 is the regulatory standardInternal onlyNot mandated
End-to-end TypeScript type safetyVia code generation (openapi-typescript)✅ Native — shared types, zero codegenVia codegen (graphql-codegen)
UK GDPR data minimisationOpenAPI select fields — explicit schema✅ zod schemas — precise input/output validationGraphQL field selection
Developer productivityGood — but OpenAPI → client types require codegen✅ Best — instant type safety, no build stepGood — but resolver boilerplate heavy
External partner integrations✅ Universal — any client consumes RESTTypeScript clients onlyGraphQL clients only
NHS / FCA audit trail✅ HTTP access logs — standardLogged via Express/Fastify middlewareLogged via Apollo plugin
Learning curve (new UK team member)✅ Low — every developer knows RESTLow if knows TypeScriptMedium — GraphQL concepts
ClickMasters use✅ All external UK APIs (FCA, NHS, GDS)All internal full-stack TypeScript APIsBFF aggregation layers only

Book a Free Consultation Honest advice. → clickmasterssoftwaredevelopmentcompany.co.uk/contact/

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