AI Persistence/stores

Implement the MessageStore, RunStore, InterruptStore, MetadataStore contracts for @tanstack/ai-persistence against any database. defineAIPersistence, composePersistence overrides, critical invariants (full-replace saveThread, insert-if-absent createOrResume and interrupt create), authorize thread access, runPersistenceConformance testkit. Use whenever you need server persistence — the package ships contracts, not a backend for your database.

TanStack Updated 28.6k repo stars
TanStack AI

File contents

tanstack/ai commit 63375d380b

Frequently asked questions

npx get-skill add tanstack/ai-persistence-stores