~/talk

Achieving end to end typesafety

Talkat Armada JS 2023 · 2023-10-05..10-06· [typescript, api-design]
links:none on file
slides:none on file

Claim: a working end-to-end type-safe API stack that removes client-side service types and gives immediate compile-time errors when backend changes. Implements tRPC + React Query on the front end, Express (or Next) adapters on the server, uses Zod validation for inputs and can infer outputs from Prisma or other backends. Team converts existing Firebase/Express code quickly (one engineer in ~1–2 days), backend types become backend types as source of truth and it reduces runtime mismatch bugs.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:07Story of best Dev experience
  3. 4:19Problems with shared types approach
  4. 7:50Why loose coupling fails
  5. 9:58Why we chose tRPC
  6. 11:04tRPC basics: queries and mutations
  7. 13:14tRPC integration with Express
  8. 16:48Frontend setup with tRPC
  9. 18:55End-to-end type safety explained
  10. 21:43Benefits after switching to tRPC
  11. 23:08Source of truth: backend types
  12. 24:57Permissions and middleware
  13. 25:39Live demo introduction
  14. 27:48Demo: form with type safety
  15. 28:52Demo: breaking changes feedback
  16. 30:15Why not GraphQL
  17. 31:41Tight coupling benefits
  18. 32:24Main takeaways and summary
  19. 33:56Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.