AI Persistence/build Drizzle Adapter

Use when an app already runs Drizzle ORM and needs TanStack AI chat persistence — writes a chat-persistence.ts into the app against its existing db handle, schema file, and drizzle-kit journal. Covers the four tables (SQLite/Postgres/MySQL), the onConflict idempotency rules, JSON columns, and per-request bindings like D1.

TanStack Updated 28.6k repo stars
TanStack AI

File contents

tanstack/ai commit ead5acb2df

Frequently asked questions

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