{"_id":"@adb-storage-m/mem0ai","_rev":"5-ab508848d4e19209eda5c54bfae1b4a0","name":"@adb-storage-m/mem0ai","dist-tags":{"latest":"2.3.2"},"versions":{"2.3.1":{"name":"@adb-storage-m/mem0ai","version":"2.3.1","keywords":["mem0","api","client","memory","llm","long-term-memory","ai"],"author":{"name":"Deshraj Yadav"},"license":"Apache-2.0","_id":"@adb-storage-m/mem0ai@2.3.1","maintainers":[{"name":"adb-storage-m","email":"haojielin964@gmail.com"}],"dist":{"shasum":"8a00815c23b7e59aba9c4ae5ced76d0bca29f3b1","tarball":"https://registry.npmjs.org/@adb-storage-m/mem0ai/-/mem0ai-2.3.1.tgz","fileCount":14,"integrity":"sha512-DH0A8LfNY6klPEfJOm700hoWzg2nXBU9iHhTUbIZBQy+L6nJbivopC0hHQ4EE//R2dXGlO75BNG6hZAW/FwhOQ==","signatures":[{"sig":"MEYCIQC0gV24wAi2ub7dYgBi/ReyRiXIGlFu1Bu/FE5PZgWhAwIhALyJgrhlet0MbFmOBJ64K2Txx6/An9+VaShLPAik1YYU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1269454},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","better-sqlite3"]},"tsup":{"dts":{"resolve":true},"clean":true,"entry":["src/index.ts"],"format":["cjs","esm"],"minify":false,"external":["@mem0/community"],"sourcemap":true,"splitting":false,"treeshake":true,"noExternal":["!src/community/**"]},"types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./oss":{"types":"./dist/oss/index.d.ts","import":"./dist/oss/index.mjs","require":"./dist/oss/index.js"}},"gitHead":"0ae0fa699d54fd41f4e14726b34de7a981eeaff4","scripts":{"dev":"npx nodemon","test":"jest","build":"npm run clean && npx prettier --check . && npx tsup","clean":"rimraf dist","start":"pnpm run example memory","format":"npm run clean && prettier --write .","example":"ts-node src/oss/examples/vector-stores/index.ts","test:ts":"jest --config jest.config.js","test:watch":"jest --config jest.config.js --watch","format:check":"npm run clean && prettier --check ."},"_npmUser":{"name":"adb-storage-m","email":"haojielin964@gmail.com"},"_npmVersion":"10.8.2","description":"The Memory Layer For Your AI Apps","directories":{},"_nodeVersion":"20.20.1","dependencies":{"zod":"^3.24.1","uuid":"9.0.1","axios":"1.13.6","mysql2":"^3.11.0","openai":"^4.93.0"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"oss":["./dist/oss/index.d.ts"]}},"_hasShrinkwrap":false,"packageManager":"pnpm@10.5.2+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b","devDependencies":{"jest":"^29.7.0","tsup":"^8.3.0","dotenv":"^16.4.5","rimraf":"^5.0.5","nodemon":"^3.0.1","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.5.2","typescript":"5.5.4","@types/node":"^22.7.6","@types/uuid":"^9.0.8","fix-tsup-cjs":"^1.2.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"pg":"8.11.3","redis":"^4.6.13","ollama":"^0.5.14","groq-sdk":"0.3.0","@types/pg":"8.11.0","cloudflare":"^4.2.0","@types/jest":"29.5.14","neo4j-driver":"^5.28.1","@google/genai":"^1.2.0","better-sqlite3":"^12.6.2","@azure/identity":"^4.0.0","@langchain/core":"^0.3.44","@anthropic-ai/sdk":"^0.40.1","@mistralai/mistralai":"^1.5.2","@supabase/supabase-js":"^2.49.1","@qdrant/js-client-rest":"1.13.0","@azure/search-documents":"^12.0.0","@cloudflare/workers-types":"^4.20250504.0"},"_npmOperationalInternal":{"tmp":"tmp/mem0ai_2.3.1_1773392559431_0.8693467084122601","host":"s3://npm-registry-packages-npm-production"},"deprecated":"superseded by 2.3.2"},"2.3.2":{"name":"@adb-storage-m/mem0ai","version":"2.3.2","keywords":["mem0","api","client","memory","llm","long-term-memory","ai"],"author":{"name":"Deshraj Yadav"},"license":"Apache-2.0","_id":"@adb-storage-m/mem0ai@2.3.2","maintainers":[{"name":"adb-storage-m","email":"haojielin964@gmail.com"}],"dist":{"shasum":"e0b00aaac24afc61ca7fc14dad1572a99f602cec","tarball":"https://registry.npmjs.org/@adb-storage-m/mem0ai/-/mem0ai-2.3.2.tgz","fileCount":14,"integrity":"sha512-A7YCTjL+e0QdrBk4FI2NvW//SkYUqIT1qw72DzRp2MQIHSo2ImelH6g+SVpK01eVgYqLiceJiRdr4rEq7nIVYA==","signatures":[{"sig":"MEUCICn5mf1bMTyh1XR6ZEp4aETQUpkszKsGnoJWQbB00y8OAiEAwH2hi3CK6Yd6b57AHhXvSz7ummA3adXWpXfC/KSqia8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1269454},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","better-sqlite3"]},"tsup":{"dts":{"resolve":true},"clean":true,"entry":["src/index.ts"],"format":["cjs","esm"],"minify":false,"external":["@mem0/community"],"sourcemap":true,"splitting":false,"treeshake":true,"noExternal":["!src/community/**"]},"types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./oss":{"types":"./dist/oss/index.d.ts","import":"./dist/oss/index.mjs","require":"./dist/oss/index.js"}},"gitHead":"0ae0fa699d54fd41f4e14726b34de7a981eeaff4","scripts":{"dev":"npx nodemon","test":"jest","build":"npm run clean && npx prettier --check . && npx tsup","clean":"rimraf dist","start":"pnpm run example memory","format":"npm run clean && prettier --write .","example":"ts-node src/oss/examples/vector-stores/index.ts","test:ts":"jest --config jest.config.js","test:watch":"jest --config jest.config.js --watch","format:check":"npm run clean && prettier --check ."},"_npmUser":{"name":"adb-storage-m","email":"haojielin964@gmail.com"},"_npmVersion":"10.8.2","description":"The Memory Layer For Your AI Apps","directories":{},"_nodeVersion":"20.20.1","dependencies":{"pg":"8.11.3","zod":"^3.24.1","uuid":"9.0.1","axios":"1.13.6","redis":"^4.6.13","mysql2":"^3.11.0","ollama":"^0.5.14","openai":"^4.93.0","groq-sdk":"0.3.0","cloudflare":"^4.2.0","neo4j-driver":"^5.28.1","@google/genai":"^1.2.0","better-sqlite3":"^12.6.2","@azure/identity":"^4.0.0","@langchain/core":"^0.3.44","@anthropic-ai/sdk":"^0.40.1","@mistralai/mistralai":"^1.5.2","@supabase/supabase-js":"^2.49.1","@qdrant/js-client-rest":"1.13.0","@azure/search-documents":"^12.0.0","@cloudflare/workers-types":"^4.20250504.0"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"oss":["./dist/oss/index.d.ts"]}},"_hasShrinkwrap":false,"packageManager":"pnpm@10.5.2+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b","devDependencies":{"jest":"^29.7.0","tsup":"^8.3.0","dotenv":"^16.4.5","rimraf":"^5.0.5","nodemon":"^3.0.1","ts-jest":"^29.2.6","ts-node":"^10.9.2","prettier":"^3.5.2","typescript":"5.5.4","@types/node":"^22.7.6","@types/uuid":"^9.0.8","fix-tsup-cjs":"^1.2.0","@types/better-sqlite3":"^7.6.13"},"peerDependencies":{"@types/pg":"8.11.0","@types/jest":"29.5.14"},"_npmOperationalInternal":{"tmp":"tmp/mem0ai_2.3.2_1773471642968_0.7920502856830038","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-03-13T08:45:43.829Z","modified":"2026-03-14T07:13:34.481Z","2.3.0":"2026-03-13T08:45:44.272Z","2.3.1":"2026-03-13T09:02:39.633Z","2.3.2":"2026-03-14T07:00:43.143Z"},"author":{"name":"Deshraj Yadav"},"license":"Apache-2.0","keywords":["mem0","api","client","memory","llm","long-term-memory","ai"],"description":"The Memory Layer For Your AI Apps","maintainers":[{"name":"adb-storage-m","email":"haojielin964@gmail.com"}],"readme":"# Mem0 - The Memory Layer for Your AI Apps\n\nMem0 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.\n\nSee the complete [OSS Docs](https://docs.mem0.ai/open-source/node-quickstart).\nSee the complete [Platform API Reference](https://docs.mem0.ai/api-reference).\n\n## 1. Installation\n\nFor the open-source version, you can install the Mem0 package using npm:\n\n```bash\nnpm i mem0ai\n```\n\n## 2. API Key Setup\n\nFor the cloud offering, sign in to [Mem0 Platform](https://app.mem0.ai/dashboard/api-keys) to obtain your API Key.\n\n## 3. Client Features\n\n### Cloud Offering\n\nThe cloud version provides a comprehensive set of features, including:\n\n- **Memory Operations**: Perform CRUD operations on memories.\n- **Search Capabilities**: Search for relevant memories using advanced filters.\n- **Memory History**: Track changes to memories over time.\n- **Error Handling**: Robust error handling for API-related issues.\n- **Async/Await Support**: All methods return promises for easy integration.\n\n### Open-Source Offering\n\nThe open-source version includes the following top features:\n\n- **Memory Management**: Add, update, delete, and retrieve memories.\n- **Vector Store Integration**: Supports various vector store providers for efficient memory retrieval.\n- **LLM Support**: Integrates with multiple LLM providers for generating responses.\n- **Customizable Configuration**: Easily configure memory settings and providers.\n- **SQLite Storage**: Use SQLite for memory history management.\n\n## 4. Memory Operations\n\nMem0 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.\n\n## 5. Error Handling\n\nThe MemoryClient throws errors for any API-related issues. You can catch and handle these errors effectively.\n\n## 6. Using with async/await\n\nAll methods of the MemoryClient return promises, allowing for seamless integration with async/await syntax.\n\n## 7. Testing the Client\n\nTo test the MemoryClient in a Node.js environment, you can create a simple script to verify the functionality of memory operations.\n\n## Getting Help\n\nIf you have any questions or need assistance, please reach out to us:\n\n- Email: founders@mem0.ai\n- [Join our discord community](https://mem0.ai/discord)\n- GitHub Issues: [Report bugs or request features](https://github.com/mem0ai/mem0/issues)\n","readmeFilename":"README.md"}