{"_id":"@adbm-ai/mem0ai","_rev":"2-0fe61311ffb997d8cca5be8ed5969143","name":"@adbm-ai/mem0ai","dist-tags":{"latest":"2.3.3"},"versions":{"2.3.2":{"name":"@adbm-ai/mem0ai","version":"2.3.2","keywords":["mem0","api","client","memory","llm","long-term-memory","ai"],"author":{"name":"Deshraj Yadav"},"license":"Apache-2.0","_id":"@adbm-ai/mem0ai@2.3.2","maintainers":[{"name":"adb-storage-m","email":"haojielin964@gmail.com"}],"dist":{"shasum":"7d30099b811e0d97ec19f104e22d7f4124aa8511","tarball":"https://registry.npmjs.org/@adbm-ai/mem0ai/-/mem0ai-2.3.2.tgz","fileCount":14,"integrity":"sha512-s7uRcsPr+ro5usrEen9k7oYejjOEIxf4avTAVkVSQ4waDbc1sZHPi1WxTMU7bU+4YuA0mGQ9CyKalTpp8eSSvA==","signatures":[{"sig":"MEUCIADAG69iEylhg2d+6k57dQKLTXoqjxl1t4pjNyvxQBzfAiEAnQ5wQfPw04K+T+URHTVUKyBYnJvrtRZ4Ven9a0VwXqY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1269570},"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":"349d93c7fedfdbec754166871de3daf3ce1e9a41","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_1773655231836_0.5625144328074057","host":"s3://npm-registry-packages-npm-production"}},"2.3.3":{"name":"@adbm-ai/mem0ai","version":"2.3.3","description":"The Memory Layer For Your AI Apps","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/index.d.ts"],"oss":["./dist/oss/index.d.ts"]}},"exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.js","import":"./dist/index.mjs"},"./oss":{"types":"./dist/oss/index.d.ts","require":"./dist/oss/index.js","import":"./dist/oss/index.mjs"}},"scripts":{"clean":"rimraf dist","build":"npm run clean && npx prettier --check . && npx tsup","dev":"npx nodemon","start":"pnpm run example memory","example":"ts-node src/oss/examples/vector-stores/index.ts","test":"jest","test:ts":"jest --config jest.config.js","test:watch":"jest --config jest.config.js --watch","format":"npm run clean && prettier --write .","format:check":"npm run clean && prettier --check ."},"tsup":{"entry":["src/index.ts"],"format":["cjs","esm"],"dts":{"resolve":true},"splitting":false,"sourcemap":true,"clean":true,"treeshake":true,"minify":false,"external":["@mem0/community"],"noExternal":["!src/community/**"]},"keywords":["mem0","api","client","memory","llm","long-term-memory","ai"],"author":{"name":"Deshraj Yadav"},"license":"Apache-2.0","devDependencies":{"@types/better-sqlite3":"^7.6.13","@types/node":"^22.7.6","@types/uuid":"^9.0.8","dotenv":"^16.4.5","fix-tsup-cjs":"^1.2.0","jest":"^29.7.0","nodemon":"^3.0.1","prettier":"^3.5.2","rimraf":"^5.0.5","ts-jest":"^29.2.6","ts-node":"^10.9.2","tsup":"^8.3.0","typescript":"5.5.4"},"dependencies":{"axios":"1.13.6","openai":"^4.93.0","uuid":"9.0.1","zod":"^3.24.1","mysql2":"^3.11.0","ollama":"^0.5.14","@anthropic-ai/sdk":"^0.40.1","@google/genai":"^1.2.0","@mistralai/mistralai":"^1.5.2","groq-sdk":"0.3.0","@langchain/core":"^0.3.44","redis":"^4.6.13","pg":"8.11.3","@qdrant/js-client-rest":"1.13.0","@supabase/supabase-js":"^2.49.1","better-sqlite3":"^12.6.2","@azure/identity":"^4.0.0","@azure/search-documents":"^12.0.0","cloudflare":"^4.2.0","@cloudflare/workers-types":"^4.20250504.0","neo4j-driver":"^5.28.1"},"peerDependencies":{"@types/jest":"29.5.14","@types/pg":"8.11.0"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"packageManager":"pnpm@10.5.2+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b","pnpm":{"onlyBuiltDependencies":["esbuild","better-sqlite3"]},"_id":"@adbm-ai/mem0ai@2.3.3","gitHead":"f928ae5109d345ae637b40bd82e94a09dd814f85","_nodeVersion":"20.20.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-uzpKvkddmW4r5c4GHgRT0Y2jlbVYJ+Jb1WteUKM6Ua8SFs4Ukl4rjInIKGjwzKrZKXRNZbtlE05S/ISogXBlWQ==","shasum":"1e398742979fb2b1317ae7470707a41030c846e2","tarball":"https://registry.npmjs.org/@adbm-ai/mem0ai/-/mem0ai-2.3.3.tgz","fileCount":14,"unpackedSize":1316006,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGuWm59cqjg/ZqMeSk6Bk11NMMlrc1d0o1GpZmgs2WfOAiEAh8jBNA6fRmx75Sg5oDYXF8ZRAyjQMiN5YiaFFx91I2Q="}]},"_npmUser":{"name":"adb-storage-m","email":"haojielin964@gmail.com"},"directories":{},"maintainers":[{"name":"adb-storage-m","email":"haojielin964@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mem0ai_2.3.3_1774837848112_0.8484662742665876"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-16T10:00:31.710Z","modified":"2026-03-30T02:30:48.439Z","2.3.2":"2026-03-16T10:00:32.057Z","2.3.3":"2026-03-30T02:30:48.298Z"},"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"}