Gleam + TypeScript: Full-Stack Type Safety with Inertia-Wisp
summary
Built an Inertia Wisp adapter that connects Gleam/Wisp backends to React/Inertia frontends, demoing a working to‑do app and contact form with server validation and the Inertia merge prop flow. Two sharing strategies: compile Gleam types to JS/TS and use runtime decode-before-render HOCs for type safety, or define Gleam schemas and run Gleam→TS codegen to emit Zod validators used client‑side. Glue works end‑to‑end; adapter is unpublished to Hex yet but underlying pieces are production‑grade.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:09Why this stack matters
- 4:43React with server-rendered pages
- 7:13Gleam and Wisp backend
- 12:06Inertia Wisp Global First
- 13:11Demo: to-do list
- 15:59Backend: to-do list
- 17:46Frontend setup and integration
- 21:54Type safety in frontend
- 22:37Demo: form validations
- 25:28TypeScript schema generation
- 28:16Query parameters and reloads
- 29:39Learning Gleam and adoption
- 32:50Gleam and coding assistants
- 34:16Summary
related talks
32mStatic typing with Flow and TypeScript
26mFull Stack Type Safety with React, GraphQL, and TypeScript
35mFull-stack Type Safety with React, GraphQL, and TypeScript
54mJava meets TypeScript: building modern web apps with full-stack type safety
01h 31mFireside Chat with Yehuda Katz and Ed Faulkner
49mTypescript + React
27mMatthew Gerstman - TypeScript: Seeing Past the Hype
06mLightning talk from John Leidegren
