--- name: stream-react description: "Build, integrate, audit, or upgrade Stream Chat, Video, Feeds, and Moderation in React / Next.js web apps - the default skill for web work. Scaffold a new app, add Stream to an existing project, review an integration, upgrade an SDK major, or migrate from Sendbird. Covers team messaging, DMs, video conferencing, livestreaming, social feeds, AI assistants and LLM chat (ChatGPT-style apps, streaming replies, thinking indicators, stop generating, reasoning and tool-call steps, tool approvals, generative UI with A2UI / OpenUI), and apps built on Stream Agents (voice and text agents, @stream-io/stream-agents). Web React only - React Native uses stream-react-native." license: See LICENSE in repository root metadata: author: GetStream --- # Stream React (web) ## Docs Don't write Stream SDK code from memory. APIs change between majors, so your memory is stale. Read the docs first, via the `getstream docs` command: ```bash cat $(getstream docs chat-sdk/react)/INDEX.md ``` Client and UI: chat-sdk/react, video/react, activity-feeds/react. Node.js backend (e.g. Next.js routes): chat/node, activity-feeds/node, moderation/node. Stream Agents (sessions, voice, tools): agents. Previous majors are available too (chat-sdk/react/v). Chat SDK majors can differ deeply (state, layout, configuration). Before any Chat code, pin the installed major, read only that major's docs (never the unversioned id on trust), and treat SDK names in this skill and in your memory as leads to confirm there - follow chat-versions.md. ## Setup Start with `getstream init` (binds the working dir to a Stream app, existing or new) and `getstream env` (credentials). For new apps, Next.js + Tailwind + shadcn with the default theme is a good choice unless the user says otherwise. Latest shadcn uses Base UI, not Radix: no `asChild`, and don't wrap trigger components in `