AI Persistence/build Custom Adapter

Use when an app needs TanStack AI chat persistence on a database with no dedicated recipe — raw Postgres (pg/postgres.js), Kysely, node:sqlite, MongoDB, Supabase, Redis. Writes a chat-persistence.ts against the app's existing client, covering the four stores, the idempotency invariants, and the conformance gate. Route to the Drizzle, Prisma, or Cloudflare skills instead when one of those matches.

TanStack Updated 28.6k repo stars
TanStack AI

File contents

tanstack/ai commit bd27472244

Frequently asked questions

npx get-skill add tanstack/ai-persistence-build-custom-adapter