This forked demo is based on Tejas Kumar's talk on React Server Components in AI Applications. I changed it to show NBA players' draft year, pick number, and team info using DeepSeek Provider as the language model here.
It's helpful to check out https://github.com/nicoalbanese/ai-sdk-fundamentals and https://github.com/vercel-labs/ai-sdk-preview-rsc-genui to learn more about AI SDK and generative UI.
Follow these steps to run the demo locally:
- Clone this repository and
cd
into it - Run
pnpm install
- Rename
.env.example
to.env
and populate it with appropriate values - Run
pnpm dev
to start the development server - Open
http://localhost:3000
in your browser
Tejas Kumar – React Server Components in AI Applications, React Advanced 2024: https://www.youtube.com/watch?v=qlEsdo1F004