Cloud The core runtime is open source and free. TekMemo Cloud (hosted sync, managed MCP, team features) is in early access. Join the waitlist →
Skip to content

API Reference

The primary API for TekMemo is the Tekmemo class. Construct one client, pick a runtime mode, and access all memory operations through its namespaces.

ts
import { Tekmemo } from "@tekbreed/tekmemo";

const memo = new Tekmemo({ rootDir: "./.tekmemo", projectId: "my-app" });
await memo.core.read();
await memo.notes.record({ content: "Ship feature X", kind: "decision" });
const hits = await memo.recall("architecture decisions");

Packages

Core

PackagePurpose
@tekbreed/tekmemoThe core memory runtime — memory primitives, filesystem/graph storage, recall, cloud client, AI SDK helpers, and the unified Tekmemo client.

Distribution

PackagePurpose
@tekbreed/tekmemo-cliCommand-line interface for managing local, cloud, and hybrid memory workflows.
@tekbreed/tekmemo-mcp-serverModel Context Protocol server for exposing TekMemo memory to coding agents and AI applications.

Provider Adapters

Standalone packages that implement embedder, reranker, or vector store interfaces from the core.

PackagePurpose
@tekbreed/tekmemo-adapter-openaiOpenAI embedder adapter.
@tekbreed/tekmemo-adapter-voyageVoyage AI embedder and reranker adapter.

Tooling

PackagePurpose
@tekbreed/tekmemo-benchmark-kitBenchmark runners and testing utilities.
@tekbreed/tekmemo-testingShared contract tests, fixtures, fakes, and Vitest helpers.

Imports

Everything is available from the root entrypoint:

ts
import { Tekmemo, createNodeFsMemoryStore, ... } from "@tekbreed/tekmemo";

The cloud client also has a dedicated subpath for tree-shaking:

ts
import {
  createTekMemoCloudClient,
  createTekMemoCloudClientFromEnv,
  createProjectScopedClient,
  isTekMemoCloudError,
} from "@tekbreed/tekmemo/cloud-client";

Integrations

IntegrationPurposeDetail Link
AI SDKExpose TekMemo memory as Vercel AI SDK tools in generateText, streamText, and agent workflows.AI SDK
Cloud ClientProject-scoped HTTP client for TekMemo Cloud API with typed errors and envelope unwrapping.Cloud Client

Modules

The Tekmemo class is a façade over these building blocks. Most users only need the class, but the individual modules are exported for advanced use cases and custom adapters.

ModulePurposeDetail Link
Core PrimitivesMemory types, document helpers, events, validation, and file path conventions.Core Primitives
Filesystem StoreLocal filesystem storage adapter (createNodeFsMemoryStore).Filesystem Store
Agent FilesystemSandbox and session protection for coding agents.Agent Filesystem
Graph MemoryEntities and relationships indexing and tracking.Graph Memory
RecallBase retrieval contracts and memory queries.Recall
RerankingReranking contracts and deterministic fallback.Reranking
Benchmark KitBenchmark runners and testing utilities.Benchmark Kit

Note: Provider adapters (OpenAI, VoyageAI) are now standalone packages. See the Provider Adapters section above.

Released under the MIT License.