"use client"; import { Thread } from "@/components/assistant-ui/thread"; import { useAuiState } from "@assistant-ui/react"; export default function Home() { const isEmpty = useAuiState((s) => s.threads.main.isEmpty); return (

Tap-Native Runtime Example

Built with ExternalThread and InMemoryThreadList

{isEmpty ? (

No messages yet

Use the controls below to add messages

) : ( <>

About This Example

  • • Uses{" "} ExternalThread {" "} to display messages
  • • Messages are stored in React state
  • • Fully reactive - updates automatically
  • • No backend needed - pure client-side
This is a minimal implementation. Features like editing, branching, and attachments can be added.
)}
); }