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 bd27472 16.1 KB Updated

File contents

tanstack/ai/tree/main/packages/ai-persistence/skills/ai-persistence/build-custom-adapter commit bd27472244

Frequently asked questions

npx skillmds@latest add tanstack/ai-persistence-build-custom-adapter