Getting Started
@memsolus/sdk is the official TypeScript SDK for Memsolus. It provides a fully-typed client for all Memsolus API operations with zero runtime dependencies.
Requirements: Node.js 18+, Bun 1.0+, or Deno. TypeScript 5.0+ recommended.
Install
Bun and yarn are also supported:
Initialize the client
The client is ready to use immediately — no additional setup required.
Client options
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey | string | Yes | — | Your Memsolus API key (msk_live_... or msk_test_...) |
workspaceId | string | Yes | — | UUID of the workspace to operate on |
timeout | number | No | 30000 | Request timeout in milliseconds |
retry.maxAttempts | number | No | 3 | Maximum number of retry attempts |
retry.backoffMs | number | No | 1000 | Milliseconds between retry attempts |
retry.retryOn | number[] | No | [429, 503] | HTTP status codes that trigger a retry |
Store your first memory
Memories are processed asynchronously. The status moves from PENDING → PROCESSING → READY as the memory is enriched and indexed.
Search memories
The default search mode is hybrid, which combines semantic similarity with keyword matching for best results. See Advanced Search for more options.
TypeScript support
All request and response types are exported from the package:
Memories
Create, search, update, and manage memories.
→magnifying-glassAdvanced Search
Search modes, filters, pagination, and feedback loops.
→bookKnowledge
Query the consolidated knowledge profile built from memories.
→diagram-projectKnowledge Graph
Search entities and traverse relationships.
→triangle-exclamationError Handling
Typed error classes and retry configuration.
→file-codeType Reference
All exported types, interfaces, and enums.
→