Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides a zero-dependency in-memory Map-backed recall/save memory adapter for dev, tests and single-process demos.
59% 100%+41 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 13 of 22 without it.
3 of 3 safety checks passed
Not used yet
Zero-dependency recall/save adapter backed by a Map. Records vanish on process
restart.
Map; users get
inconsistent memory.For production, use redis() (see the tanstack-ai-memory-redis skill).
import { memoryMiddleware } from '@tanstack/ai-memory'
import { inMemory } from '@tanstack/ai-memory/in-memory'
const memory = inMemory()
// A static scope is fine for dev/tests; derive it from the session in real apps.
memoryMiddleware({
adapter: memory,
scope: { threadId: 'demo-thread', userId: 'alice' },
})
inMemory(options?) accepts:
topK (default 6), minScore (default 0.15), kinds — recall tuning.embedder: { embed(text): Promise<number[]> } — enable semantic scoring (bothSkills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.