0
Fork 0
mirror of https://github.com/mem0ai/mem0.git synced 2026-11-17 19:02:25 +00:00
mem0/mem0-ts
History 2026-09-24 22:14:28 +05:30
..
patches fix(security): resolve 17 Vanta/Dependabot HIGH+CRITICAL vulnerabilities across 5 pnpm workspaces (#7032) 2026-08-21 17:41:41 +05:30
src fix(oss): stop ConfigManager from injecting OpenAI's baseURL and model into other providers (#7350) 2026-09-24 22:14:28 +05:30
tests Added Mem0 TS Library (#2270) 2025-02-27 15:19:17 -08:00
.gitignore chore: end to end test coverage for ts sdk (#4357) 2026-03-17 21:13:52 +05:30
.prettierignore chore: end to end test coverage for ts sdk (#4357) 2026-03-17 21:13:52 +05:30
AGENTS.md feat(ci): gate pull requests on an accepted issue (#6894) 2026-08-14 17:05:27 +05:30
CLAUDE.md feat(ci): gate pull requests on an accepted issue (#6894) 2026-08-14 17:05:27 +05:30
jest.config.js fix(ts-sdk): inject SDK version into telemetry at build time (#4897) 2026-04-20 17:29:29 +05:30
jest.integration.config.js chore: updating the sdk version and changelog (#4561) 2026-03-26 22:21:31 +05:30
jest.setup.ts fix(ts-sdk): inject SDK version into telemetry at build time (#4897) 2026-04-20 17:29:29 +05:30
package.json feat(profiles): User Profiles v1 — SDK methods + docs (#7340) 2026-09-24 00:11:22 +05:30
pnpm-lock.yaml fix(security): resolve 12 Vanta/Dependabot vulnerabilities across 6 pnpm workspaces + poetry.lock (#7280) 2026-09-11 16:07:57 +05:30
pnpm-workspace.yaml fix(security): resolve 12 Vanta/Dependabot vulnerabilities across 6 pnpm workspaces + poetry.lock (#7280) 2026-09-11 16:07:57 +05:30
README.md Self-hosted dashboard and admin auth (#4837) 2026-04-23 19:06:36 +05:30
tsconfig.json Added Mem0 TS Library (#2270) 2025-02-27 15:19:17 -08:00
tsconfig.test.json Added Mem0 TS Library (#2270) 2025-02-27 15:19:17 -08:00
tsup.config.ts feat(ts-oss): add Oracle AI Vector Search vector store (#6690) 2026-08-05 10:55:33 +05:30

Mem0 - The Memory Layer for Your AI Apps

Mem0 is a self-improving memory layer for LLM applications, enabling personalized AI experiences that save costs and delight users. We offer both cloud and open-source solutions to cater to different needs.

See the complete OSS Docs. See the complete Platform API Reference.

1. Installation

For the open-source version, you can install the Mem0 package using npm:

npm i mem0ai

2. API Key Setup

For the cloud offering, sign in to Mem0 Platform to obtain your API Key.

3. Client Features

Cloud Offering

The cloud version provides a comprehensive set of features, including:

  • Memory Operations: Perform CRUD operations on memories.
  • Search Capabilities: Search for relevant memories using advanced filters.
  • Memory History: Track changes to memories over time.
  • Error Handling: Robust error handling for API-related issues.
  • Async/Await Support: All methods return promises for easy integration.

Open-Source Offering

The open-source version includes the following top features:

  • Memory Management: Add, update, delete, and retrieve memories.
  • Vector Store Integration: Supports various vector store providers for efficient memory retrieval.
  • LLM Support: Integrates with multiple LLM providers for generating responses.
  • Customizable Configuration: Easily configure memory settings and providers.
  • SQLite Storage: Use SQLite for memory history management.

4. Memory Operations

Mem0 provides a simple and customizable interface for performing memory operations. You can create long-term and short-term memories, search for relevant memories, and manage memory history.

5. Error Handling

The MemoryClient throws errors for any API-related issues. You can catch and handle these errors effectively.

6. Using with async/await

All methods of the MemoryClient return promises, allowing for seamless integration with async/await syntax.

7. Testing the Client

To test the MemoryClient in a Node.js environment, you can create a simple script to verify the functionality of memory operations.

Getting Help

If you have any questions or need assistance, please reach out to us: