TanStack

105 mods across 5 repositories, 34k stars between them.

TanStack/ai

Skill Claude CodeCodex

Use when wiring inMemory() from @tanstack/ai-memory/in-memory — explains setup, options (embedder, extract, topK/minScore), when to pick it (dev/tests/single-process demos), and what NOT to use it for (multi-process or persistent).

3.0k 2d ago A 63 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

Use when wiring mem0() from @tanstack/ai-memory/mem0 — a hosted memory adapter that talks to a mem0 server over plain HTTP (no SDK peer). Requires a running mem0 server.

3.0k 2d ago A 51 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

Use when wiring redis() from @tanstack/ai-memory/redis in production — covers client setup (ioredis or node-redis via fromNodeRedis), the storage model, client-side ranking limits, and troubleshooting.

3.0k 2d ago A 52 tokens original MIT

tanstack-ai-memory

52

TanStack/ai

Skill Claude CodeCodex

Use when wiring memoryMiddleware from @tanstack/ai-memory into a chat() call — covers the recall/save adapter contract, scope shape and server-side scope security, the recall-inject / deferred-save lifecycle, choosing an adapter (inMemory, redis, hindsight, mem0, honcho), and devtools events.

3.0k 2d ago A 69 tokens original MIT

ai-persistence

53

TanStack/ai

Skill Claude CodeCodex

Durability and state persistence for TanStack AI chats with @tanstack/ai-persistence. Routes to server chat persistence (withPersistence), client persistence (localStorage/IndexedDB), the store contracts, and adapter recipes. Distinguishes delivery durability (resumable streams) from conversation state. Use when…

3.0k 2d ago A 88 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

Use when a Cloudflare Worker needs TanStack AI chat persistence — writes a chat-persistence.ts into the app against its D1 binding (raw or via Drizzle), plus a Durable Object LockStore. Covers per-request bindings, wrangler config, D1 migrations, and lease-based locks.

3.0k 2d ago A 68 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

Use when a Cloudflare Worker needs durable byte storage for TanStack AI generated media (images, audio, video, transcripts) — writes a BlobStore backed by R2 and an ArtifactStore backed by D1, composes them onto the generation persistence so withGenerationPersistence persists artifact bytes, and serves them back from…

3.0k 2d ago A 104 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

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…

3.0k 2d ago A 101 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

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…

3.0k 2d ago A 79 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

Use when an app already runs Prisma and needs TanStack AI chat persistence — writes a chat-persistence.ts into the app against its existing PrismaClient and schema.prisma. Covers the four models, BigInt timestamps, JSON-as-string columns, upsert-with-empty-update idempotency, and model renaming.

3.0k 2d ago A 71 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

Server chat state with withPersistence from @tanstack/ai-persistence. Authoritative transcript, run lifecycle, durable interrupts/approvals, chatParamsFromRequest, reconstructChat, snapshotStreaming. Use when the server owns history, multi-device, or durable tool approvals. NOT client localStorage (see…

3.0k 2d ago A 83 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

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…

3.0k 2d ago A 93 tokens original MIT

ai-sandbox

61

TanStack/ai

Skill Claude CodeCodex

Run harness adapters (Claude Code, Codex, OpenCode) INSIDE isolated sandboxes via defineSandbox + withSandbox + a provider (localProcessSandbox / dockerSandbox). Covers declarative provisioning: createSecrets + secret/bearer, skills (agentSkill/gitSkill/mcpSkill/ fileSkill), plugins, instructions → canonical AGENTS.md…

3.0k 2d ago B 402 tokens original MIT

ai-skills

62

TanStack/ai

Skill Claude CodeCodex

Portable Agent Skills (SKILL.md) for TanStack AI with @tanstack/ai-skills. Renders a skill catalog and a loadskill tool via the withSkills middleware so any tool-calling model loads skills on demand, on any provider. Covers the SkillSource interface, inlineSkill/skillDirectory/staticSkills, the aggregate/…

3.0k 2d ago A 117 tokens original MIT

alpha

63

TanStack/ai

Skill Claude CodeCodex

does the alpha thing.

3.0k 2d ago A 6 tokens original MIT

beta

64

TanStack/ai

Skill Claude CodeCodex

does the beta thing.

3.0k 2d ago A 6 tokens original MIT

gamma

65

TanStack/ai

Skill Claude CodeCodex

Hostile-ish content: an unquoted colon in the description above.

3.0k 2d ago A 12 tokens original MIT

ai-core

66

TanStack/ai

Skill Claude CodeCodex

Entry point for TanStack AI skills. Routes to chat-experience, tool-calling, media-generation, structured-outputs, adapter-configuration, ag-ui-protocol, middleware, locks, custom-backend-integration, and debug-logging, plus the skills shipped by companion packages (@tanstack/ai-persistence, @tanstack/ai-code-mode).…

3.0k 2d ago A 108 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

Provider adapter selection and configuration: openaiText, anthropicText, geminiText, ollamaText, grokText, groqText, openRouterText, bedrockText, byteplusText, openaiCompatible. Per-model type safety with modelOptions, reasoning/thinking configuration, runtime adapter switching, extendAdapter() for custom models…

3.0k 2d ago A 227 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

Server-side AG-UI streaming protocol implementation: StreamChunk event types (RUNSTARTED, TEXTMESSAGESTART/CONTENT/END, TOOLCALLSTART/ARGS/END, RUNFINISHED, RUNERROR, STEPSTARTED/STEPFINISHED, STATESNAPSHOT/DELTA, CUSTOM), toServerSentEventsStream() for SSE format, toHttpStream() for NDJSON format. For backends…

3.0k 2d ago A 94 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

End-to-end chat implementation: server endpoint with chat() and toServerSentEventsResponse(), client-side useChat hook with fetchServerSentEvents(), message rendering with UIMessage parts, multimodal content, thinking/reasoning display. Covers streaming states, connection adapters, and message format conversions. NOT…

3.0k 2d ago A 78 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

Browser chat persistence on useChat / ChatClient: localStoragePersistence, sessionStoragePersistence, indexedDBPersistence. Client-authoritative (adapter, full transcript) vs server-authoritative (persistence: true, no client cache). Reload restore, pending interrupts, mid-stream rejoin with delivery durability. Use…

3.0k 2d ago A 141 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

Connect useChat to a non-TanStack-AI backend through custom connection adapters. ConnectConnectionAdapter (single async iterable) vs SubscribeConnectionAdapter (separate subscribe/send). Customize fetchServerSentEvents() and fetchHttpStream() with auth headers, custom URLs, and request options. Import from framework…

3.0k 2d ago B 78 tokens original MIT

TanStack/ai

Skill Claude CodeCodex

Pluggable, category-toggleable debug logging for TanStack AI activities. Toggle with debug: true | false | DebugConfig on chat(), summarize(), generateImage(), generateSpeech(), generateTranscription(), generateVideo(). Categories: request, provider, output, middleware, tools, agentLoop, config, errors. Pipe into…

3.0k 2d ago A 104 tokens original MIT