Key Capabilities
- Memory Lifecycle: Effortlessly add, search, and manage memories with natural language.
- Project Isolation: Organize data into distinct projects and organizations.
- Type Safety: Built-in TypeScript definitions ensure your data structures are always correct.
- Resilient Design: Robust error handling and health checks to keep your integration running smoothly.
Quick Start
Explore the SDK
The MemMachine SDK is organized into three primary classes. Click a class below to view its full technical reference, including parameters and return types.MemMachineClient
The entry point. Use this to connect to the server and manage high-level project lists.
MemMachineProject
The project manager. Handles project creation, metadata, and memory counts.
MemMachineMemory
The memory engine. Where you add, search, and manage individual memories.
Supporting References
Data Types & Configuration
Understanding the data structures is key to a smooth integration. These references define how you configure your environment and the shape of the data returned by the memory engine.Setup & Identity
Setup & Identity
- Client Configuration: Manage connection settings, authentication, and server health status.
- Project Context: Define organization IDs, project IDs, and project creation settings.
- The Workspace: Explore project metadata and manage the active memory scope.
Memory Operations
Memory Operations
- Storing Memory: Input parameters and result schemas for adding new episodic data.
- Retrieving Memory: Search query configurations and semantic search result models.
- Memory Structures: The core data models for Episode and Semantic memory objects.
Constants & Enums
Constants & Enums
- Types & Roles: Allowed values for
MemoryType(episodic/semantic) andMemoryProducerRole(user/assistant/system).
Error Handling
Reliable apps need good error handling. We provide a custom error class to help you catch and debug API-specific issues.- MemMachineAPIError: Catch this to access specific error messages and status codes returned by the MemMachine server.
Contributing & Development
If you are looking to contribute to the SDK or run local tests, follow these steps:- Install Dependencies:
npm install - Build the Package:
npm run build - Run Unit Tests:
npm run test - Try the Demo: Execute
npm run exampleto see a local script in action.

