Skip to content
Source
Sign inSign up
TanStack/ai

examples/ts-react-ui-chatbot

Contents of examples/ts-react-ui-chatbot
NameLast commit messageLast commit date
..
public (directory)
src (directory)
.gitignore
env.example
package.json
README.md
tsconfig.json
vite.config.ts

README.md

Typed headless chat + shadcn AI components

One-route TanStack Start app. It uses createChatHook() from @tanstack/ai-react/ui and the chatbot pieces from shadcn.io/ai/chatbot: Conversation, Message, Prompt Input, Model Selector, Reasoning, Sources, plus Tool for approvals.

pnpm install
cp env.example .env
# set OPENAI_API_KEY
pnpm --filter ts-react-ui-chatbot dev

Open http://localhost:3000.