UI Engineering for the AI Age
summary
Live-stream LLM outputs to avoid 15+ second waits and show content as it arrives, using Express + OpenAI then upgrading to the Vercel AI SDK stream_object abstraction to emit one JSON object per line (NDJSON) so each list item appears immediately — tested with requests for 20 and even 200 cheeses. Implementation reads res.body with a reader and TextDecoder, validates items with Zod, and renders fully interactive fragments via React Server Components & Suspense; the demo app movies++ ships and works.
AI-written summary · about
chapters (11)
- 0:00AI age UI engineering intro
- 1:08Full stack AI app demo
- 5:22Problem with non-streamed AI responses
- 6:26Streaming for better UX
- 10:41Handling partial JSON in streaming
- 17:31Incremental JSON with NDJSON
- 18:55Vercel AI SDK for streaming JSON
- 21:03Generative UI with movies++
- 23:32AI-powered UI code walkthrough
- 31:42React server components + AI
- 32:02Closing remarks
related talks
44mUsing AI Effectively in 2025
28mCreating fluent Frontend Experiences in an age of AI
14mStreaming UI and Scaling Full-Stack AI Like a Boss to Millions with Next.js
24mFull Stack Web Development with AI
47mStructured Outputs in OpenAI: Building Reliable JSON-Based AI Integrations
17mReact Server Components in AI Applications
27mAI-Generated React Server Components
41mFrom RAGs to riches: Build an AI document interrogation app in 30 mins
