Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ This directory contains comprehensive examples demonstrating TanStack AI across

Choose an example based on your use case:

- **Want a full-stack TypeScript app?** → [TanStack Chat (ts-chat)](#tanstack-chat-ts-chat)
- **Want a full-stack TypeScript app?** → [TanStack Chat (ts-react-chat)](#tanstack-chat-ts-react-chat)
- **Want a simple CLI tool?** → [CLI Example](#cli-example)
- **Need a vanilla JS frontend?** → [Vanilla Chat](#vanilla-chat)
- **Building a Python backend?** → [Python FastAPI Server](#python-fastapi-server)
- **Building a PHP backend?** → [PHP Slim Framework Server](#php-slim-framework-server)

## TypeScript Examples

### TanStack Chat (ts-chat)
### TanStack Chat (ts-react-chat)

A full-featured chat application built with the TanStack ecosystem.

Expand All @@ -38,14 +38,14 @@ A full-featured chat application built with the TanStack ecosystem.
**Getting Started:**

```bash
cd examples/ts-chat
cd examples/ts-react-chat
pnpm install
cp env.example .env
# Edit .env and add your OPENAI_API_KEY
pnpm start
```

📖 [Full Documentation](ts-chat/README.md)
📖 [Full Documentation](ts-react-chat/README.md)

---

Expand Down Expand Up @@ -245,7 +245,7 @@ Backend (TanStack Start API Route)
AI Provider (OpenAI/Anthropic/etc.)
```

**Example:** [TanStack Chat (ts-chat)](ts-chat/README.md)
**Example:** [TanStack Chat (ts-react-chat)](ts-react-chat/README.md)

### Multi-Language Backend

Expand Down Expand Up @@ -393,8 +393,8 @@ python anthropic-server.py
cd examples/vanilla-chat
pnpm dev

# Terminal 3: Start ts-chat (full-stack)
cd examples/ts-chat
# Terminal 3: Start ts-react-chat (full-stack)
cd examples/ts-react-chat
pnpm start
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"projectName": "ts-chat",
"projectName": "ts-react-chat",
"mode": "file-router",
"typescript": true,
"tailwind": true,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ts-chat",
"name": "ts-react-chat",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -9,9 +9,6 @@
"test": "exit 0"
},
"dependencies": {
"@ai-sdk/openai": "^2.0.73",
"@ai-sdk/provider": "^2.0.0",
"@ai-sdk/provider-utils": "^3.0.17",
"@tailwindcss/vite": "^4.1.17",
"@tanstack/ai": "workspace:*",
"@tanstack/ai-anthropic": "workspace:*",
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions examples/ts-solid-chat/.cta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"projectName": "ts-solid-chat",
"mode": "file-router",
"typescript": true,
"tailwind": true,
"packageManager": "pnpm",
"addOnOptions": {},
"git": true,
"version": 1,
"framework": "solid",
"chosenAddOns": ["nitro", "start", "tanchat", "store"]
}
12 changes: 12 additions & 0 deletions examples/ts-solid-chat/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
count.txt
.env
.nitro
.tanstack
.output
.vinxi
todos.json
Loading
Loading