0
Challenge · 40Realtime, AI & Motion
AI features (Vercel AI SDK)
AIused in ~62% of apps
Every product is bolting an AI feature onto something in 2026, and the job-board you are building is no exception. The interview signal is not 'can you call an LLM' — it is whether you stream tokens from the server without leaking your API key, parse model output into typed data you can trust, and read AI-generated code critically instead of pasting it. Get the boundary or the parsing wrong and you ship a hang, a runtime crash on bad JSON, or a key in the browser bundle.
Core idea. The Vercel AI SDK runs the model call on the server (Server Action or Route Handler) where your key is safe, then streams the response to the client. Use `streamText` when you want tokens to appear live, and `generateObject`/`streamObject` with a Zod schema when you need parseable, typed data instead of a freeform string.
poke it, drag it,
try to break it
try to break it
no slides here.
you drive.
you drive.
Playground, this isn't a screenshot
Where do the Suspense boundaries go?
<Suspense fallback={<Spinner/>}><PanelA /></Suspense>
<Suspense fallback={<Spinner/>}><PanelB /></Suspense>
<Header />static — never suspends
Suspense
<PanelA />fast data
loaded
Suspense
<PanelB />slow data
loaded
One boundary per panel = independent reveals. Each panel shows its own spinner and pops in the moment it is ready — the slow panel no longer holds the fast one hostage. The header sits outside both boundaries, so it never disappears.
↑ play a little first, then dig in