Skip to main content

Memory TS

TypeScript AI memory system — persistent memory curation and retrieval for AI agents across sessions

Code / DevToolsFreemium

Memory TS is an open-source TypeScript library for giving AI agents persistent memory across sessions. It provides intelligent memory curation (deciding what's worth remembering) and retrieval (finding relevant memories at query time) — enabling AI assistants and agents to maintain context continuity across conversation sessions. Built by RLabs Inc, it addresses the fundamental limitation of LLMs that have no memory between sessions.

Key specs
32 GitHub stars source
as of 2026-10-26

What we know

PricingFreemiumfrom our original listing, not yet re-checked
GitHub stars17from our original listing, not yet re-checked

Why it matters

  • Persistent memory is fundamental to personalized AI assistants — without it, every session starts cold with no knowledge of past interactions.
  • TypeScript-native implementation fits directly into Node.js and Next.js AI application stacks.
  • AI-powered memory curation solves the quality problem — naive storage of all conversation text produces low-quality retrieval; intelligent curation improves relevance.
  • Semantic retrieval ensures retrieved memories are contextually relevant, not just keyword-matched.

Key capabilities

  • Memory storage: Persist important information from AI agent conversations.
  • AI curation: Intelligently decide what information is worth storing vs. discarding.
  • Semantic retrieval: Find relevant memories using vector similarity search.
  • Session continuity: Inject relevant past memories into new conversation contexts.
  • TypeScript: Native TypeScript with type safety; works in Node.js environments.
  • Open source: Available on GitHub; customizable for specific use cases.

Technical notes

  • Language: TypeScript
  • GitHub: github.com/RLabs-Inc/memory-ts
  • Stars: 17 (early-stage)
  • License: Check repository
  • Install: npm install memory-ts (check actual package name)
  • Dependencies: Vector embedding model + similarity search

Usage example

import { MemorySystem } from 'memory-ts';

const memory = new MemorySystem({ llmClient: yourLLMClient });

// Store memory after conversation
await memory.store({
  content: "User prefers TypeScript over JavaScript, works on fintech projects",
  context: "User profile"
});

// Retrieve relevant memories before generating response
const relevantMemories = await memory.retrieve("What languages does this user prefer?");
// Inject into LLM prompt context

Ideal for

  • Developers building TypeScript/Node.js AI assistants who need cross-session memory without building the curation and retrieval system from scratch.
  • Teams exploring persistent agent memory patterns as a building block for personalized AI applications.
  • Builders prototyping AI assistants that need to "remember" user preferences and context.

Not ideal for

  • Production high-scale deployments — early-stage project; more mature alternatives exist.
  • Python-based stacks — TypeScript-only; use Mem0 or LangChain's memory modules for Python.
  • Simple chatbots where session memory isn't a requirement.

See also

  • OpenAI Assistants — Built-in persistent threads and memory for OpenAI models; managed alternative.
  • AgentOps — Agent observability; complements memory systems with session replay and monitoring.
  • Anthropic Python SDK — Direct Claude API; build custom memory on top of the base SDK.

FAQ

What is Memory TS?

Memory TS is a TypeScript library that implements a persistent memory layer for AI agents. LLMs have no built-in memory between sessions — each conversation starts fresh. Memory TS stores important information from conversations (user preferences, facts, context), uses AI to decide what's worth retaining (memory curation), and retrieves relevant memories when they're needed in future sessions (semantic retrieval). This enables AI assistants to remember users and maintain continuity across interactions.

How does Memory TS decide what to remember?

Memory TS uses AI-powered curation to evaluate what information is worth storing. Not everything said in a conversation is valuable to remember — the system identifies meaningful facts, preferences, decisions, and context that would be useful in future interactions. This curation step prevents memory bloat and ensures retrieved memories are relevant rather than noise.

How does Memory TS retrieve relevant memories?

Memory TS uses semantic search (vector embeddings + similarity search) to find relevant memories for a given query or conversation context. When a user starts a new session, Memory TS searches stored memories for semantically similar content to the current conversation, injecting relevant context into the LLM's prompt. This simulates the experience of an AI that 'remembers' relevant past interactions.

Is Memory TS production-ready?

Memory TS is an early-stage open-source project (17 GitHub stars). It's more suitable for experimentation and building custom memory solutions than production deployment in high-scale applications. For production memory needs, more mature solutions like Mem0 or custom RAG implementations may be more appropriate.

Alternatives

Is your tool an alternative to Memory TS? Sponsor this spot for 30 days, marked Sponsored.

Integrations

None listed.

Built on

None listed.

For the team behind Memory TS

Growth plan: from $399 a month

SEO, AI search (how ChatGPT, Perplexity and Google describe Memory TS), UX, CRO and support from one account manager, with a monthly report. Includes a Featured launch on db.fyi. Starts with a free audit.

Founding offer: $299 a month for your first 3 months, plus a free case study.

Get a free audit

Listed 2026-02-22 · updated 2026-03-31