AI Persistence

Durability and state persistence for TanStack AI chats with @tanstack/ai-persistence. Routes to server chat persistence (withPersistence), client persistence (localStorage/IndexedDB), the store contracts, and adapter recipes. Distinguishes delivery durability (resumable streams) from conversation state. Use when conversations must survive reloads, multi-device, approvals, or server restarts — NOT for stream reconnect alone.

TanStack Updated 28.6k repo stars
TanStack AI

File contents

tanstack/ai commit 356af45330

Frequently asked questions

npx get-skill add tanstack/ai-persistence