~/talk

Escaping the Phantom Zone of Insecure Data: Build Safer Applications with zod

Talkat code.talks 2023 · 2023-09-14..09-15· [typescript, security]
links:none on file
slides:none on file

Introduces the npm package zod, a runtime validation library with excellent TypeScript support that generates types from schemas so runtime-checked data and TypeScript types stay in sync. Demonstrates zod’s API and shows practical frontend and backend examples of using zod to validate incoming data, improve safety compared with plain TypeScript, and integrate into development workflows.

AI-written summary · about

  1. 0:00Introduction
  2. 0:31Data validation at edges
  3. 2:21JavaScript typing pitfalls
  4. 4:51TypeScript static typing
  5. 6:43Inferring vs explicit types
  6. 7:47Discriminated unions
  7. 9:59What is Zod
  8. 10:40Zod API basics
  9. 13:52Zod discriminated unions
  10. 15:58Types with Zod
  11. 16:40Zod API flexibility
  12. 17:04Zod with React Hook Form
  13. 18:10API response validation
  14. 19:12Better UX with Zod
  15. 21:22Validating env vars with Zod
  16. 22:48Zod for Node.js
  17. 24:54Express middleware
  18. 25:57Zod JavaScript support
  19. 27:04Zod vs Yup vs AJV
  20. 29:55When to choose Zod
  21. 30:16Summary
~/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.