e30e75b5d4
Code Quality / Oxlint + Oxfmt (push) Waiting to run
Code Quality / Template Sync (push) Waiting to run
Code Quality / Build Changed Packages (push) Waiting to run
Code Quality / Test Changed Packages (push) Waiting to run
Deploy Expo Example / Deploy Production (push) Waiting to run
Deploy Ink Example / Deploy Production (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.12) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Waiting to run
Deploy Shadcn Registry / Deploy Production (push) Waiting to run
Template Metrics / LOC + Bundle Size (push) Waiting to run
Changesets / Create Version PR (push) Has been cancelled
749 B
749 B
External Store Integration
This example demonstrates how to use assistant-ui with an external message store using useExternalStoreRuntime.
Quick Start
Using CLI (Recommended)
npx assistant-ui@latest create my-app --example with-external-store
cd my-app
Environment Variables
Create .env.local:
OPENAI_API_KEY=sk-...
Run
npm run dev
Features
- External store runtime via
useExternalStoreRuntime - Custom message state management
- React state-based message storage
- Message conversion utilities