tanstack-ai-memory-honcho
Installation
SKILL.md
Honcho Memory Adapter
Hosted recall/save adapter backed by Honcho. Honcho models memory as peers
exchanging messages in a session; recall returns a synthesized dialectic answer
over the user peer's representation (so there are no discrete fragments), and save
appends the turn's messages to the session.
Setup
import { memoryMiddleware } from '@tanstack/ai-memory'
import { honcho } from '@tanstack/ai-memory/honcho'
// Build per request from the server-validated session — never from req.body.
function memoryFor(session: { userId: string; threadId: string }) {
const memory = honcho({ user: session.userId }) // baseURL defaults to HONCHO_URL