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 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).
| Factor | REST + OpenAPI 3.0 | tRPC | GraphQL |
|---|---|---|---|
| FCA COBS / NHS FHIR R4 / GDS | ✅ Required — OpenAPI 3.0 is the regulatory standard | Internal only | Not mandated |
| End-to-end TypeScript type safety | Via code generation (openapi-typescript) | ✅ Native — shared types, zero codegen | Via codegen (graphql-codegen) |
| UK GDPR data minimisation | OpenAPI select fields — explicit schema | ✅ zod schemas — precise input/output validation | GraphQL field selection |
| Developer productivity | Good — but OpenAPI → client types require codegen | ✅ Best — instant type safety, no build step | Good — but resolver boilerplate heavy |
| External partner integrations | ✅ Universal — any client consumes REST | TypeScript clients only | GraphQL clients only |
| NHS / FCA audit trail | ✅ HTTP access logs — standard | Logged via Express/Fastify middleware | Logged via Apollo plugin |
| Learning curve (new UK team member) | ✅ Low — every developer knows REST | Low if knows TypeScript | Medium — GraphQL concepts |
| ClickMasters use | ✅ All external UK APIs (FCA, NHS, GDS) | All internal full-stack TypeScript APIs | BFF aggregation layers only |
Book a Free Consultation Honest advice. → clickmasterssoftwaredevelopmentcompany.co.uk/contact/
More Technology Comparisons
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
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 th
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