ai-persistence
Installation
SKILL.md
TanStack AI Persistence
Builds on the
ai-coreskill in@tanstack/ai, and usuallyai-core/chat-experience.
TanStack AI splits delivery durability from state persistence. They share no code and solve different problems.
| Layer | Answers | Package / API |
|---|---|---|
| Delivery durability | Reconnect to a stream still running | memoryStream / @tanstack/ai-durable-stream on the response; see resumable streams docs |
| State persistence | What is the conversation, later? | Client persistence on useChat + server withPersistence from @tanstack/ai-persistence |
A replayable stream is not a saved conversation. A saved conversation is not a live stream. Production apps often use both.